/* =========================================================
   Lido Rosa - foglio di stile
   Idea: la tenda a strisce rosse e bianche del lido, col bordo
   a festoni, è l'unico elemento decorativo. Il resto è sobrio:
   colori del logo (blu, azzurro, arancio, rosso) e sabbia.
   ========================================================= */

:root {
    /* Colori presi dal logo Lido Rosa: blu, azzurro, arancio, rosso del salvagente */
    --navy: #0068b0;          /* blu logo: titoli, fasce */
    --navy-deep: #005596;     /* blu logo più scuro: fondo del footer */
    --navy-2: #0098d8;        /* azzurro logo: mare, sfumature */
    --sky-text: #0080c0;      /* azzurro leggibile su sabbia e come fondo con testo bianco */
    --red: #e83840;           /* rosso del salvagente: tenda sopra lo slideshow */
    --orange: #f08020;        /* arancio logo: tutti i bottoni */
    --orange-dark: #e06a00;
    --on-orange: #fff;          /* testo sui pulsanti arancioni (prima era il blu scuro var(--ink)) */   /* arancio al passaggio del mouse */
    --foam: #d9f1fc;          /* schiuma: testi chiari su fondo blu */
    --sand: #f3e4c7;          /* sabbia */
    --sand-deep: #e6cfa3;     /* sabbia bagnata */
    --ink: #12385e;
    --bianco: #ffffff;
    --muted: #4a5d72;
    --line: rgba(0, 72, 130, .16);

    --font-display: "Yeseva One", Georgia, "Times New Roman", serif;
    --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Grana della sabbia generata in SVG (nessuna immagine da caricare) */
    --sand-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .33 0 0 0 0 .18 0 0 0 .55 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --sand-bg: var(--sand-grain), radial-gradient(120% 60% at 15% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%), radial-gradient(90% 70% at 100% 100%, rgba(214, 180, 120, .35), rgba(214, 180, 120, 0) 70%), var(--sand);
    /* Sabbia chiara asciutta: sfondo generale della pagina */
    --sand-light-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .38 0 0 0 0 .2 0 0 0 .3 -.08'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), #fcf7ee;

    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --stripe: 28px;
    --header-h: 84px;
    --topbar-h: 36px;
    --radius: 6px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + var(--header-h) + 30px); }

body {
    margin: 0;
    background: var(--sand-light-bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--navy); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--orange-dark); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; color: var(--navy); }

.skip {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 4px;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }

/* ---------- Tenda a strisce ---------- */

.awning {
    /* tenda: strisce rosse e sabbia (con la grana) e festone tondo in basso (disegno SVG, funziona in tutti i browser) */
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='20' viewBox='0 0 44 20'%3E%3Cdefs%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .38 0 0 0 0 .2 0 0 0 .3 -.08'/%3E%3C/filter%3E%3CclipPath id='s'%3E%3Cpath d='M22 0H44V9A11 11 0 0 1 22 9Z'/%3E%3C/clipPath%3E%3C/defs%3E%3Cpath d='M0 0H22V9A11 11 0 0 1 0 9Z' fill='%23e83840'/%3E%3Cg clip-path='url(%23s)'%3E%3Crect width='44' height='20' fill='%23fcf7ee'/%3E%3Crect width='44' height='20' filter='url(%23n)'/%3E%3C/g%3E%3C/svg%3E") center top / 44px 20px repeat-x;
    filter: drop-shadow(0 2px 0 rgba(0, 52, 100, .12));
}

/* ---------- Header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--sand-light-bg);
}
.site-header .awning { position: absolute; left: 0; right: 0; top: 100%; pointer-events: none; }

/* Barra in alto: contatti e scelta della lingua */
.topbar { background: var(--navy); color: #fff; font-size: .88rem; }
.topbar__inner {
    max-width: calc(var(--wrap) + 160px); margin: 0 auto;
    height: var(--topbar-h); padding: 0 var(--gutter);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar__contacts { margin: 0; display: flex; gap: 20px; white-space: nowrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--foam); }
@media (max-width: 560px) { .topbar__email { display: none; } }

.lang-switch { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.lang-switch a { display: block; padding: 4px 9px; border-radius: var(--radius); font-weight: 600; }
.lang-switch a[aria-current] { background: var(--orange); color: var(--on-orange); }
.lang-switch__code { display: none; }
@media (max-width: 760px) {
    .lang-switch__name { display: none; }
    .lang-switch__code { display: inline; }
}

.site-header__bar {
    max-width: calc(var(--wrap) + 160px); margin: 0 auto;
    height: var(--header-h);
    padding: 0 var(--gutter);
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { flex: 0 1 auto; min-width: 0; }
.brand img { height: 46px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.nav-toggle { flex: none; }
/* Su telefono resta solo l'icona del menu: la parola "Menu/Закрыть" non deve spingere fuori il logo */
@media (max-width: 480px) {
    .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .nav-toggle { padding: 10px; }
}

.site-nav { display: flex; align-items: center; min-width: 0; }
.site-nav__list, .site-nav__sub { list-style: none; margin: 0; padding: 0; }
.site-nav__list { display: flex; gap: 2px; }
.site-nav__item { position: relative; }
.site-nav__item > a {
    display: block; padding: 10px 9px;
    color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem;
    white-space: nowrap;               /* le voci non vanno mai a capo, in nessuna lingua */
    border-radius: var(--radius);
}
.site-nav__item > a:hover { color: var(--navy); background: rgba(255, 255, 255, .6); }
.site-nav__item.is-active > a { color: var(--navy); box-shadow: inset 0 -3px 0 var(--orange); }
/* Offerte: tasto evidenziato in arancio */
.site-nav__item--cta { margin-left: 8px; }
.site-nav__item--cta > a,
.site-nav__item--cta.is-active > a { background: var(--orange); color: var(--on-orange); font-weight: 700; box-shadow: none; }
.site-nav__item--cta > a:hover { background: var(--orange-dark); color: var(--on-orange); }
/* Offerte: riflesso di luce che passa e leggero "respiro" per attirare l'attenzione */
.site-nav__item--cta > a { position: relative; overflow: hidden; isolation: isolate; animation: cta-pulse 2.8s ease-in-out infinite; }
.site-nav__item--cta > a::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1; pointer-events: none;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .65), transparent);
    transform: skewX(-20deg); animation: cta-shine 4.2s ease-in-out infinite;
}
.site-nav__item--cta > a:hover, .site-nav__item--cta > a:focus-visible { animation: none; transform: translateY(-1px); }
.site-nav__item--cta > a:hover::after { animation-play-state: paused; }
@keyframes cta-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(240, 128, 32, .55); }
    50%      { box-shadow: 0 0 0 7px rgba(240, 128, 32, 0); }
}
@keyframes cta-shine {
    0%, 55% { left: -60%; }
    85%, 100% { left: 130%; }
}

.sub-toggle { display: none; }

.site-nav__sub {
    position: absolute; top: 100%; left: 0; min-width: 230px;
    background: var(--sand-light-bg); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 8px; box-shadow: 0 18px 40px -18px rgba(0, 52, 100, .35);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .15s, transform .15s, visibility .15s;
    z-index: 5;
}
.has-sub:hover > .site-nav__sub,
.has-sub:focus-within > .site-nav__sub { opacity: 1; visibility: visible; transform: none; }
.site-nav__sub a { display: block; padding: 8px 12px; border-radius: var(--radius); text-decoration: none; color: var(--ink); white-space: nowrap; }
.site-nav__sub a:hover, .site-nav__sub a[aria-current] { background: var(--sand); color: var(--navy); }

