/* =============================================================================
   ATTICO PANORAMICO - Foglio di stile principale

   Struttura:
   1. Variabili e Reset
   2. Tipografia e Base
   3. Header e Navigazione
   4. Sezioni pagina (SPA)
   5. Carosello
   6. Benvenuto e Contatti
   7. FAQ
   7b. Componenti FAQ Body
   8. Mappe / Accordion Dintorni
   9. Galleria
   10. Posizione
   11. Numeri Utili
   12. Calendario
   13. Footer
   14. Componenti flottanti (WhatsApp FAB, Back to Top)
   15. Lightbox
   16. Responsive
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. VARIABILI E RESET
   ----------------------------------------------------------------------------- */
:root {
    --primary: #2c3e50;
    --primary-light: #34495e;
    --primary-dark: #1e2d3d;
    --accent: #c0963c;
    --accent-light: #d4a94e;
    --bg: #faf8f5;
    --bg-card: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #e8e4df;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --transition: 0.3s ease;
    --whatsapp: #25d366;
    --emergency: #e74c3c;
    --header-height: 70px;

    /* Variabili aggiuntive per i componenti FAQ body */
    --card-dark: #2c2c2c;
    --accent-gold: #c9a84c;
    --bg-cream: #f5f0e8;
    --border-light: #e0ddd5;
    --quiet-red: #c0392b;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Link accessibile per saltare al contenuto (visibile solo al focus) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    border-radius: 0 0 var(--radius) var(--radius);
    font-weight: 600;
}
.skip-link:focus {
    top: 0;
}

/* -----------------------------------------------------------------------------
   2. TIPOGRAFIA E BASE
   ----------------------------------------------------------------------------- */
body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-light);
}

/* Titoli di sezione riutilizzabili */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Titoli di categoria (usati in FAQ e Mappe) */
.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary);
    margin: 36px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

/* Box informativi e di avviso */
.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 14px 18px;
    border-radius: 6px;
    margin: 12px 0;
    font-size: 0.92rem;
}

.info-box {
    background: #e8f4fd;
    border-left: 4px solid #2196f3;
    padding: 14px 18px;
    border-radius: 6px;
    margin: 12px 0;
    font-size: 0.92rem;
}

.small-text {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* -----------------------------------------------------------------------------
   3. HEADER E NAVIGAZIONE
   ----------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
}

.logo__img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.logo__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 600;
    line-height: 1.2;
}

.logo__tagline {
    font-family: 'Dancing Script', cursive;
    font-size: calc(0.9rem + 2px);
    color: var(--accent);
}

/* Azioni header (lingua + hamburger) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Dropdown lingua */
.lang-dropdown {
    position: relative;
}
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    font-family: 'Open Sans', sans-serif;
}
.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: var(--accent);
}
.lang-toggle__flag {
    font-size: 1.1rem;
    line-height: 1;
}
.lang-toggle__label {
    letter-spacing: 0.5px;
}
.lang-arrow {
    font-size: 0.7rem;
    opacity: 0.7;
    transition: transform 0.2s;
}
.lang-dropdown.open .lang-arrow {
    transform: rotate(180deg);
}
.lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 6px 0;
    list-style: none;
    min-width: 150px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    animation: langFadeIn 0.2s ease;
}
.lang-dropdown.open .lang-menu {
    display: block;
}
@keyframes langFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.lang-option {
    padding: 10px 18px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.lang-option.active {
    color: var(--accent);
    font-weight: 600;
}

/* Hamburger menu (visibile solo su mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigazione principale */
.main-nav {
    background: var(--primary-light);
    overflow: visible;
    position: relative;
    z-index: 1000;
}

.nav-list {
    display: flex;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-list > li > a {
    display: block;
    padding: 14px 16px;
    color: #ddd;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
    color: #fff;
    border-bottom-color: var(--accent);
}

/* Desktop: menu compatto su una riga */
@media (min-width: 769px) {
    .nav-list {
        max-width: 1400px;
        padding: 0 4px;
        flex-wrap: nowrap;
    }

    .nav-list > li > a {
        padding: 10px 7px;
        font-size: 0.78rem;
    }

    .submenu li a {
        font-size: 0.78rem;
    }
}

/* Sottomenu */
.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary);
    list-style: none;
    min-width: 240px;
    box-shadow: var(--shadow-hover);
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 1001;
}

