/* Importazione font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Variabili CSS */
:root {
    --primary: #FF5757;
    --secondary: #47A8BD;
    --accent: #FFD166;
    --dark: #333333;
    --light: #F7F7F7;
    --booked: #EF4444;
    --available: #10B981;
    --today: #F59E0B;
    --past: #9CA3AF;
    --selected: #8B5CF6;
    --hover: #6EE7B7;
}

/* Reset CSS - esclude Silktide */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

/* Stili generali */
body {
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary);
}

a:visited {
    color: inherit;
}

/* Bottoni a sfondo rosso: testo sempre bianco */
.cta-btn,
.cta-btn:visited,
.cta-btn:hover,
.cta-btn:focus,
.cta-btn:active,
.price-btn,
.price-btn:visited,
.price-btn:hover,
.price-btn:focus,
.price-btn:active,
.submit-btn,
.submit-btn:visited,
.submit-btn:hover,
.submit-btn:focus,
.submit-btn:active,
.calendar-btn:visited,
.nav-btn:visited {
    color: white;
}

/* Header e navigazione */
header {
    background-color: var(--primary);
    padding: 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
}

/* Sezioni */
section {
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding-top: 8rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.05;
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.hero h2,
.hero .hero-tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--secondary);
    font-weight: 600;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1rem 0;
}

.hero-img {
    width: 100%;
    max-width: 600px;
    margin: 2rem 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.5s;
}

.hero-img:hover {
    transform: scale(1.03);
}

.cta-btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(255, 87, 87, 0.3);
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 87, 87, 0.4);
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-img {
    flex: 1;
    min-width: 300px;
}

.about-img img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Van Section */
.van-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.van-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.van-img:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.van-details h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.van-specs {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.van-specs h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.van-specs ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.van-specs li {
    display: flex;
    align-items: center;
}

.van-specs i {
    color: var(--primary);
    margin-right: 0.5rem;
}

/* Effetti di transizione */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tabella prezzi stagionali */
.season-price-table {
    max-width: 820px;
    margin: 0 auto 8rem;
    border-radius: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    -webkit-overflow-scrolling: touch;
}

.spt-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 480px;
}

.spt-table thead tr {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.spt-table thead th {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 16px 20px;
    border: none;
    white-space: nowrap;
}

.season-price-table .season-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.spt-table tbody tr:nth-child(even) {
    background: rgba(71, 168, 189, 0.06);
}

.spt-table tbody td {
    padding: 15px 20px;
    vertical-align: middle;
    border-color: #f0f0f0;
}

.season-price-table .spt-label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.season-price-table .spt-label small {
    font-weight: 400;
    color: #999;
}

.season-price-table .spt-border-primary { border-left: 3px solid var(--primary); }
.season-price-table .spt-border-secondary { border-left: 3px solid var(--secondary); }
.season-price-table .spt-border-accent { border-left: 3px solid var(--accent); }

.season-price-table .spt-price {
    text-align: center;
    font-weight: 700;
    font-size: 1.15em;
    color: var(--primary);
}

.season-price-table .spt-extra {
    text-align: center;
    font-weight: 600;
    color: #555;
}

.season-price-table .spt-extra span {
    font-size: 0.8em;
    font-weight: 400;
    color: #999;
}

/* Pricing Section */
.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.price-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    position: relative;
}

.price-card:hover {
    transform: translateY(-10px);
}

.price-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--accent);
    z-index: 10;
}

.price-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.price-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent);
    color: var(--dark);
    padding: 0.5rem 1rem;
    font-weight: bold;
    font-size: 0.9rem;
    border-bottom-left-radius: 10px;
}

.price-header {
    padding: 2rem;
    text-align: center;
    background-color: var(--secondary);
    color: white;
}

.price-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
}

.price-features {
    padding: 2rem;
    list-style: none;
}

.price-features li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.price-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.price-btn {
    display: block;
    text-align: center;
    margin: 0 2rem 2rem;
    padding: 1rem;
    background-color: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: bold;
    transition: box-shadow 0.3s, transform 0.3s;
}

.price-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Calendar Section */
.availability {
    text-align: center;
}