.nav-toggle {
    display: none; align-items: center; gap: 10px;
    background: none; border: 0; padding: 10px 4px; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer;
}
.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after {
    display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s;
}
.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -7px; }
.nav-toggle__icon::after { top: 7px; }
.nav-open .nav-toggle__icon { background: transparent; }
.nav-open .nav-toggle__icon::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__icon::after { transform: translateY(-7px) rotate(-45deg); }

/* Sotto questa larghezza il menu non sta più su una riga in tutte le lingue: menu a scomparsa */
@media (max-width: 1180px) {
    :root { --header-h: 72px; }
    .brand img { height: 40px; }
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: fixed; inset: calc(var(--topbar-h) + var(--header-h)) 0 0 0;
        flex-direction: column; align-items: stretch; gap: 24px;
        background: var(--sand-bg); padding: 40px var(--gutter) 32px;
        overflow-y: auto;
        transform: translateX(100%); visibility: hidden;
        transition: transform .25s ease, visibility .25s;
    }
    .nav-open .site-nav { transform: none; visibility: visible; }
    .site-nav__list { flex-direction: column; gap: 0; }
    .site-nav__item { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
    .site-nav__item > a { flex: 1; font-family: var(--font-display); font-size: 1.6rem; padding: 14px 0; border-radius: 0; white-space: normal; }
    .site-nav__item > a:hover { background: none; }
    .site-nav__item.is-active > a { box-shadow: none; color: var(--sky-text); }
    .site-nav__item--cta { margin: 20px 0 0; border-bottom: 0; }
    .site-nav__item--cta > a { padding: 14px 18px; border-radius: var(--radius); text-align: center; }
    .site-nav__item--cta > a:hover { background: var(--orange-dark); }
    .sub-toggle {
        display: block; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative;
    }
    .sub-toggle::after {
        content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px;
        border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
        transform: translate(-50%, -70%) rotate(45deg); transition: transform .2s;
    }
    .sub-toggle[aria-expanded="true"]::after { transform: translate(-50%, -30%) rotate(-135deg); }
    .site-nav__sub {
        position: static; width: 100%; box-shadow: none; border: 0; padding: 0 0 12px; background: none;
        opacity: 1; visibility: visible; transform: none; display: none;
    }
    .site-nav__sub.is-open { display: block; }
    .has-sub:hover > .site-nav__sub { display: none; }
    .has-sub:hover > .site-nav__sub.is-open, .site-nav__sub.is-open { display: block; }
    .site-nav__sub a { white-space: normal; }
    body.nav-open { overflow: hidden; }
}