.submenu.open {
    display: block;
}

.submenu li a {
    display: block;
    padding: 10px 18px;
    color: #ccc;
    font-size: 0.9rem;
    transition: var(--transition);
}

.submenu li a:hover {
    background: var(--primary-light);
    color: #fff;
}

/* -----------------------------------------------------------------------------
   4. SEZIONI PAGINA (SPA)
   ----------------------------------------------------------------------------- */
.page {
    display: none;
    padding-top: calc(var(--header-height) + 48px);
    min-height: 100vh;
    animation: fadeIn 0.4s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.content-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* -----------------------------------------------------------------------------
   5. BANNER HOME (stile hotel)
   ----------------------------------------------------------------------------- */
.home-banner {
    text-align: center;
    padding: 52px 24px 44px;
    background: var(--bg);
    position: relative;
}

.home-banner__deco {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto 22px;
}

.home-banner__diamonds {
    font-size: 1.4rem;
    color: var(--accent);
    letter-spacing: 0.3em;
    margin-bottom: 10px;
}

.home-banner__location {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.home-banner__title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: 0.01em;
}

.home-banner__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.home-banner__divider span:not(.home-banner__diamond) {
    display: block;
    width: 48px;
    height: 1px;
    background: var(--accent);
    opacity: 0.7;
}

.home-banner__diamond {
    color: var(--accent);
    font-size: 0.65rem;
    line-height: 1;
}

.home-banner__subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 1.55rem;
    color: var(--text-light);
    letter-spacing: 0.03em;
}


/* -----------------------------------------------------------------------------
   6. BENVENUTO E CONTATTI
   ----------------------------------------------------------------------------- */
.welcome-section {
    text-align: center;
}

.welcome-card {
    background: var(--bg-card);
    padding: 35px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 20px auto;
    text-align: left;
    line-height: 1.8;
}

.welcome-card p {
    margin-bottom: 12px;
    font-size: 1rem;
}

.welcome-card__enjoy {
    font-family: 'Dancing Script', cursive;
    font-size: 1.6rem;
    color: var(--accent);
    text-align: center;
    margin-top: 20px !important;
}

.welcome-card__signature {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    color: var(--primary);
    text-align: right;
    font-weight: 600;
}

/* Contatti rapidi */
.contact-strip {
    text-align: center;
}

.contact-strip h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.contact-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-buttons--centered {
    margin-top: 20px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.contact-btn--phone {
    background: var(--primary);
    color: #fff;
}

.contact-btn--phone:hover {
    background: var(--primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.contact-btn--whatsapp {
    background: var(--whatsapp);
    color: #fff;
}

.contact-btn--whatsapp:hover {
    background: #1ebe5d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* -----------------------------------------------------------------------------
   7. FAQ
   ----------------------------------------------------------------------------- */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.faq-card:hover {
    box-shadow: var(--shadow-hover);
}

/* Gradiente condiviso: intestazioni FAQ e accordion Mappe */
.faq-header,
.accordion-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transition: background 0.3s;
}

.faq-header:hover,
.accordion-header:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1a252f);
}

.faq-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 12px;
    border-radius: var(--radius) var(--radius) 0 0;
}

.faq-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.faq-header h3,
.faq-header h4 {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.faq-toggle {
    font-size: 1.4rem;
    font-weight: 300;
    color: #fff;
    transition: transform var(--transition);
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.faq-card.open .faq-toggle {
    transform: rotate(45deg);
}

.faq-pin {
    font-size: 1rem;
    margin-right: 4px;
    flex-shrink: 0;
}

.faq-tts-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px 8px;
    margin-right: 6px;
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity 0.2s, transform 0.2s;
    line-height: 1;
}
.faq-tts-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}
.faq-tts-btn.speaking {
    opacity: 1;
    animation: tts-pulse 0.8s ease-in-out infinite alternate;
}
@keyframes tts-pulse {
    from { transform: scale(1); }
    to   { transform: scale(1.3); }
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 10px;
}