.calendar-intro {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Date display sopra il calendario */
.date-display-above-calendar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 87, 87, 0.1), rgba(71, 168, 189, 0.1));
    border-radius: 15px;
    border: 2px solid var(--secondary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.date-display-above-calendar .date-item {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 48%;
    padding: 1rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.date-display-above-calendar .date-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.date-display-above-calendar .date-label {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.date-display-above-calendar #pickup-date-input-top,
.date-display-above-calendar #return-date-input-top {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    padding: 0.55rem 0.75rem;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--primary);
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.date-display-above-calendar #pickup-date-input-top:focus,
.date-display-above-calendar #return-date-input-top:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(71, 168, 189, 0.15);
}

.date-display-above-calendar #pickup-date-input-top::-webkit-calendar-picker-indicator,
.date-display-above-calendar #return-date-input-top::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.date-display-above-calendar #pickup-date-input-top::-webkit-calendar-picker-indicator:hover,
.date-display-above-calendar #return-date-input-top::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Responsive per mobile */
@media (max-width: 768px) {
    .date-display-above-calendar {
        flex-direction: column;
    }
    
    .date-display-above-calendar .date-item {
        min-width: 100%;
    }
}

.calendar-container {
    max-width: 800px;
    margin: 2rem auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: var(--primary);
    color: white;
    border-radius: 5px;
}

.calendar-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.calendar-loader {
    text-align: center;
    padding: 20px;
    font-size: 1.2rem;
    color: var(--secondary);
}

.calendar-error {
    text-align: center;
    padding: 20px;
    font-size: 1.2rem;
    color: var(--booked);
    background-color: #ffeeee;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.nav-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.3);
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.day {
    border: 1px solid #e0e0e0;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    position: relative;
    transition: transform 0.2s, background-color 0.2s;
    cursor: pointer;
}

.day:hover {
    transform: scale(1.05);
    z-index: 10;
    background-color: var(--hover) !important;
}

.day.available {
    background-color: var(--available);
    color: white;
}

.day.booked {
    background-color: var(--booked);
    color: white;
    cursor: not-allowed;
}

.day.past {
    background-color: var(--past);
    color: white;
    cursor: not-allowed;
}

.day.today {
    border: 2px solid var(--today);
    box-shadow: 0 0 10px rgba(245,158,11,0.5);
}

.day.selected {
    background-color: var(--selected) !important;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(139,92,246,0.5);
}

.day.selected-start::after {
    content: "Ritiro";
    position: absolute;
    bottom: 5px;
    font-size: 0.6rem;
    font-weight: bold;
}

.day.selected-end::after {
    content: "Consegna";
    position: absolute;
    bottom: 5px;
    font-size: 0.6rem;
    font-weight: bold;
}

.day.empty {
    background-color: transparent;
    border: none;
    cursor: default;
}

.day-number {
    font-weight: bold;
    font-size: 1rem;
}

.day-availability {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.7rem;
    opacity: 0.7;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.5rem;
    background-color: #f9fafb;
    border-radius: 5px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
}

.legend-color.available {
    background-color: var(--available);
}

.legend-color.booked {
    background-color: var(--booked);
}

.legend-color.today {
    background-color: var(--today);
}

.legend-color.selected {
    background-color: var(--selected);
}

/* Booking Form */
.booking-container {
    max-width: 800px;
    margin: 0 auto;
}

.booking-form {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(71, 168, 189, 0.2);
}


/* Stili per la selezione delle date */
.date-selection {
    width: 100%;
}

.date-display {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.date-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
    flex: 1;
    min-width: 48%;
    padding: 0.5rem;
}

.date-label {
    font-weight: bold;
    margin-bottom: 0.3rem;
    color: var(--secondary);
}

#pickup-date-display, #return-date-display {
    padding: 0.5rem;
    background-color: white;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    font-weight: 500;
}

.date-calendar {
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.payment-container {
    margin: 2rem 0;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.payment-container h3 {
    margin-bottom: 1rem;
    text-align: center;
}

#total-price {
    display: inline-block;
    min-width: 120px;          /* evita che il layout balli */
    padding: .6rem 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
    transition: opacity .4s ease, transform .3s ease;
    opacity: 0;                /* nascosto di default */
    transform: translateY(10px);
}

#total-price.visible {
    opacity: 1;
    transform: translateY(0);
}

/* wrapper per centrare */
.total-wrapper {
    text-align: center;
    margin: 1.2rem 0;
}

#card-element {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#card-errors {
    color: var(--primary);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.discount-message {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-style: italic;
}


.submit-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Stile per la conferma e errori di prenotazione */
.booking-confirmation, .booking-error {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.booking-error {
    border-left: 4px solid #FF5757;
}

.confirmation-message {
    padding: 2rem;
}

.confirmation-message h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.confirmation-details {
    background-color: rgba(247, 247, 247, 0.5);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary);
    margin: 1.5rem 0;
    line-height: 1.8;
}

.calendar-btn {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 0.8rem 1.5rem;
    margin-top: 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, background-color 0.3s;
}

.calendar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.calendar-btn i {
    margin-right: 0.5rem;
}

.package-display {
    padding: 0.8rem;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-weight: 600;
    color: #47A8BD;
}

/* Action Buttons */
.action-buttons {
    margin-top: 2rem;
    text-align: center;
}

.action-buttons .cta-btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    box-shadow: 0 4px 10px rgba(255, 87, 87, 0.3);
}

.action-buttons .cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 87, 87, 0.4);
}