/* ---------- Bottoni ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 12px 24px;
    border-radius: var(--radius); border: 2px solid transparent;
    font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
    text-decoration: none; cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--orange); color: var(--on-orange); }
.btn--primary:hover { background: var(--orange-dark); color: var(--on-orange); }
.btn--ghost { border-color: var(--orange); color: #fff; }
.btn--ghost:hover { background: var(--orange); color: var(--on-orange); }
.btn--line { border-color: var(--orange); color: var(--ink); }
.btn--line:hover { background: var(--orange); color: var(--on-orange); }
.btn[disabled] { opacity: .6; cursor: progress; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Sezioni ---------- */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding-top: clamp(32px, 5vw, 56px); }
.section--sand { background: var(--sand-bg); }
.section--sea {
    /* acqua bassa vicino alla riva: azzurro chiaro, così non si confonde con il blu del footer che arriva subito sotto */
    position: relative; isolation: isolate;
    color: var(--ink);
    padding-bottom: calc(clamp(56px, 8vw, 104px) + 24px);
}
/* l'acqua (con l'onda in cima) è un unico sfondo: il gradiente prosegue senza stacchi dentro l'onda */
.section--sea::before {
    content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: -51px; bottom: 0; pointer-events: none;
    background:
        radial-gradient(70% 45% at 85% 18%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg, #c4eaf9 0%, #ddf3fc 45%, #eef9fd 100%);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C120 6 240 6 360 26 S600 54 720 34 960 4 1080 22 1320 52 1440 28 V60 H0Z' fill='%23000'/%3E%3C/svg%3E") top / 100% 52px no-repeat, linear-gradient(#000, #000) 0 51px / 100% calc(100% - 51px) no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C120 6 240 6 360 26 S600 54 720 34 960 4 1080 22 1320 52 1440 28 V60 H0Z' fill='%23000'/%3E%3C/svg%3E") top / 100% 52px no-repeat, linear-gradient(#000, #000) 0 51px / 100% calc(100% - 51px) no-repeat;
}
.section--sea::after, .site-footer::after {
    content: ""; position: absolute; left: 0; right: 0; top: -51px; height: 52px; pointer-events: none;
    background-repeat: no-repeat; background-position: center bottom; background-size: 100% 100%;
}
.section--sea::after { z-index: -2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C120 6 240 6 360 26 S600 54 720 34 960 4 1080 22 1320 52 1440 28 V60 H0Z' fill='%23ffffff' fill-opacity='.75' transform='translate%280 -8%29'/%3E%3C/svg%3E"); }
.section--sea .section-title, .section--sea h2 { color: var(--navy); }
.section--sea a:not(.btn) { color: var(--navy); }

.section-title { font-size: clamp(2rem, 4.2vw, 3.1rem); max-width: 18ch; }

.prose > * { max-width: 68ch; }
.prose p { margin: 0 0 1.1em; }
.prose--large { font-size: 1.18rem; line-height: 1.65; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; font-family: var(--font-body); font-weight: 700; }
/* privacy: larghezza fissa del contenitore, i riquadri occupano sempre tutta la colonna */
.legal-wrap { max-width: 900px; }
.prose--legal { width: 100%; font-size: 1rem; line-height: 1.7; }
.prose--legal > * { max-width: none; }
.legal-summary, .legal-toc, .legal-table { box-sizing: border-box; width: 100%; }
.legal-table table { table-layout: auto; min-width: 100%; }
.prose--legal h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.65rem); margin: 2.4em 0 .6em; padding-top: 1.2em;
    border-top: 1px solid var(--line); scroll-margin-top: 140px;
}
.prose--legal h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; color: var(--ink); margin: 1.6em 0 .4em; }
.prose--legal ul { padding-left: 1.2em; }
.prose--legal li { margin-bottom: .35em; }
.prose--legal li::marker { color: var(--orange); }
.prose--legal code { font-size: .88em; background: var(--sand-bg); padding: 1px 6px; border-radius: 4px; }
/* riquadro "In breve" */
.legal-summary {
    background: #fff; border-left: 4px solid var(--orange); border-radius: var(--radius);
    padding: 20px 24px; margin: 0 0 28px; box-shadow: 0 14px 34px -26px rgba(0, 52, 100, .5);
}
.legal-summary__title, .legal-toc__title { margin: 0 0 8px !important; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.legal-summary ul { margin: 0; }
/* indice */
.legal-toc { background: var(--sand-bg); border-radius: var(--radius); padding: 18px 24px; margin: 0 0 32px; }
.legal-toc ol { margin: 0; padding-left: 1.4em; columns: 2 240px; column-gap: 32px; }
.legal-toc li { margin: 0 0 4px; break-inside: avoid; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
/* tabelle */
.legal-table { overflow-x: auto; margin: 1em 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.legal-table thead th { background: var(--navy); color: #fff; font-weight: 600; white-space: nowrap; }
.legal-table tbody tr:last-child td { border-bottom: 0; }
.legal-table tbody tr:nth-child(even) td { background: rgba(0, 104, 176, .04); }
/* telefono: ogni riga della tabella diventa una scheda */
@media (max-width: 600px) {
    .legal-table { border: 0; background: none; overflow: visible; }
    .legal-table thead { display: none; }
    .legal-table table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
    .legal-table tr { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
    .legal-table tbody tr:nth-child(even) td { background: none; }
    .legal-table td { border-bottom: 1px solid var(--line); padding: 9px 14px; }
    .legal-table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
    .legal-table tbody tr td:last-child { border-bottom: 0; }
    .legal-table td::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--navy); margin-bottom: 2px; }
}
.legal-updated { margin-top: 3em !important; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); font-style: italic; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
/* testo con una foto a destra (Pizzeria) */
.two-col--media { align-items: center; }
/* la colonna di destra (riquadro) arriva in fondo quanto quella di sinistra */
.two-col--stretch { align-items: stretch; }
.side-photo { margin: 0; position: relative; }
.side-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: 0 24px 50px -28px rgba(0, 52, 100, .55); }
.side-photo::before {
    content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
    border-radius: var(--radius); border: 3px solid var(--orange);
}
@media (max-width: 860px) { .side-photo { max-width: 460px; } .side-photo::before { display: none; } }
/* illustrazione (es. il pizzaiolo): intera, senza cornice né ritaglio, su un cerchio sabbia */
.side-photo--illustration { justify-self: center; width: min(100%, 340px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--sand-bg); }
.side-photo--illustration::before { inset: -14px; border-radius: 50%; border-style: dashed; border-width: 2px; }
.side-photo--illustration img { width: 78%; aspect-ratio: auto; object-fit: contain; border-radius: 0; box-shadow: none; filter: drop-shadow(0 14px 18px rgba(0, 52, 100, .25)); }
@media (max-width: 860px) { .side-photo--illustration::before { display: block; } }

/* ---------- Hero (home) ---------- */

.hero {
    position: relative; isolation: isolate;
    /* le foto dello slideshow sono panoramiche (1900x550): altezza proporzionata */
    min-height: clamp(460px, 46vw, 760px);
    display: flex; align-items: flex-end;
    color: #fff;
    overflow: hidden;
    background: var(--navy);
}
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.06);
    transition: opacity 1.4s ease, transform 7s ease-out;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
/* la prima foto è già visibile all'apertura: lo zoom si fa con un'animazione */
.hero__slide.is-first { animation: hero-zoom 7s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(20deg, rgba(0, 52, 100, .88) 0%, rgba(0, 52, 100, .55) 38%, rgba(0, 52, 100, 0) 70%);
}
.hero__controls {
    position: absolute; right: var(--gutter); bottom: 24px; z-index: 2;
    display: flex; align-items: center; gap: 14px;
}
.hero__dots { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.hero__dot, .hero__pause {
    border: 0; padding: 0; cursor: pointer; background: transparent;
}
.hero__dot {
    width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid #fff; transition: background-color .2s, transform .2s;
}
.hero__dot.is-active { background: var(--orange); border-color: var(--orange); transform: scale(1.2); }
.hero__pause { width: 32px; height: 32px; border-radius: var(--radius); border: 2px solid var(--orange); position: relative; }
.hero__pause::before, .hero__pause::after {
    content: ""; position: absolute; top: 9px; width: 3px; height: 10px; background: #fff; border-radius: 1px;
}
.hero__pause::before { left: 10px; }
.hero__pause::after { left: 16px; }
.hero__pause.is-paused::after { display: none; }
.hero__pause.is-paused::before {
    left: 11px; top: 8px; width: 0; height: 0; background: none;
    border-left: 10px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
@media (max-width: 640px) {
    .hero__controls { left: var(--gutter); right: auto; bottom: 16px; }
    .hero__text { padding-bottom: 72px !important; }
}
.hero__text {
    width: 100%; max-width: var(--wrap); margin: 0 auto;
    padding: 120px var(--gutter) clamp(48px, 7vw, 88px);
}
.hero__since { margin: 0 0 12px; font-size: 1.05rem; font-weight: 500; color: var(--foam); }
.hero__title {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(4.6rem, 15vw, 11.5rem);
    line-height: .82; letter-spacing: -.02em;
    color: #fff; margin: 0 0 24px;
}
.hero__lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); max-width: 36ch; margin: 0 0 28px; color: #eef4fa; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__title { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }

/* Testi dello slideshow: uno per foto, sovrapposti; si vede quello della foto attiva */
.hero__captions { display: grid; align-items: end; }
.hero__caption {
    grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px);
    transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .9s;
}
.hero__caption.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .25s, .25s, 0s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.season-strip {
    margin: 0; padding: 14px var(--gutter);
    background: var(--sky-text); color: #fff; font-weight: 600;
    text-align: center; font-weight: 500;
}

/* ---------- Storia + timeline ---------- */

.story__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 96px); align-items: start; }
@media (max-width: 900px) { .story__grid { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 30px 32px; }
.timeline li::before {
    content: ""; position: absolute; left: -6px; top: 14px; width: 14px; height: 14px;
    border-radius: 50%; background: #fff; border: 3px solid var(--sky-text);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline__year { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1.1; color: var(--sky-text); }
.timeline p { margin: 4px 0 0; color: var(--muted); max-width: 34ch; }

/* ---------- Mosaico servizi ---------- */

.mosaic {
    list-style: none; margin: 40px 0 0; padding: 0;
    display: grid; gap: 14px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, minmax(220px, 26vw));
    grid-template-areas:
        "a a b b"
        "a a c d"
        "e e f f";
}
.mosaic__item--1 { grid-area: a; }
.mosaic__item--2 { grid-area: b; }
.mosaic__item--3 { grid-area: c; }
.mosaic__item--4 { grid-area: d; }
.mosaic__item--5 { grid-area: e; }
.mosaic__item--6 { grid-area: f; }
@media (min-width: 1300px) { .mosaic { grid-template-rows: repeat(3, 320px); } }
/* senza camere o senza appartamenti: quello che resta prende tutta l'ultima riga; senza entrambi la riga sparisce */
.mosaic--5 { grid-template-areas: "a a b b" "a a c d" "e e e e"; }
.mosaic--4 { grid-template-rows: repeat(2, minmax(220px, 26vw)); }
@media (min-width: 1300px) { .mosaic--4 { grid-template-rows: repeat(2, 320px); } }

.mosaic a {
    position: relative; display: block; height: 100%;
    border-radius: 6px; overflow: hidden; color: #fff; text-decoration: none;
    background: var(--navy);
}
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mosaic a:hover img { transform: scale(1.04); }
.mosaic a::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0, 52, 100, .85), rgba(0, 52, 100, 0) 60%);
}
.mosaic__label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px 22px; }
.mosaic__name { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.05; }
.mosaic__item--1 .mosaic__name { font-size: clamp(2.2rem, 4.4vw, 3.8rem); }
.mosaic__text { display: block; margin-top: 6px; max-width: 40ch; font-size: .98rem; color: #e2ecf6; }
.mosaic__item--3 .mosaic__text, .mosaic__item--4 .mosaic__text { display: none; }

@media (max-width: 760px) {
    .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 200px; grid-template-areas: "a a" "a a" "b b" "c d" "e e" "f f"; }
    .mosaic__text { display: none; }
    .mosaic--5, .mosaic--4 { grid-template-areas: "a a" "a a" "b b" "c d" "e e"; }
}

/* ---------- Video ---------- */