.faq-card.open .faq-body {
    max-height: 2000px;
    padding: 0 10px 14px;
}

.faq-img {
    border-radius: 8px;
    margin-bottom: 14px;
    max-width: 100%;
    display: block;
}

.faq-body ul,
.faq-body ol {
    padding-left: 20px;
    margin: 10px 0;
}

.faq-body li {
    margin-bottom: 6px;
}

.faq-body p {
    margin-bottom: 10px;
}

/* Video responsivo (YouTube embed) */
.video-responsive {
    width: 100%;
}

.video-responsive iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    border: none;
}

/* Tabella orari (raccolta rifiuti) */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 0.92rem;
}

.schedule-table th,
.schedule-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.schedule-table th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.schedule-table tbody tr:hover {
    background: #f5f5f5;
}

/* -----------------------------------------------------------------------------
   7b. COMPONENTI FAQ BODY
   Classi riutilizzabili per strutturare il contenuto interno delle FAQ.
   ----------------------------------------------------------------------------- */

/* Contenitore standard per il corpo delle FAQ */
.faq-content { max-width:560px; margin:0 auto; font-family:Georgia,serif; }
.faq-content--narrow { max-width:480px; }

/* Lista di righe informative (layout colonna) */
.info-rows { display:flex; flex-direction:column; gap:2px; }
.info-rows--spaced { gap:4px; }

/* Riga informativa con bordo laterale (alterna crema/bianco) */
.info-row { padding:10px 14px; background:var(--bg-cream); border-left:3px solid var(--accent-gold); color:var(--card-dark); font-size:0.9rem; line-height:1.6; }
.info-row--alt { background:var(--bg-card); border-left-color:var(--card-dark); }
.info-row--accent { padding:12px 16px; border-left-width:4px; }

/* Riga con icona + testo (chiavi, dispositivi) */
.info-row--flex { display:flex; align-items:center; gap:12px; }
.info-row--flex-baseline { display:flex; align-items:baseline; gap:10px; }

/* Etichetta dorata maiuscola */
.gold-label { font-size:0.7rem; font-weight:700; color:var(--accent-gold); text-transform:uppercase; letter-spacing:2px; margin-bottom:4px; }