/* Animazione del bottone */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.action-buttons .cta-btn {
    animation: pulse 2s infinite;
}

.action-buttons .cta-btn:hover {
    animation: none;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 1rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-logo h3 {
    margin-bottom: 0.5rem;
}

.footer-links h4, .footer-contact h4, .footer-social h4 {
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after, .footer-contact h4::after, .footer-social h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ddd;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary);
}

.social-icons i {
    font-size: 1.2rem;
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--primary);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    box-shadow 0.35s ease;
        z-index: 999;
        box-shadow: none;
    }

    .nav-links.active {
        max-height: 450px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    }

    .nav-links li {
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.12);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        letter-spacing: 0.3px;
        transition: background-color 0.2s ease, padding-left 0.2s ease;
    }

    .nav-links a:hover,
    .nav-links a:focus {
        background-color: rgba(0,0,0,0.12);
        padding-left: 2rem;
        color: white;
    }

    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 8px;
        transition: background-color 0.2s;
    }

    .hamburger:hover,
    .hamburger.active {
        background-color: rgba(255,255,255,0.18);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .form-row {
        flex-direction: column;
    }

    .date-display {
        flex-direction: column;
    }

    .date-item {
        min-width: 100%;
    }

    .day {
        min-height: 44px;
    }

    .day-number {
        font-size: 0.85rem;
    }

    .calendar {
        gap: 3px;
    }

    .legend {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 1rem;
    }

    .hero {
        padding-top: 6rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2,
    .hero .hero-tagline {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .feature-card, .price-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .price-card.featured {
        transform: scale(1);
    }

    .price-card.featured:hover {
        transform: translateY(-5px);
    }

    .price-header {
        padding: 1.5rem;
    }

    .price {
        font-size: 2rem;
    }

    .cta-btn, .price-btn, .submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    /* Calendario mobile */
    .calendar {
        gap: 2px;
    }

    .day {
        min-height: 36px;
    }

    .day-number {
        font-size: 0.75rem;
    }

    .day-availability {
        display: none;
    }

    .day.selected-start::after,
    .day.selected-end::after {
        display: none;
    }

    .weekdays > div {
        font-size: 0.65rem;
    }

    .calendar-container {
        padding: 0.5rem;
    }

    .logo-img {
        height: 55px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        align-items: center;
    }

    .footer-links h4::after, .footer-contact h4::after, .footer-social h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact p {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }
}
/* ===========================================
   NUOVI STILI - Assicurazioni, FAQ, Azienda
   =========================================== */

/* Info Assicurazioni nella sezione prezzi */
.insurance-info {
    margin-top: 3rem;
    padding: 2rem;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.insurance-info h3 {
    text-align: center;
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.insurance-info h3 i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.insurance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.insurance-card {
    background: linear-gradient(135deg, rgba(71, 168, 189, 0.05), rgba(255, 87, 87, 0.05));
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(71, 168, 189, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.insurance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.insurance-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.insurance-icon i {
    font-size: 1.5rem;
    color: white;
}

.insurance-card h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.insurance-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.insurance-card p:last-child {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Sezione FAQ */
.faq-section {
    background-color: #f9fafb;
    padding: 5rem 1rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    transition: background-color 0.3s, color 0.3s;
}

.faq-question:hover {
    background-color: rgba(71, 168, 189, 0.05);
    color: var(--secondary);
}

.faq-question span {
    flex: 1;
    padding-right: 1rem;
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s;
    font-size: 0.9rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-question {
    background-color: var(--secondary);
    color: white;
}

.faq-item.active .faq-question i {
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background-color: #f9fafb;
}

.faq-item.active .faq-answer {
    max-height: 1200px;
    padding: 1.25rem 1.5rem;
}

.faq-answer p {
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.faq-answer p + p,
.faq-answer ul + p,
.faq-answer p + ul {
    margin-top: .6rem;
}

.faq-answer ul {
    color: #555;
    line-height: 1.6;
    padding-left: 1.2rem;
    margin: .5rem 0;
}

.faq-answer ul li {
    margin-bottom: .35rem;
}

/* Toggle Azienda nel Form */
.company-toggle {
    background-color: #f0f8ff;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    border: 1px dashed var(--secondary);
    margin-bottom: 1rem;
    text-align: center;
}

.company-toggle label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0;
}

.company-toggle label i {
    margin-right: 0.5rem;
    color: var(--secondary);
    font-size: 1.2rem;
}

.company-toggle input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    cursor: pointer;
}

.company-fields {
    background-color: rgba(71, 168, 189, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid rgba(71, 168, 189, 0.2);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.company-fields .form-group { margin-bottom: 1rem; }
.company-fields .form-group:last-child { margin-bottom: 0; }

/* Opzioni Assicurative nel Form */
.insurance-options {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.insurance-options h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.insurance-options h4 i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.insurance-option {
    background-color: white;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
}

.insurance-option.included {
    border-color: var(--available);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.02));
}

.insurance-option-header {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.insurance-option-header i {
    color: var(--available);
    margin-right: 0.5rem;
}

.insurance-badge {
    margin-left: auto;
    background-color: var(--available);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.insurance-option-desc {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.insurance-option-note {
    color: #888;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.insurance-option-note i {
    margin-right: 0.5rem;
    color: var(--today);
}

.insurance-checkbox {
    background-color: white;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    margin-bottom: 0.75rem;
    transition: border-color 0.3s, background-color 0.3s;
    position: relative;
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.insurance-checkbox:hover {
    border-color: var(--secondary);
    background-color: rgba(71, 168, 189, 0.02);
}

.insurance-checkbox:last-child { margin-bottom: 0; }

.insurance-sub-option {
    margin-left: 0;
    border-left: 3px solid var(--secondary);
}

.insurance-checkbox input[type="checkbox"] {
    width: auto;
    position: absolute;
    opacity: 0;
}

.insurance-checkbox label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 0;
    text-align: center;
}

.insurance-checkbox .checkbox-icon {
    width: 50px;
    height: 50px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    margin-right: 0;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.insurance-checkbox .checkbox-icon i {
    color: #999;
    font-size: 1rem;
    transition: color 0.3s;
}

.insurance-checkbox input[type="checkbox"]:checked + label .checkbox-icon {
    background-color: var(--primary);
}

.insurance-checkbox input[type="checkbox"]:checked + label .checkbox-icon i {
    color: white;
}

.insurance-checkbox .checkbox-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.insurance-checkbox .checkbox-text strong {
    color: var(--dark);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.insurance-checkbox .checkbox-text small {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    max-width: 350px;
}

/* Info IVA */
.vat-info {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(71, 168, 189, 0.1);
    border-radius: 20px;
    display: inline-block;
}

.vat-info small {
    color: var(--secondary);
    font-weight: 500;
}

/* Messaggio errore form */
.form-error-message {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    border-left: 4px solid #ef4444;
    color: #991b1b;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: left;
}

.form-error-message strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-error-message ul {
    margin: 0;
    padding-left: 1.25rem;
}

.form-error-message li {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.form-error-message li:last-child {
    margin-bottom: 0;
}

#container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    
}

/* Media Queries */
@media (max-width: 768px) {
    .insurance-cards { grid-template-columns: 1fr; }
    .faq-question { font-size: 0.95rem; padding: 1rem 1.25rem; }
    .insurance-checkbox { max-width: 100%; }
    .insurance-checkbox .checkbox-text small { max-width: 100%; }
    .company-fields, .insurance-options { padding: 1rem; }
}

@media (max-width: 480px) {
    .insurance-info { padding: 1.5rem 1rem; }
    .faq-section { padding: 3rem 1rem; }
    .insurance-option-header { flex-wrap: wrap; }
    .insurance-badge { margin-left: 0; margin-top: 0.5rem; }
}

.timer-wrapper {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 30px;
    margin: 25px 0;
    box-shadow: 
        0 10px 40px rgba(0,0,0,0.08),
        0 4px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(71, 168, 189, 0.15);
    position: relative;
    overflow: hidden;
}

.timer-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF5757, #47A8BD, #10B981);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.timer-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.timer-icon {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.timer-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #64748b;
    font-weight: 600;
}

/* Display principale */
.timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}

.time-value {
    font-size: 4rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    font-family: 'SF Mono', 'Consolas', monospace;
    background: linear-gradient(180deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.time-separator {
    font-size: 3rem;
    font-weight: 300;
    color: #94a3b8;
    animation: pulse 1s infinite;
    margin-top: -15px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.time-label {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    font-weight: 500;
}

/* Progress Bar */
.timer-progress {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 25px 0 15px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10B981 0%, #47A8BD 50%, #FF5757 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 1s linear;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.3) 50%,
        transparent 100%
    );
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Stati del timer */
.timer-display.warning .time-value {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    -webkit-background-clip: text;
    animation: shake 0.5s infinite;
}

.timer-display.danger .time-value {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    -webkit-background-clip: text;
    animation: shake 0.3s infinite, glow 1s infinite alternate;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

@keyframes glow {
    from { filter: drop-shadow(0 0 5px rgba(239,68,68,0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(239,68,68,0.8)); }
}

.progress-bar.warning {
    background: #f59e0b !important;
}

.progress-bar.danger {
    background: #ef4444 !important;
    animation: danger-pulse 0.5s infinite;
}

@keyframes danger-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Scaduto */
.timer-display.expired .time-value {
    background: #ef4444;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #ef4444;
    animation: none;
}

/* Warning text */
.timer-warning {
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
    margin: 15px 0 0;
    padding: 12px;
    background: #fef3c7;
    border-radius: 10px;
    border-left: 4px solid #f59e0b;
}

/* Responsive */
@media (max-width: 480px) {
    .timer-wrapper {
        padding: 20px;
    }
    
    .time-value {
        font-size: 3rem;
    }
    
    .time-unit {
        min-width: 70px;
    }
    
    .time-separator {
        font-size: 2rem;
    }
}
.logo-img {
    height: 75px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* ============================================================
   TOAST: regola durata minima weekend/festivi
   ============================================================ */
.min-duration-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 420px;
    background: #fff;
    border-left: 5px solid var(--secondary, #47A8BD);
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    z-index: 9999;
    animation: mdtSlideIn 0.3s ease-out;
    font-family: 'Montserrat', sans-serif;
}
.min-duration-toast.min-duration-toast-error {
    border-left-color: var(--primary, #FF5757);
}
.min-duration-toast .mdt-icon {
    font-size: 1.5rem;
    color: var(--secondary, #47A8BD);
    flex-shrink: 0;
    padding-top: 2px;
}
.min-duration-toast.min-duration-toast-error .mdt-icon {
    color: var(--primary, #FF5757);
}
.min-duration-toast .mdt-body {
    flex: 1;
    font-size: .9rem;
    color: #333;
    line-height: 1.4;
}
.min-duration-toast .mdt-body strong {
    display: block;
    margin-bottom: 4px;
    color: #222;
    font-size: .95rem;
}
.min-duration-toast .mdt-body p {
    margin: 0 0 6px;
    font-size: .85rem;
}
.min-duration-toast .mdt-body ul {
    margin: 4px 0 0;
    padding-left: 18px;
    font-size: .8rem;
    color: #666;
}
.min-duration-toast .mdt-body ul li {
    margin-bottom: 2px;
}
.min-duration-toast .mdt-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
}
.min-duration-toast .mdt-close:hover {
    color: #333;
}
@keyframes mdtSlideIn {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@media (max-width: 600px) {
    .min-duration-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
/* === Landing pages === */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem 0;
    font-size: 0.95rem;
    color: #555;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.breadcrumb a {
    color: #FF5757;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb-sep {
    color: #aaa;
}
.breadcrumb-current {
    color: #333;
}

.landing-hero {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    text-align: center;
}
.landing-hero h1 {
    font-size: 2.4rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.landing-lead {
    font-size: 1.15rem;
    color: #555;
    max-width: 760px;
    margin: 0 auto 1.8rem;
    line-height: 1.6;
}

.landing-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
}
.landing-section h2 {
    font-size: 1.7rem;
    color: #FF5757;
    margin: 2rem 0 0.8rem;
    line-height: 1.3;
}
.landing-section h2:first-child {
    margin-top: 0;
}
.landing-section h3 {
    font-size: 1.15rem;
    color: #333;
    margin: 1.4rem 0 0.4rem;
}
.landing-section p {
    color: #444;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.landing-section a {
    color: #47A8BD;
    text-decoration: none;
    font-weight: 600;
}
.landing-section a:hover {
    text-decoration: underline;
}

.faq-block {
    margin-top: 1rem;
    background: #f9f9f9;
    padding: 1.5rem 1.8rem;
    border-radius: 8px;
}
.faq-block h3 {
    margin-top: 1.2rem;
}
.faq-block h3:first-child {
    margin-top: 0;
}

.landing-related {
    background: #fafafa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    text-align: center;
    margin: 2rem auto 0;
    max-width: none;
    padding: 2.5rem 2rem;
}
.landing-related h2 {
    text-align: center;
}
.related-links {
    list-style: none;
    padding: 0;
    margin: 1.5rem auto 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem 1.5rem;
    max-width: 800px;
}
.related-links li {
    display: inline-block;
}
.related-links a {
    color: #47A8BD;
    text-decoration: none;
    font-weight: 600;
}
.related-links a:hover {
    color: #FF5757;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .landing-hero {
        padding: 2rem 1.2rem 1.5rem;
    }
    .landing-hero h1 {
        font-size: 1.8rem;
    }
    .landing-lead {
        font-size: 1.05rem;
    }
    .landing-section {
        padding: 1.5rem 1.2rem 2rem;
    }
    .landing-section h2 {
        font-size: 1.4rem;
    }
    .breadcrumb {
        padding: 1rem 1.2rem 0;
        font-size: 0.85rem;
    }
    .faq-block {
        padding: 1.2rem 1.2rem;
    }
}

/* === REGOLE PRENOTAZIONE: festivi, agosto, info bar === */

/* Giorni festivi: verde scuro, restano cliccabili */
.day.holiday {
    background-color: #065F46;
    color: white;
    cursor: pointer;
}

.day.holiday:hover {
    transform: scale(1.05);
    z-index: 10;
    background-color: var(--hover) !important;
}

/* Range agosto peak: bordo tratteggiato giallo */
.day.august-peak {
    border: 2px dashed #FFD166;
}

/* Combinazione festivo + agosto peak: bg da .holiday + border da .august-peak */
.day.holiday.august-peak {
    background-color: #065F46;
    color: white;
    border: 2px dashed #FFD166;
}

/* Override di priorità: occupato e passato vincono sul verde scuro festivo/domenica */
.day.booked.holiday,
.day.booked.holiday.august-peak {
    background-color: var(--booked);
    color: white;
}

.day.past,
.day.past.holiday,
.day.past.august-peak,
.day.past.holiday.august-peak {
    background-color: var(--past);
    color: white;
    border: 1px solid #e5e7eb; /* uniforma: niente bordo dashed sui passati */
    cursor: not-allowed;
}

/* Voce legenda festivi */
.legend-color.holiday {
    background-color: #065F46;
}

/* Barra informativa "regole minime di noleggio" */
.rules-info-bar {
    background-color: #FEF3C7;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #F59E0B;
}

.rules-info-bar-toggle {
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #92400E;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    text-align: left;
    font-family: inherit;
    font-size: 0.95rem;
}

.rules-info-bar-toggle span {
    flex: 1;
}

.rules-info-bar-chevron {
    transition: transform 0.25s ease;
}

.rules-info-bar.expanded .rules-info-bar-chevron {
    transform: rotate(180deg);
}

.rules-info-bar-details {
    padding-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #92400E;
}

.rules-info-bar-details ul {
    padding-left: 1.25rem;
    margin: 0;
}

.rules-info-bar-details li {
    margin-bottom: 0.4rem;
}

.rules-info-bar-details li:last-child {
    margin-bottom: 0;
}

/* Mobile: indicatore festivo più piccolo e leggibile a 36px */
@media (max-width: 480px) {
    .day.august-peak,
    .day.holiday.august-peak {
        border-width: 1px;
    }

    .rules-info-bar {
        padding: 0.6rem 0.8rem;
    }

    .rules-info-bar-toggle {
        font-size: 0.85rem;
    }

    .rules-info-bar-details {
        font-size: 0.8rem;
    }
}