/* Due video affiancati; le copertine (loghi su fondo bianco) restano intere */
.videos__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); margin-top: 32px; }
.videos__item {
    position: relative; aspect-ratio: 16 / 9; background: #fff; overflow: hidden;
    border-radius: var(--radius); box-shadow: 0 24px 50px -30px rgba(0, 52, 100, .5);
}
.videos__item video { width: 100%; height: 100%; display: block; background: #000; }
/* copertina con il tasto play: sparisce quando parte il video */
.videos__cover {
    position: absolute; inset: 0; width: 100%; height: 100%;
    border: 0; padding: 5% 8%; margin: 0; background: #fff; cursor: pointer;
    display: block;
}
.videos__cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.videos__play {
    position: absolute; right: 16px; bottom: 16px; width: 64px; height: 64px;
    border-radius: 50%; background: var(--orange); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .45);
    transition: transform .2s, background-color .2s;
}
.videos__play::after {
    content: ""; position: absolute; left: 25px; top: 19px;
    border-left: 20px solid var(--ink); border-top: 13px solid transparent; border-bottom: 13px solid transparent;
}
.videos__cover:hover .videos__play, .videos__cover:focus-visible .videos__play { transform: scale(1.08); background: var(--orange-dark); }
.videos__item.is-started .videos__cover { display: none; }
@media (max-width: 760px) {
    .videos__grid { grid-template-columns: 1fr; }
    .videos__cover { padding: 6% 16%; }
    .videos__play { width: 48px; height: 48px; right: 10px; bottom: 10px; }
    .videos__play::after { left: 19px; top: 14px; border-left-width: 15px; border-top-width: 10px; border-bottom-width: 10px; }
}

/* ---------- Offerta in home ---------- */

.offer-band__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.offer-band__grid--2 { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.offer-band__posters { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(14px, 2.5vw, 24px); max-width: 460px; }
.offer-band__grid--2 .offer-band__posters { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
.offer-band__poster { margin: 0; }
.offer-band__name { font-size: 1.3rem; font-weight: 600; color: var(--ink); margin: 0 0 4px; }
.offer-band__desc { margin: 0 0 16px; }
.offer-band__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 820px) {
    .offer-band__grid, .offer-band__grid--2 { grid-template-columns: 1fr; }
    .offer-band__posters { margin: 0 auto; width: 100%; }
}

/* ---------- Dove siamo ---------- */

.where__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.where__lead { font-size: 1.25rem; color: var(--ink); font-weight: 500; }
@media (max-width: 860px) { .where__grid { grid-template-columns: 1fr; } }

.map-frame { border-radius: 6px; overflow: hidden; background: #cfe6f2; aspect-ratio: 4 / 3; box-shadow: 0 24px 50px -30px rgba(0, 52, 100, .45); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-frame--tall { aspect-ratio: 16 / 9; }
@media (max-width: 700px) { .map-frame--tall { aspect-ratio: 3 / 4; } }

.steps { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 52px; }
.steps li::before {
    content: counter(step); position: absolute; left: 0; top: -2px;
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--orange); color: var(--on-orange); font-weight: 700;
}

/* ---------- Testata pagine interne ---------- */

.page-head { background: var(--sand-bg); }
.page-head__text { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter) clamp(40px, 5vw, 64px); }
.page-head h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: .95; margin: 0; letter-spacing: -.01em; }
.page-head__lead { margin: 16px 0 0; font-size: clamp(1.1rem, 1.8vw, 1.35rem); max-width: 46ch; color: var(--muted); }
.page-head__crumb { margin: 0 0 12px; font-weight: 600; }
.page-head__crumb a { text-decoration: none; color: var(--sky-text); }