/* Pallino colorato per le chiavi */
.key-dot { display:inline-block; width:18px; height:18px; border-radius:50%; border:2px solid #aaa; flex-shrink:0; }

/* Tabella card (bordo scuro, header scuro) */
.card-table { border:2px solid var(--card-dark); overflow:hidden; }
.card-table__header { padding:8px 14px; background:var(--card-dark); }
.card-table__header .gold-label { margin-bottom:0; }
.card-table__row { display:flex; justify-content:space-between; padding:8px 14px; background:var(--bg-cream); border-bottom:1px solid var(--accent-gold); font-size:0.88rem; color:var(--card-dark); }
.card-table__row--alt { background:var(--bg-card); border-bottom-color:var(--border-light); }
.card-table__row--last { border-bottom:none; }
.card-table__row--gold-border { border-bottom-color:var(--accent-gold); }
.card-table__row--detail { font-size:0.88rem; line-height:1.6; }
.card-table__row--muted { color:#888; }
.card-table__row--info { display:flex; align-items:center; gap:10px; font-size:0.9rem; color:var(--card-dark); padding:10px 14px; }

/* Pannello scuro (avvisi, warning) */
.dark-panel { padding:12px 14px; background:var(--card-dark); color:var(--accent-gold); font-size:0.88rem; line-height:1.6; }
.dark-panel strong { color:#fff; }
.dark-panel strong.accent { color:var(--accent-gold); }
.dark-panel .muted { color:#e0e0e0; }
.dark-panel .sub { color:#aaa; font-style:italic; margin-top:4px; font-size:0.82rem; }

/* Passo numerato */
.step-num { font-family:Georgia,serif; color:var(--accent-gold); font-weight:700; min-width:16px; }

/* Pulsante scuro con accento dorato */
.btn-gold { display:inline-block; padding:12px 24px; background:var(--card-dark); color:var(--accent-gold); font-size:0.9rem; font-weight:700; text-decoration:none; border:2px solid var(--accent-gold); letter-spacing:1px; transition:background 0.2s, color 0.2s; }
.btn-gold:hover { background:var(--accent-gold); color:var(--card-dark); }

/* Nota a margine */
.ref-note { text-align:right; margin-top:6px; font-size:0.72rem; color:#888; letter-spacing:1px; font-family:Georgia,serif; font-style:italic; }

/* Valore monospace (password, reti) */
.mono-value { font-family:monospace; font-size:1rem; font-weight:700; color:var(--card-dark); letter-spacing:1px; }
.mono-value--small { font-size:0.95rem; }

/* -----------------------------------------------------------------------------
   8. MAPPE / ACCORDION DINTORNI
   ----------------------------------------------------------------------------- */
.dintorni-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 8px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
}

.accordion-header {
    width: 100%;
    padding: 16px 20px;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-icon {
    font-size: 1.4rem;
    font-weight: 300;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 12px;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 16px;
}

.accordion-item.open .accordion-body {
    padding: 16px;
}

.accordion-body p {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
}

.accordion-body a {
    color: var(--accent);
}

.accordion-body__img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* Link esterni come accordion header */
.accordion-link {
    display: flex;
    text-decoration: none;
    margin-bottom: 8px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.accordion-link .accordion-icon {
    font-size: 1.1rem;
}

/* Contenitore iframe mappa */
.map-iframe-wrap {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.map-iframe-wrap iframe {
    display: block;
    width: 100%;
    height: 50vh;
    min-height: 300px;
    border: none;
}

.map-iframe-wrap--centered {
    max-width: 800px;
    margin: 0 auto;
}

/* -----------------------------------------------------------------------------
   9. RECENSIONI
   ----------------------------------------------------------------------------- */
.reviews-header {
    text-align: center;
    margin-bottom: 40px;
}

.reviews-header__label {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.reviews-header__title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 14px;
}

.reviews-header__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.reviews-header__stars {
    color: var(--accent);
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.reviews-header__score {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 22px 20px;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.review-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-card__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-card__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.review-card__name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-card__date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.review-card__stars {
    color: var(--accent);
    font-size: 0.85rem;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.review-card__text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

/* -----------------------------------------------------------------------------
   11. POSIZIONE
   ----------------------------------------------------------------------------- */
.map-container {
    text-align: center;
}

/* -----------------------------------------------------------------------------
   11. NUMERI UTILI
   ----------------------------------------------------------------------------- */
.numbers-section {
    margin-bottom: 30px;
}

.numbers-category {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 14px;
    padding: 10px 16px;
    background: var(--bg-card);
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.numbers-category--emergency {
    border-left-color: var(--emergency);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.number-card {
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.number-card:hover {
    box-shadow: var(--shadow-hover);
}

.number-card--emergency {
    border-left: 4px solid var(--emergency);
}

.number-card h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.number-card a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.emergency-number {
    font-size: 1.5rem !important;
    color: var(--emergency) !important;
}

.alt-number {
    display: block;
    margin-top: 4px;
}

.alt-number a {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-light);
}

/* -----------------------------------------------------------------------------
   12. CALENDARIO
   ----------------------------------------------------------------------------- */
.calendar-container {
    text-align: center;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.legend-item .dot {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.dot--available {
    background: #DDFFCC;
    border: 1px solid #88cc66;
}

.dot--unavailable {
    background: #FFC0BD;
    border: 1px solid #cc6666;
}

.calendar-embed {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
}

.calendar-embed iframe {
    width: 100%;
    height: 600px;
    border: none;
}

.calendar-note {
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* -----------------------------------------------------------------------------
   13. FOOTER
   ----------------------------------------------------------------------------- */
.site-footer {
    background: var(--primary);
    color: #ccc;
    padding: 30px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #fff;
}

.footer-logo img {
    border-radius: 50%;
}

.footer-contacts {
    display: flex;
    gap: 20px;
}

.footer-contacts a {
    color: var(--accent);
    font-weight: 500;
}

.footer-copy {
    font-size: 0.82rem;
    color: #888;
}

/* -----------------------------------------------------------------------------
   14. COMPONENTI FLOTTANTI
   ----------------------------------------------------------------------------- */

/* WhatsApp FAB */
.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    z-index: 999;
    opacity: 0.85;
}

.whatsapp-fab:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Pulsante torna in alto */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* -----------------------------------------------------------------------------
   14. CLASSI UTILITY (estratte dagli inline styles)
   ----------------------------------------------------------------------------- */

/* --- Testo e paragrafi --- */
.text-body        { margin-bottom: 12px; line-height: 1.7; color: #2c2c2c; font-size: 0.95rem; }
.text-note        { margin: 0; color: #555; line-height: 1.6; font-size: 0.88rem; font-style: italic; }
.text-intro       { margin-bottom: 10px; color: #2c2c2c; font-size: 0.9rem; line-height: 1.6; font-style: italic; }
.text-center      { text-align: center; }
.link-plain       { text-decoration: none; }

/* --- Spaziatura (margin-bottom) --- */
.mb-xs            { margin-bottom: 4px; }
.mb-sm            { margin-bottom: 6px; }
.mb-md            { margin-bottom: 8px; }
.mb-lg            { margin-bottom: 12px; }
.mb-xl            { margin-bottom: 16px; }
.mt-md            { margin-top: 14px; }
.mt-lg            { margin-top: 16px; }

/* --- Contenitori speciali --- */
.tax-box          { border: 2px solid #2c2c2c; padding: 18px; background: #fff; }
.emergency-panel  { border-left: 4px solid #c9a84c; }
.border-left-thick { border-left-width: 4px; }

/* --- Immagini --- */
.img-responsive   { width: 100%; height: auto; display: block; }
.img-thumbnail    { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }

/* --- Chiavi colorate (cancello) --- */
.key-dot--nero    { background: #1a1a1a; }
.key-dot--ciano   { background: #00B5CC; }
.key-dot--blu     { background: #1565C0; }
.key-dot--verde   { background: #2E7D32; }
.key-dot--rosso   { background: #C62828; }

/* --- SVG silenzi --- */
.quiet-svg        { max-width: 500px; display: block; margin: 0 auto; }

/* --- Footer codici --- */
.footer-codes     { text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.6); letter-spacing: 0.5px; margin-bottom: 8px; }

/* --- Bottone farmacie (inline flex) --- */
.btn-gold--inline { display: inline-flex; align-items: center; gap: 10px; }

/* -----------------------------------------------------------------------------
   15. RESPONSIVE
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--primary);
        overflow-y: auto;
        z-index: 999;
    }

    .main-nav.open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        padding: 10px 0;
    }

    .nav-list > li > a {
        padding: 14px 24px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .submenu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: rgba(0, 0, 0, 0.15);
    }

    .submenu li a {
        padding-left: 40px;
        font-size: 1rem;
    }

    .logo__title {
        font-size: 1.15rem;
    }

    .logo__tagline {
        font-size: 0.8rem;
    }

    .logo__img {
        width: 40px;
        height: 40px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .home-banner__title {
        font-size: 2rem;
    }

    .home-banner__subtitle {
        font-size: 1.25rem;
    }

    .welcome-card {
        padding: 24px 18px;
    }

    .contact-btn {
        padding: 12px 22px;
        font-size: 0.9rem;
    }

    .numbers-grid {
        grid-template-columns: 1fr 1fr;
    }

    .page {
        padding-top: calc(var(--header-height) + 10px);
    }

    .calendar-embed iframe {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .numbers-grid {
        grid-template-columns: 1fr;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .calendar-embed iframe {
        height: 400px;
    }

    .welcome-card__enjoy {
        font-size: 1.3rem;
    }
}