.page-head--image {
    position: relative; isolation: isolate; color: #fff;
    min-height: clamp(340px, 52vh, 560px); display: flex; align-items: flex-end;
}
.page-head--image .page-head__text { width: 100%; }
.page-head__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-head--image::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to top, rgba(0, 52, 100, .85), rgba(0, 52, 100, .15) 70%);
}
.page-head--image h1 { color: #fff; }
.page-head--image .page-head__lead { color: #eef4fa; }
.page-head--image .page-head__crumb a { color: var(--foam); }

/* ---------- Schede informative ---------- */

.info-card { background: var(--sand-bg); border-radius: 6px; padding: 28px; }
.section--sand .info-card { background: rgba(255, 255, 255, .7); }
.info-card__hours { font-weight: 600; font-size: 1.1rem; color: var(--navy); margin: 0 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.info-card__title { font-size: 1.5rem; }

/* elenco dei servizi: due colonne ordinate, una spunta arancione per voce, righe sottili */
.tag-list { list-style: none; margin: 0; padding: 0; columns: 2 200px; column-gap: 28px; }
.tag-list li {
    break-inside: avoid; position: relative; padding: 8px 0 8px 28px;
    border-bottom: 1px solid var(--line); font-size: .98rem; line-height: 1.35;
}
.tag-list li::before {
    content: ""; position: absolute; left: 0; top: 10px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
/* pagina Lido: riquadro dei servizi più largo, sempre su due colonne (una sola sul telefono) */
.two-col--wide-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 860px) { .two-col--wide-aside { grid-template-columns: 1fr; } }
.tag-list--2 { columns: 2; }
.tag-list--2 li:last-child { column-span: all; } /* l'ultima voce (la più lunga) occupa entrambe le colonne */
@media (max-width: 480px) { .tag-list--2 { columns: 1; } }
.tag-list li:last-child { border-bottom: 0; }
.tag-list li::before { top: 9px; }
.info-card { border-top: 4px solid var(--orange); }
.info-card__title { margin-bottom: 14px; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 0 0 14px 30px; max-width: 60ch; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }

.price-table { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.price-table th, .price-table td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { width: 38%; font-weight: 600; }
.price-table td { color: var(--navy); font-weight: 600; }

/* ---------- Slider ---------- */

.slider { position: relative; }
.slider__track {
    list-style: none; margin: 0; padding: 0 0 6px;
    display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 440px);
    gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: thin; scrollbar-color: var(--navy) transparent;
}
.slider__slide { scroll-snap-align: start; }
.slider__slide a { display: block; border-radius: 6px; overflow: hidden; }
.slider__slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.slider__caption { margin: 10px 0 0; font-weight: 500; color: var(--muted); }
.slider__controls { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
/* riga sotto il carosello: pulsante a sinistra, frecce a destra */
.slider__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.slider__bar .slider__controls { margin-top: 0; margin-left: auto; }
/* il pulsante è largo quanto una foto del carosello */
.slider__actions { flex: 0 0 min(78%, 440px); }
.slider__actions .btn { width: 100%; padding-left: 14px; padding-right: 14px; white-space: nowrap; font-size: 1rem; }
@media (max-width: 520px) { .slider__actions .btn { white-space: normal; } }
@media (max-width: 640px) { .slider__actions { flex-basis: 86%; } }
/* cellulare: frecce sopra, pulsante sotto a tutta larghezza */
@media (max-width: 640px) {
    .slider__bar .slider__controls { order: 1; margin-left: auto; }
    .slider__actions { order: 2; flex: 0 0 100%; }
    .slider__actions .btn { white-space: normal; }
}
/* tasto "torna su": compare scorrendo la pagina, in basso a destra */
.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 50px; height: 50px; border-radius: 50%;
    display: grid; place-items: center; background: var(--orange); color: var(--on-orange); text-decoration: none;
    box-shadow: 0 10px 24px -8px rgba(0, 52, 100, .45);
    opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s ease, transform .3s ease, background-color .2s;
}
.to-top[hidden] { display: grid; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover, .to-top:focus-visible { background: var(--orange-dark); color: var(--on-orange); transform: translateY(-3px); }
body.modal-open .to-top { opacity: 0; pointer-events: none; }
@media (max-width: 640px) { .to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; } }

/* ---------- Chat WhatsApp: pulsante in basso a sinistra con la finestrella (a destra c'è "torna su") ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wa-widget { --wa: #25d366; --wa-dark: #128c7e; --wa-head: #075e54; position: fixed; left: 20px; bottom: 20px; z-index: 70; }
.wa-chat {
    position: relative; height: 58px; min-width: 58px; padding: 0 14px;
    display: inline-flex; align-items: center; border-radius: 29px;
    background: var(--wa); color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap;
    box-shadow: 0 10px 26px -8px rgba(0, 60, 30, .55);
    transition: padding .35s ease, background-color .2s, transform .2s;
}
.wa-chat:hover, .wa-chat:focus-visible { background: #1ebe5b; color: #fff; transform: translateY(-3px); }
.wa-chat__icon, .wa-chat__x { flex: none; transition: transform .35s ease, opacity .25s ease; }
.wa-chat__x { position: absolute; left: 17px; opacity: 0; transform: rotate(-90deg) scale(.6); }
.wa-chat__label { max-width: 0; overflow: hidden; opacity: 0; margin-left: 0; transition: max-width .4s ease, opacity .3s ease, margin .4s ease; }
.wa-widget:not(.is-open) .wa-chat:hover .wa-chat__label, .wa-widget:not(.is-open) .wa-chat:focus-visible .wa-chat__label { max-width: 260px; opacity: 1; margin: 0 6px 0 10px; }
.wa-widget.is-open .wa-chat__icon { opacity: 0; transform: rotate(90deg) scale(.6); }
.wa-widget.is-open .wa-chat__x { opacity: 1; transform: none; }
.wa-chat::before {
    content: ""; position: absolute; left: 0; top: 0; width: 58px; height: 58px; border-radius: 50%;
    animation: wa-ring 6s ease-out 3s infinite; pointer-events: none;
}
.wa-widget.is-open .wa-chat::before { animation: none; }
@keyframes wa-ring { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 18%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }

/* fumetto di invito che compare da solo una volta */
.wa-teaser {
    position: absolute; left: 4px; bottom: 72px; margin: 0; padding: 10px 14px; border-radius: 14px 14px 14px 4px;
    background: #fff; color: var(--ink); font-weight: 600; font-size: .95rem; white-space: nowrap;
    box-shadow: 0 14px 34px -12px rgba(0, 40, 80, .45); cursor: pointer;
    opacity: 0; transform: translateY(8px) scale(.96); transform-origin: bottom left; transition: opacity .3s ease, transform .35s ease;
}
.wa-teaser[hidden] { display: block; visibility: hidden; }
.wa-teaser.is-shown { visibility: visible; opacity: 1; transform: none; }

/* finestrella */
.wa-box {
    position: absolute; left: 0; bottom: 74px; width: min(360px, calc(100vw - 28px));
    display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff;
    box-shadow: 0 24px 60px -16px rgba(0, 30, 60, .5);
    opacity: 0; transform: translateY(14px) scale(.96); transform-origin: bottom left; visibility: hidden;
    transition: opacity .25s ease, transform .3s cubic-bezier(.2, .75, .15, 1), visibility 0s linear .3s;
}
.wa-box[hidden] { display: flex; }
.wa-widget.is-open .wa-box { opacity: 1; transform: none; visibility: visible; transition: opacity .25s ease, transform .3s cubic-bezier(.2, .75, .15, 1); }
.wa-box__head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; background: var(--wa-head); color: #fff; }
.wa-box__avatar { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.wa-box__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.wa-box__avatar::after { content: ""; position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--wa); border: 2px solid var(--wa-head); }
.wa-box__who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.wa-box__who strong { font-size: 1.05rem; }
.wa-box__status { font-size: .82rem; opacity: .85; }
.wa-box__close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.wa-box__close:hover, .wa-box__close:focus-visible { background: rgba(255, 255, 255, .15); }
.wa-box__body {
    padding: 16px 14px 10px; max-height: min(52vh, 360px); overflow-y: auto;
    background-color: #efeae2;
    background-image: radial-gradient(rgba(0, 0, 0, .035) 1.2px, transparent 1.3px);
    background-size: 14px 14px;
}
.wa-box__typing { display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 0 12px 12px 12px; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.wa-box__typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa5ad; animation: wa-dot 1s ease-in-out infinite; }
.wa-box__typing span:nth-child(2) { animation-delay: .15s; }
.wa-box__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes wa-dot { 0%, 60%, 100% { transform: none; opacity: .6; } 30% { transform: translateY(-4px); opacity: 1; } }
.wa-box__msg {
    position: relative; display: none; max-width: 88%; padding: 10px 12px 18px; border-radius: 0 12px 12px 12px;
    background: #fff; color: #111b21; font-size: .95rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
    animation: wa-pop .3s ease-out;
}
.wa-box__msg p { margin: 0 0 6px; }
.wa-box__msg p:last-of-type { margin-bottom: 0; }
.wa-box__time { position: absolute; right: 10px; bottom: 4px; font-size: .7rem; color: #667781; }
.wa-box__topics { list-style: none; margin: 12px 0 0; padding: 0; display: none; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.wa-box.is-ready .wa-box__typing { display: none; }
.wa-box.is-ready .wa-box__msg { display: block; }
.wa-box.is-ready .wa-box__topics { display: flex; animation: wa-pop .35s ease-out .15s both; }
@keyframes wa-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wa-box__topic {
    padding: 8px 12px; border: 1px solid var(--wa-dark); border-radius: 16px; background: #fff; color: var(--wa-dark);
    font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s;
}
.wa-box__topic:hover, .wa-box__topic:focus-visible { background: var(--wa-dark); color: #fff; }
.wa-box__form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 10px 6px; background: #f0f2f5; }
.wa-box__form textarea {
    flex: 1; min-height: 42px; max-height: 110px; padding: 10px 14px; border: 0; border-radius: 21px; resize: none;
    background: #fff; color: #111b21; font: inherit; font-size: .95rem; line-height: 1.35;
}
.wa-box__form textarea:focus { outline: 2px solid var(--wa); outline-offset: 0; }
.wa-box__send { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--wa-dark); color: #fff; cursor: pointer; display: grid; place-items: center; }
.wa-box__send:hover, .wa-box__send:focus-visible { background: var(--wa-head); }
.wa-box__note { margin: 0; padding: 0 14px 10px; background: #f0f2f5; color: #667781; font-size: .75rem; text-align: center; }

body.modal-open .wa-widget { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
    .wa-widget { left: 14px; bottom: 14px; }
    .wa-chat { height: 52px; min-width: 52px; padding: 0 11px; }
    .wa-chat::before { width: 52px; height: 52px; }
    .wa-chat__icon { width: 28px; height: 28px; }
    .wa-chat__x { left: 14px; }
    .wa-box { bottom: 66px; }
    .wa-teaser { bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
    .wa-chat::before, .wa-box__typing span { animation: none; }
    .wa-box, .wa-teaser { transition: none; }
}
@media print { .wa-widget, .to-top { display: none; } }
.slider__btn {
    width: 48px; height: 48px; border-radius: var(--radius); border: 2px solid var(--orange);
    background: transparent; color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer;
    display: grid; place-items: center; padding-bottom: 4px;
}
.slider__btn:hover { background: var(--orange); color: var(--on-orange); }
.slider__btn[disabled] { opacity: .3; cursor: default; background: transparent; color: var(--ink); }
@media (max-width: 640px) { .slider__track { grid-auto-columns: 86%; } }

.room__name { font-size: clamp(2rem, 4vw, 3rem); }

/* ---------- Gallerie ---------- */

.count-note { color: var(--muted); margin: 0 0 20px; }
.empty-note { padding: 40px; text-align: center; background: var(--sand-bg); border-radius: 6px; }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.gallery__item a { display: block; border-radius: 4px; overflow: hidden; background: var(--sand); }
.gallery__item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .2s; }
.gallery__item a:hover img { opacity: .85; }
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; } }

.year-nav { margin-top: 40px; }
.year-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.year-nav a { display: block; padding: 8px 16px; border: 2px solid var(--orange); border-radius: var(--radius); text-decoration: none; font-weight: 600; color: var(--ink); }
.year-nav a[aria-current], .year-nav a:hover { background: var(--orange); color: var(--on-orange); }

.summers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.summers a { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--navy); color: #fff; text-decoration: none; }
.summers img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .2s; }
.summers a:hover img { opacity: 1; }
.summers__year { position: absolute; left: 18px; bottom: 34px; font-family: var(--font-display); font-size: 3.4rem; line-height: 1; text-shadow: 0 2px 16px rgba(0, 0, 0, .4); }
.summers__count { position: absolute; left: 20px; bottom: 14px; font-size: .9rem; font-weight: 600; }

.dishes { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dishes a { position: relative; display: block; border-radius: 6px; overflow: hidden; color: #fff; text-decoration: none; background: var(--navy); }
.dishes img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.dishes span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; font-family: var(--font-display); font-size: 1.7rem; background: linear-gradient(to top, rgba(0, 52, 100, .85), transparent); }
@media (max-width: 760px) { .dishes { grid-template-columns: 1fr 1fr; } }
/* passaggio del mouse: la foto si ingrandisce, la scritta sale e compare la freccia */
.dishes a { box-shadow: 0 10px 24px -18px rgba(0, 52, 100, .6); transition: transform .35s ease, box-shadow .35s ease; }
.dishes img { transition: transform .7s cubic-bezier(.2, .75, .15, 1), filter .4s ease; }
.dishes span { transition: padding .35s ease, background-color .35s ease; }
.dishes span::after {
    content: "\2192"; display: inline-block; margin-left: 10px; font-family: var(--font-body); font-size: 1.2rem;
    color: var(--orange); opacity: 0; transform: translateX(-8px); transition: opacity .3s ease, transform .3s ease;
}
.dishes a::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
    box-shadow: inset 0 0 0 0 var(--orange); transition: box-shadow .35s ease;
}
.dishes a:hover, .dishes a:focus-visible { transform: translateY(-6px); box-shadow: 0 22px 40px -20px rgba(0, 52, 100, .7); }
.dishes a:hover img, .dishes a:focus-visible img { transform: scale(1.08); filter: saturate(1.15); }
.dishes a:hover span, .dishes a:focus-visible span { padding-bottom: 26px; }
.dishes a:hover span::after, .dishes a:focus-visible span::after { opacity: 1; transform: none; }
.dishes a:hover::before, .dishes a:focus-visible::before { box-shadow: inset 0 0 0 4px var(--orange); }
.dishes span { z-index: 2; }

.link-row { display: flex; flex-wrap: wrap; gap: 10px; }
.link-tile { display: inline-block; padding: 14px 22px; border-radius: var(--radius); background: var(--sand-bg); text-decoration: none; font-weight: 600; color: var(--navy); }
.link-tile:hover { background: var(--orange); color: var(--on-orange); }
/* sotto il carosello, sullo sfondo sabbia */
.link-row--under { margin-top: 28px; justify-content: center; }
.section--sand .link-tile { background: #fff; box-shadow: 0 6px 18px -12px rgba(0, 52, 100, .45); }
.section--sand .link-tile:hover { background: var(--orange); color: var(--on-orange); }

/* ---------- Offerte ---------- */

/* locandine: tutte con le stesse misure (formato verticale), anche quella "in arrivo" */
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 40px); max-width: 960px; }
.offers--1 { grid-template-columns: minmax(0, 460px); justify-content: center; }
@media (max-width: 640px) { .offers { grid-template-columns: 1fr; } }
.offers__item { margin: 0; }
.offers__item { min-width: 0; }
/* le due locandine (piena o "in arrivo") hanno sempre la stessa misura: altezza fissata dalla larghezza */
.offers__poster {
    display: block; position: relative; width: 100%; height: 0; padding-top: 146.2857%; /* 1024 / 700 */
    border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px -30px rgba(0, 52, 100, .5);
    container-type: inline-size;
}
.offers__poster img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
/* locandina: si solleva e si inclina seguendo il mouse, con un riflesso di luce */
a.offers__poster {
    --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%;
    transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform .6s cubic-bezier(.2, .75, .15, 1), box-shadow .5s ease;
    cursor: zoom-in;
}
a.offers__poster.is-tilt { transition: transform .12s linear, box-shadow .5s ease; }
a.offers__poster:hover, a.offers__poster:focus-visible {
    transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-8px) scale(1.015);
    box-shadow: 0 40px 70px -34px rgba(0, 52, 100, .65);
}
.offers__glare {
    position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease;
    background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 55%);
    mix-blend-mode: soft-light;
}
a.offers__poster:hover .offers__glare { opacity: 1; }
.offers__zoom {
    position: absolute; left: 50%; bottom: 18px; display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px 9px 13px; border-radius: 999px; background: rgba(0, 40, 80, .82); color: #fff;
    font-weight: 600; font-size: .95rem; white-space: nowrap; pointer-events: none;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    opacity: 0; transform: translate(-50%, 12px) scale(.9);
    transition: opacity .3s ease, transform .45s cubic-bezier(.2, .75, .15, 1);
}
a.offers__poster:hover .offers__zoom, a.offers__poster:focus-visible .offers__zoom { opacity: 1; transform: translate(-50%, 0) scale(1); }
@media (hover: none) {
    .offers__zoom { opacity: 1; transform: translate(-50%, 0); font-size: .88rem; padding: 7px 14px 7px 11px; }
}
@media (prefers-reduced-motion: reduce) {
    a.offers__poster, a.offers__poster:hover { transform: none; }
}
.offers__poster--soon { background: var(--sand-bg); box-shadow: 0 24px 50px -30px rgba(0, 52, 100, .5); color: var(--navy); }
.offers__soon-in {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; gap: 10px; padding: 8%; border: 2px dashed rgba(240, 128, 32, .55); border-radius: inherit;
}
.offers__soon-in svg { color: var(--orange); width: clamp(36px, 13cqi, 54px); height: auto; }
.offers__soon { margin: 0; font-family: var(--font-display); font-size: clamp(1.2rem, 7.5cqi, 2rem); line-height: 1.15; }
.offers__soon-text { margin: 0; max-width: 28ch; color: var(--muted); font-size: clamp(.85rem, 4cqi, 1rem); }
.offers__item figcaption { margin-top: 14px; font-weight: 600; font-size: 1.1rem; text-align: center; }
.offers__cta { text-align: center; justify-content: center; margin-top: 36px; }

/* ---------- Contatti ---------- */

.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact__list { margin: 0; }
.contact__list dt { font-weight: 600; color: var(--muted); font-size: .92rem; margin-top: 18px; }
.contact__list dd { margin: 4px 0 0; font-size: 1.15rem; }
.contact__list a { text-decoration: none; font-weight: 600; }

.contact-form { background: var(--sand-bg); border-radius: 6px; padding: clamp(24px, 4vw, 40px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field input[type="number"], .field select, .field textarea {
    width: 100%; padding: 12px 14px; font: inherit;
    border: 1px solid rgba(0, 72, 130, .35); border-radius: 6px; background: #fff; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field--small input { max-width: 140px; }
.field--check { display: flex; gap: 10px; align-items: flex-start; }
.field--check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--orange); flex: none; }
.field--check label { font-weight: 400; margin: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; background: #fff6f5; }
.field__error { display: block; color: #b3261e; font-size: .9rem; margin-top: 4px; font-weight: 600; }
.form-note { font-size: .9rem; color: var(--muted); }
.form-status { margin: 16px 0 0; font-weight: 600; }
.form-status.is-ok { color: var(--navy); }
.form-status.is-error { color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */

.site-footer { background: linear-gradient(180deg, #0078c0 0%, var(--navy-deep) 100%); color: #e6f3fb; position: relative; }
/* Onde del footer: tre strati (schiuma, onda chiara, mare) che scorrono piano a velocità diverse */
.site-footer::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C120 14 260 10 380 24 S600 48 720 34 S940 8 1080 22 S1320 46 1440 30 V60 H0Z' fill='%230078c0'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C120 14 260 10 380 24 S600 48 720 34 S940 8 1080 22 S1320 46 1440 30 V60 H0Z' fill='%2341a9e1' fill-opacity='0.75' transform='translate%280 -5%29'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C120 14 260 10 380 24 S600 48 720 34 S940 8 1080 22 S1320 46 1440 30 V60 H0Z' fill='%23d9f1fc' transform='translate%280 -8%29'/%3E%3C/svg%3E");
    background-repeat: repeat-x; background-size: 1440px 100%, 1100px 100%, 1700px 100%;
    background-position: 0 100%, 0 100%, 0 100%;
    animation: footer-waves 38s linear infinite;
}
@keyframes footer-waves {
    to { background-position: -1440px 100%, 1100px 100%, -1700px 100%; }
}
@media (max-width: 760px) {
    .site-footer::after { background-size: 900px 100%, 700px 100%, 1100px 100%; animation-name: footer-waves-sm; animation-duration: 30s; }
}
@keyframes footer-waves-sm { to { background-position: -900px 100%, 700px 100%, -1100px 100%; } }
@media (prefers-reduced-motion: reduce) { .site-footer::after { animation: none; } }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer__inner {
    max-width: var(--wrap); margin: 0 auto; padding: 64px var(--gutter) 40px;
    display: grid; grid-template-columns: 1.3fr 1.1fr 1fr; gap: 36px;
}
.site-footer__name { font-family: var(--font-display); font-size: 2.4rem; color: #fff; margin: 0; line-height: 1; }
.site-footer__brand p { margin: 0 0 8px; }
.site-footer__season { margin-top: 18px !important; color: #fff; font-weight: 600; }
.site-footer__contacts { font-style: normal; }
.site-footer__contacts p { margin: 0 0 14px; }
.site-footer__heading { margin: 0 0 10px; font-weight: 700; color: #fff; }
/* menu Servizi: titolo più grande, colonna spostata a destra */
.site-footer__nav .site-footer__heading { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; margin-bottom: 14px; }
@media (min-width: 901px) { .site-footer__nav { justify-self: end; min-width: 180px; } }

/* ---------- Social (icone monocromatiche) ---------- */
.social { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.social__link { display: grid; place-items: center; text-decoration: none; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.social__icon { display: block; width: 100%; height: 100%; fill: currentColor; }
/* barra in alto: piccole, bianche; al passaggio diventano arancioni (nessuno spostamento) */
.social--top { margin-left: auto; margin-right: 10px; gap: 2px; }
.social--top .social__link { width: 28px; height: 28px; padding: 6px; border-radius: 50%; color: rgba(255, 255, 255, .85); }
.site-header .social--top .social__link:hover, .site-header .social--top .social__link:focus-visible { color: var(--on-orange); background: var(--orange); }
/* footer: in orizzontale, cerchi con il bordo */
.site-footer__social { margin-top: 22px; }
.social--footer { gap: 8px; }
.social--footer .social__link { width: 40px; height: 40px; padding: 10px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.site-footer .social--footer .social__link:hover, .site-footer .social--footer .social__link:focus-visible { color: var(--on-orange); background: var(--orange); border-color: var(--orange); }
@media (max-width: 760px) { .social--top { display: none; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer__legal {
    max-width: var(--wrap); margin: 0 auto; padding: 20px var(--gutter) 28px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem;
}
.site-footer__legal p { margin: 0; }

/* Credits: fascia in fondo a tutto, testo molto piccolo */
.site-credits { background: rgba(0, 30, 60, .35); }
.site-credits p {
    max-width: var(--wrap); margin: 0 auto; padding: 8px var(--gutter);
    font-size: .7rem; line-height: 1.4; color: rgba(230, 243, 251, .75); text-align: center;
}
.site-credits a { color: #fff; text-decoration: underline; text-underline-offset: .15em; }
@media (max-width: 900px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- Richiesta disponibilità e prenotazione (finestra modale) ---------- */

.js-booking { letter-spacing: .02em; text-align: center; }
.btn--block { width: 100%; }
.room__cta { margin: 0 0 28px; }
/* pulsante evidenziato: più grande, ombra e riflesso di luce come il tasto Offerte */
.btn--highlight {
    position: relative; overflow: hidden; isolation: isolate;
    padding: 18px 36px; font-size: 1.05rem; box-shadow: 0 14px 30px -12px rgba(224, 106, 0, .6);
    animation: cta-pulse 2.8s ease-in-out infinite;
}
.btn--highlight::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1; pointer-events: none;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-20deg); animation: cta-shine 4.2s ease-in-out infinite;
}
.btn--highlight:hover { animation: none; transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(224, 106, 0, .7); }
@media (max-width: 520px) { .btn--highlight { width: 100%; padding: 16px 20px; } }

/* tasti con i nomi delle camere, sotto il testo */
.room-jump { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; width: 100%; }
@media (max-width: 420px) { .room-jump { grid-template-columns: 1fr; } }
.room-jump__link {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 22px; border-radius: var(--radius); font-size: 1.05rem;
    background: #fff; border: 2px solid var(--orange); color: var(--ink); font-weight: 700; text-decoration: none;
    transition: background-color .2s, color .2s, transform .2s;
}
.room-jump__link::after { content: "\2193"; color: var(--orange); transition: color .2s; }
.room-jump__link:hover, .room-jump__link:focus-visible { background: var(--orange); color: var(--on-orange); transform: translateY(-2px); }
.room-jump__link:hover::after, .room-jump__link:focus-visible::after { color: var(--on-orange); }
.room { scroll-margin-top: 130px; }
.field-row--3 { grid-template-columns: 1fr 1fr 1.4fr; }
@media (max-width: 560px) { .field-row--3 { grid-template-columns: 1fr 1fr; } .field-row--3 .field:last-child { grid-column: 1 / -1; } }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230068b0' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; }

.modal {
    position: fixed; inset: 0; z-index: 150;
    background: rgba(0, 30, 60, .72);
    display: flex; align-items: flex-start; justify-content: center;
    padding: 4vh 16px; overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal__box {
    position: relative; width: 100%; max-width: 640px;
    background: var(--sand-light-bg); border-radius: var(--radius);
    padding: clamp(24px, 4vw, 40px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5);
    border-top: 6px solid var(--red);
}
.modal__close {
    position: absolute; top: 10px; right: 10px; width: 44px; height: 44px;
    border: 0; background: none; font-size: 2rem; line-height: 1; color: var(--navy); cursor: pointer; border-radius: var(--radius);
}
.modal__close:hover { background: var(--sand); }
.modal__title { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 40px 8px 0; }
.modal__intro { margin: 0 0 22px; color: var(--muted); }
body.modal-open { overflow: hidden; }
.booking-done { text-align: center; padding: 30px 0 10px; }
.booking-done__title { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2rem); color: var(--navy); margin: 0 0 10px; }

/* ---------- Calendario (jQuery UI Datepicker) ---------- */

.js-date { cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230068b0' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") no-repeat right 14px center !important; padding-right: 44px !important; }
.ui-datepicker {
    display: none; z-index: 300 !important; width: 300px; padding: 12px;
    background: var(--sand-light-bg); border-radius: var(--radius);
    border-top: 4px solid var(--red); box-shadow: 0 20px 50px -15px rgba(0, 30, 60, .55);
    font-family: var(--font-body); color: var(--ink);
}
.ui-datepicker-header { position: relative; display: flex; align-items: center; justify-content: center; height: 40px; margin-bottom: 6px; }
.ui-datepicker-title { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); }
.ui-datepicker-prev, .ui-datepicker-next {
    position: absolute; top: 2px; width: 36px; height: 36px; border-radius: var(--radius);
    border: 2px solid var(--orange); cursor: pointer; font-size: 0; color: transparent;
}
.ui-datepicker-prev { left: 0; }
.ui-datepicker-next { right: 0; }
.ui-datepicker-prev::after, .ui-datepicker-next::after {
    content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px;
    border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.ui-datepicker-prev::after { transform: translate(-30%, -50%) rotate(45deg); }
.ui-datepicker-next::after { transform: translate(-70%, -50%) rotate(-135deg); }
.ui-datepicker-prev:hover, .ui-datepicker-next:hover { background: var(--orange); }
.ui-datepicker-prev.ui-state-disabled { opacity: .3; cursor: default; background: none; }
.ui-datepicker-calendar { width: 100%; border-collapse: collapse; text-align: center; }
.ui-datepicker-calendar th { font-size: .78rem; font-weight: 600; color: var(--muted); padding: 6px 0; }
.ui-datepicker-calendar td { padding: 2px; }
.ui-datepicker-calendar td a, .ui-datepicker-calendar td span {
    display: block; padding: 7px 0; border-radius: var(--radius); text-decoration: none; color: var(--ink); font-variant-numeric: tabular-nums;
}
.ui-datepicker-calendar td a:hover { background: var(--sand); }
.ui-datepicker-calendar .ui-state-highlight { box-shadow: inset 0 0 0 2px var(--sky-text); }
.ui-datepicker-calendar .ui-state-active { background: var(--orange) !important; font-weight: 700; }
.ui-datepicker-calendar .ui-state-disabled span { color: rgba(18, 56, 94, .3); }
.ui-datepicker-other-month { visibility: hidden; }

/* ---------- Lightbox (apertura dalla miniatura, passaggio tra le foto, miniature in basso) ---------- */

.lightbox {
    position: fixed; inset: 0; z-index: 200; color: #fff;
    display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto;
    --lb-ease: cubic-bezier(.2, .75, .15, 1);
}
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(0, 22, 44, .97); opacity: 0; transition: opacity .35s ease; }
.lightbox.is-open .lightbox__backdrop { opacity: 1; }
.lightbox__bar, .lightbox__stage, .lightbox__caption, .lightbox__thumbs, .lightbox__nav { position: relative; z-index: 1; }
.lightbox__bar, .lightbox__caption, .lightbox__thumbs, .lightbox__nav { opacity: 0; transition: opacity .3s ease .1s; }
.lightbox.is-open .lightbox__bar, .lightbox.is-open .lightbox__caption, .lightbox.is-open .lightbox__thumbs, .lightbox.is-open .lightbox__nav { opacity: 1; }

.lightbox__bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 0 20px; }
.lightbox__count { font-size: .92rem; letter-spacing: .06em; color: rgba(255, 255, 255, .8); font-variant-numeric: tabular-nums; }
.lightbox__close, .lightbox__nav {
    background: rgba(255, 255, 255, .08); border: 0; color: #fff; cursor: pointer;
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; padding: 0;
    transition: background-color .2s, transform .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--orange); color: var(--on-orange); }
.lightbox__nav { position: absolute; top: 50%; margin-top: -26px; z-index: 2; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__nav:active { transform: scale(.92); }

.lightbox__stage { overflow: hidden; touch-action: pan-y; }
.lightbox__img {
    position: absolute; inset: 12px 84px; width: calc(100% - 168px); height: calc(100% - 24px);
    object-fit: contain; transform-origin: center center; will-change: transform, opacity;
    user-select: none; -webkit-user-drag: none;
}
.lightbox__img.is-anim { transition: transform .5s var(--lb-ease), opacity .45s ease; }
.lightbox__spinner {
    position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px;
    border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--orange); border-radius: 50%;
    opacity: 0; transition: opacity .2s; animation: lb-spin .8s linear infinite;
}
.lightbox.is-loading .lightbox__spinner { opacity: 1; transition-delay: .2s; }
@keyframes lb-spin { to { transform: rotate(360deg); } }

.lightbox__caption { margin: 0; padding: 8px 20px 0; min-height: 1.6em; text-align: center; font-weight: 500; color: #e6f3fb; }
.lightbox__thumbs {
    display: flex; gap: 6px; padding: 12px 16px 16px; overflow-x: auto; justify-content: safe center;
    scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent;
}
.lightbox__thumb {
    flex: none; width: 64px; height: 46px; padding: 0; border: 2px solid transparent; border-radius: 4px;
    overflow: hidden; background: rgba(255, 255, 255, .08); cursor: pointer; opacity: .5;
    transition: opacity .2s, border-color .2s, transform .2s;
}
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox__thumb:hover { opacity: .85; }
.lightbox__thumb[aria-current="true"] { opacity: 1; border-color: var(--orange); transform: translateY(-2px); }
.lightbox--single .lightbox__nav, .lightbox--single .lightbox__thumbs { display: none; }

/* Locandine: sfondo sfocato, ingrandimento al clic e spostamento col mouse o col dito */
.lightbox--poster .lightbox__backdrop {
    background: rgba(0, 22, 44, .82); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
}
.lightbox--poster .lightbox__img { cursor: zoom-in; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)); }
.lightbox--poster .lightbox__img.is-zoomed {
    cursor: zoom-out; transition: transform .55s var(--lb-ease), transform-origin .25s ease-out;
}
.lightbox--poster .lightbox__img.is-panning { transition: transform .55s var(--lb-ease); }
.lightbox--poster.is-zoomed .lightbox__stage { touch-action: none; }
.lightbox--poster.is-zoomed .lightbox__nav,
.lightbox--poster.is-zoomed .lightbox__thumbs,
.lightbox--poster.is-zoomed .lightbox__caption { opacity: 0; pointer-events: none; }
.lightbox__hint {
    position: absolute; left: 50%; bottom: 18px; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px 10px 14px; border-radius: 999px; background: var(--orange); color: var(--on-orange);
    font-weight: 600; font-size: .95rem; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); pointer-events: none;
    width: max-content; max-width: calc(100% - 32px); text-align: center;
    opacity: 0; transform: translate(-50%, 16px); transition: opacity .35s ease, transform .5s var(--lb-ease);
}
.lightbox__hint.is-shown { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 640px) {
    .lightbox__img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
    .lightbox__nav { top: auto; bottom: 74px; margin-top: 0; width: 46px; height: 46px; background: rgba(0, 26, 52, .6); }
    .lightbox__thumb { width: 52px; height: 38px; }
}

/* ---------- Gallerie e slider: comparsa delle miniature e passaggio del mouse ---------- */

.gallery__item a, .slider__slide a { position: relative; }
.gallery__item img, .slider__slide img { transition: transform .6s var(--lb-ease, cubic-bezier(.2, .75, .15, 1)), filter .4s; }
.gallery__item a::after, .slider__slide a::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: rgba(0, 52, 100, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.5-4.5M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 38px no-repeat;
    opacity: 0; transition: opacity .3s ease;
}
.gallery__item a:hover img, .slider__slide a:hover img, .gallery__item a:focus-visible img, .slider__slide a:focus-visible img { transform: scale(1.07); opacity: 1; }
.gallery__item a:hover::after, .slider__slide a:hover::after, .gallery__item a:focus-visible::after, .slider__slide a:focus-visible::after { opacity: 1; }

/* comparsa a cascata quando la galleria entra nello schermo (classi aggiunte da main.js) */
.js-reveal > * { opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .6s ease, transform .7s var(--lb-ease, cubic-bezier(.2, .75, .15, 1)); }
.js-reveal > .is-in { opacity: 1; transform: none; }

/* ---------- Transizione tra le pagine ---------- */
/* Il contenuto entra in dissolvenza a ogni caricamento; menu in alto e tenda restano fermi. */
main, .site-footer { animation: page-in .45s ease-out both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
/* Uscita: la classe viene aggiunta da main.js quando si clicca un link interno */
body.is-leaving main, body.is-leaving .site-footer { opacity: 0; transition: opacity .28s ease-in; }

/* ---------- Movimento ridotto ---------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
