/* ==========================================================================
   Ithaka — foglio di stile principale
   Indice: 1 variabili · 2 base · 3 layout · 4 testata · 5 pulsanti e moduli · 6 componenti (badge, stelle, schede, accordion, tabelle…)
           7 piè di pagina · 8 fissi in basso (cookie, chat, dock) · 9 finestre e avvisi · 10 effetti e utilità
   Regole iPhone (skill website-creator): testata e barre fisse sono pillole ≤ 87% staccate di 10 px dai bordi; nessun velo a tutto schermo.
   ========================================================================== */

/* ---------- 1. variabili ---------- */
:root {
  --ink: #0d2238;            /* testo: blu notte */
  --ink-2: #2f445c;
  --muted: #5b6e83;
  --line: #e4dccd;           /* bordi caldi */
  --line-2: #eee7da;
  --paper: #fbf8f2;          /* sfondo avorio */
  --paper-2: #f3ece0;        /* sabbia */
  --white: #fff;
  --sea-50: #eef5fa;
  --sea-100: #d9e9f4;
  --navy-950: #07182b;
  --navy-900: #0a2540;
  --navy-800: #0f3558;
  --navy-700: #154a78;
  --aegean: #145f9f;         /* blu Egeo: link e azioni */
  --aegean-600: #104f86;
  --aegean-500: #1d74b9;
  --aegean-300: #7fb6de;
  --sun: #eea43a;            /* oro del sole: azione principale */
  --sun-600: #dc8d1b;
  --sun-700: #b97410;
  --sun-100: #fdf0d8;
  --sun-50: #fff8ea;
  --terra: #c5573a;          /* terracotta: urgenza («ultimi posti») */
  --terra-100: #fbe9e3;
  --olive: #2f7a53;          /* verde: disponibilità, partenza garantita */
  --olive-100: #e2f2ea;
  --danger: #b53a2e;
  --danger-bg: #fbeae8;
  --warn-bg: #fff4dc;
  --ok-bg: #e2f2ea;

  --font-display: 'Noto Serif Display', 'Noto Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, .06), 0 2px 8px -2px rgba(10, 37, 64, .08);
  --shadow-md: 0 2px 4px rgba(10, 37, 64, .05), 0 14px 30px -12px rgba(10, 37, 64, .22);
  --shadow-lg: 0 4px 10px rgba(10, 37, 64, .06), 0 30px 64px -24px rgba(10, 37, 64, .4);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.2, 1.3, .3, 1);

  --gutter: clamp(16px, 4.2vw, 40px);
  --wrap: 1280px;
  /* iOS: margine laterale di ogni elemento fisso o sticky vicino ai bordi alto/basso → larghezza ≤ 86% su ogni schermo */
  --edge: max(26px, 7vw);
  --header-h: 64px;
  --header-top-space: calc(10px + env(safe-area-inset-top) + var(--header-h));   /* quanto occupa la testata in cima alla pagina */
  --header-space: calc(var(--header-top-space) + 14px);
  --dock-h: 0px;
}
@media (min-width: 900px) { :root { --header-h: 70px; } }

/* ---------- 2. base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background-color: var(--paper); /* iOS: colore vero sotto la pagina, mai trasparente */
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-space) + 12px);
  scroll-behavior: smooth;
  color-scheme: light;
}
html.dark-top { background-color: var(--navy-950); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  background: var(--paper); color: var(--ink);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-weight: 500; letter-spacing: -.02em; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
::selection { background: var(--sun); color: var(--navy-950); }
:focus-visible { outline: 3px solid var(--aegean-500); outline-offset: 3px; border-radius: 6px; }
.section--navy :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--sun); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 200; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: calc(10px + env(safe-area-inset-top)); }
main:focus { outline: none; }
[hidden] { display: none !important; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 1em; height: 1em; }
.i-lg { width: 1.6em; height: 1.6em; }
.i-xl { width: 2.2em; height: 2.2em; stroke-width: 1.5; }
.hide-sm { display: none !important; }
@media (min-width: 700px) { .hide-sm { display: inline-flex !important; } .icon-btn.hide-sm { display: inline-grid !important; } }
.only-md { display: none; }
@media (min-width: 700px) and (max-width: 1079px), (min-width: 1400px) { .only-md { display: inline; } }
.num { font-variant-numeric: tabular-nums; }
.center { text-align: center; justify-content: center; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* le griglie a colonna unica non devono allargarsi oltre il contenitore per colpa del contenuto (testi lunghi, campi, tabelle) */
:where(*) { grid-auto-columns: minmax(0, 1fr); }

/* ---------- 3. layout ---------- */
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-narrow { width: min(880px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section-tight { padding-block: clamp(36px, 5vw, 64px); }
.section--sand { background: var(--paper-2); }
.section--white { background: var(--white); }
.section--sea { background: var(--sea-50); }
.section--navy { background: var(--navy-950); color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 700 .76rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--aegean-600); }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--sun); border-radius: 2px; }
.section--navy .eyebrow, .hero .eyebrow, .site-footer .eyebrow { color: var(--sun); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head > div { max-width: 660px; display: grid; gap: 14px; }
.section-head h2 { font-size: clamp(1.9rem, 1.1rem + 2.7vw, 3.1rem); }
.section-head p { color: var(--muted); font-size: 1.0625rem; }
.section--navy .section-head p { color: rgba(255, 255, 255, .72); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--aegean-600); padding: 10px 0; }
.link-arrow .i { transition: transform .25s var(--ease); }
@media (hover: hover) { .link-arrow:hover .i { transform: translateX(4px); } }
.section--navy .link-arrow { color: var(--sun); }
.lead { font-size: clamp(1.0625rem, .95rem + .5vw, 1.25rem); color: var(--ink-2); line-height: 1.6; }
.stack { display: grid; gap: var(--gap, 16px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.grid { display: grid; gap: var(--gap, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.page-top { padding-top: calc(var(--header-space) + 8px); }
.breadcrumbs { font-size: .875rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: '/'; margin-inline: 8px; color: var(--line); }
.breadcrumbs a { padding: 8px 0; }
@media (hover: hover) { .breadcrumbs a:hover { color: var(--aegean-600); text-decoration: underline; } }
.page-head { padding-top: 24px; padding-bottom: clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.page-head h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.9rem); }
.page-head .lead { max-width: 720px; }
/* testata di pagina con foto: la foto sta dietro la testata a pillola (che scorre sopra), come nella home */
.under-header { margin-top: calc(-1 * var(--header-top-space)); padding-top: var(--header-top-space); }

/* ---------- 4. testata a pillola ---------- */
.site-header {
  position: sticky; z-index: 60; top: calc(10px + env(safe-area-inset-top));
  margin: calc(10px + env(safe-area-inset-top)) auto 0;
  width: min(var(--wrap), calc(100% - 2 * var(--edge))); /* iOS: ≤ 86% dello schermo */
  border-radius: 999px;
  background: rgba(255, 255, 255, .93); border: 1px solid rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  transition: transform .55s var(--spring), opacity .35s ease-out, background-color .3s;
  box-shadow: 0 0 0 1px rgba(10, 37, 64, .06);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header { background: rgba(255, 255, 255, .97); } }
@media (hover: hover) and (min-width: 900px) { .site-header { box-shadow: 0 0 0 1px rgba(10, 37, 64, .06), 0 12px 32px -14px rgba(10, 37, 64, .4); } }
.site-header.is-hidden { transform: translate3d(0, calc(-100% - 40px - env(safe-area-inset-top)), 0) scale(.94); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .4s cubic-bezier(.35, 0, .8, .55), opacity .28s ease-in, visibility 0s .42s; }
.site-header__bar { display: flex; align-items: center; gap: 10px; min-height: var(--header-h); padding: 0 8px 0 16px; }
@media (min-width: 900px) { .site-header__bar { padding: 0 10px 0 22px; gap: 14px; } }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 44px; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__name { font: 600 1.55rem/1 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.brand--light .brand__name { color: #fff; }
.main-nav { display: none; margin-inline: auto; gap: 2px; align-items: center; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 0; background: none; border-radius: 999px; font: 650 .94rem/1.2 var(--font-body); color: var(--ink-2); transition: background-color .2s, color .2s; white-space: nowrap; }
.nav-link[aria-current='page'], .nav-link[aria-expanded='true'] { background: var(--sea-50); color: var(--navy-800); }
.nav-link__chev { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.nav-link[aria-expanded='true'] .nav-link__chev { transform: rotate(180deg); }
@media (hover: hover) { .nav-link:hover { background: var(--paper-2); color: var(--ink); } }
.nav-dd { position: static; }
.dd-panel { position: absolute; z-index: 70; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); width: min(1120px, calc(100vw - 2 * var(--edge))); padding: 26px 28px 20px; border-radius: 28px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: dd-in .28s var(--ease) both; }
.dd-tours { width: min(760px, calc(100vw - 2 * var(--edge))); }
@keyframes dd-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.dd-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 28px; }
.dd-col h3 { display: flex; align-items: center; gap: 8px; font: 700 .72rem/1 var(--font-body); letter-spacing: .13em; text-transform: uppercase; color: var(--aegean-600); margin-bottom: 10px; }
.dd-col h3 .i { width: 1.2em; height: 1.2em; color: var(--sun-700); }
.dd-col ul { display: grid; gap: 1px; }
.dd-col a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin-inline: -10px; border-radius: 10px; font-weight: 550; font-size: .95rem; color: var(--ink-2); }
@media (hover: hover) { .dd-col a:hover { background: var(--sea-50); color: var(--navy-800); } }
.dd-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
.dd-themes .i, .dd-quick .i { color: var(--aegean-500); }
.dd-tours__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; }
.dd-foot { display: flex; align-items: center; gap: 10px; margin: 22px -28px -20px; padding: 16px 28px; border-radius: 0 0 28px 28px; background: var(--sea-50); font-weight: 700; color: var(--navy-800); }
.dd-foot span { flex: 1; }
@media (hover: hover) { .dd-foot:hover { background: var(--sea-100); } }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-tel { display: none; align-items: center; gap: 8px; padding: 0 12px; min-height: 44px; font-weight: 700; font-size: .92rem; color: var(--ink-2); white-space: nowrap; border-radius: 999px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink-2); background: transparent; border: 0; transition: background-color .2s; }
@media (hover: hover) { .icon-btn:hover, .header-tel:hover { background: var(--paper-2); } }
.icon-btn .i { width: 22px; height: 22px; }
.fav-count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--terra); color: #fff; font: 800 .68rem/18px var(--font-body); text-align: center; }
.menu-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); margin-left: 2px; }
.menu-btn .i { width: 22px; height: 22px; grid-area: 1 / 1; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn__close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.menu-btn[aria-expanded='true'] .menu-btn__open { opacity: 0; transform: rotate(90deg) scale(.6); }
.menu-btn[aria-expanded='true'] .menu-btn__close { opacity: 1; transform: none; }
.header-cta { margin-left: 4px; white-space: nowrap; }
.cta-short { display: none; }
@media (min-width: 1080px) and (max-width: 1399px) { .cta-long { display: none; } .cta-short { display: inline; } }
@media (max-width: 479px) { .site-header .header-cta { display: none; } } /* iPhone Pro/Pro Max (402–430 px): con il pulsante la testata usciva dalla pillola */
.mobile-menu { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: grid; padding: 8px; border-radius: 28px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: calc(100svh - 120px); overflow: auto; overscroll-behavior: contain; }
.mobile-menu a, .mm-group summary { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 18px; font-weight: 600; }
.mobile-menu a > .i:last-child:not(:first-child), .mm-group summary .mm-chev { margin-left: auto; color: var(--muted); }
.mobile-menu a:active, .mm-group summary:active { background: var(--paper-2); }
.mobile-menu a > .i:first-child, .mm-group summary > .i:first-child { color: var(--aegean-500); }
.mobile-menu hr { margin: 6px 12px; }
.mm-group summary { list-style: none; cursor: pointer; } .mm-group summary::-webkit-details-marker { display: none; }
.mm-group[open] .mm-chev { transform: rotate(180deg); }
.mm-sub { display: grid; padding: 0 0 6px 16px; } .mm-sub a { min-height: 46px; font-weight: 550; font-size: .95rem; }
.mobile-menu .lang-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 12px 8px; }
.mobile-menu .lang-row > .i { width: 20px; height: 20px; color: var(--muted); margin-right: 4px; }
.mobile-menu .lang-row a { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font: 650 .86rem/1 var(--font-body); }
.mobile-menu .lang-row a[aria-current='true'] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
@media (min-width: 1080px) {
  .main-nav { display: flex; }
  .header-tel { display: inline-flex; }
  .menu-btn, .mobile-menu { display: none; }
}
@media (min-width: 1080px) and (max-width: 1559px) { .header-tel span { display: none; } .header-tel { padding: 0; width: 44px; justify-content: center; } }
@media (min-width: 1080px) and (max-width: 1499px) { .nav-opt { display: none; } }
@media (min-width: 1080px) and (max-width: 1279px) { .nav-link { padding: 10px 11px; } .header-tel, .icon-btn.fav-link { display: none !important; } }
@media (min-width: 1280px) and (max-width: 1399px) { .nav-link { padding: 10px 12px; } }

/* selettore della lingua: menu a tendina nella testata (da 1080 px), righe di sigle nel menu del telefono, elenco nel piè di pagina */
.lang-sw-wrap { display: none; }
@media (min-width: 1080px) { .lang-sw-wrap { display: block; } }
.lang-sw { position: relative; }
.lang-sw summary { list-style: none; } .lang-sw summary::-webkit-details-marker { display: none; }
.lang-sw__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: 999px; font: 700 .84rem/1 var(--font-body); letter-spacing: .05em; cursor: pointer; color: var(--ink-2); }
.lang-sw__chev { width: .9em; height: .9em; transition: transform .2s; } .lang-sw[open] .lang-sw__chev { transform: rotate(180deg); }
@media (hover: hover) { .lang-sw__btn:hover { background: var(--paper-2); } }
.lang-sw__list { position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; min-width: 170px; padding: 6px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.lang-sw__list a { display: flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 12px; font-weight: 600; font-size: .94rem; }
.lang-sw__list a[aria-current='true'] { background: var(--sea-50); color: var(--navy-800); }
@media (hover: hover) { .lang-sw__list a:hover { background: var(--paper-2); } }

/* ---------- 5. pulsanti e moduli ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1.5px solid transparent; border-radius: 999px; font: 700 .97rem/1.1 var(--font-body); letter-spacing: .005em; cursor: pointer; text-align: center; transition: background-color .2s, color .2s, border-color .2s, box-shadow .25s, transform .2s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.975); }
.btn .i { width: 1.2em; height: 1.2em; }
.btn-primary { background: var(--sun); color: var(--navy-950); box-shadow: 0 8px 22px -10px rgba(220, 141, 27, .9); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-blue { background: var(--aegean); color: #fff; }
.btn-outline { background: transparent; color: var(--navy-900); border-color: rgba(10, 37, 64, .28); }
.btn-ghost { background: transparent; color: var(--navy-800); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .9rem; }
.btn-lg { min-height: 60px; padding: 0 34px; font-size: 1.04rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .5; cursor: not-allowed; pointer-events: none; }
@media (hover: hover) {
  .btn-primary:hover { background: #f4b04f; box-shadow: 0 12px 26px -10px rgba(220, 141, 27, 1); }
  .btn-dark:hover { background: var(--navy-700); }
  .btn-blue:hover { background: var(--aegean-600); }
  .btn-outline:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
  .btn-ghost:hover { background: var(--sea-50); }
  .btn-light:hover { background: var(--sun); }
}
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(13, 34, 56, .25); border-top-color: var(--navy-900); animation: spin .7s linear infinite; }
.btn-dark.is-loading::after, .btn-blue.is-loading::after { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* moduli: campi alti almeno 52 px, font 16 px (iOS non ingrandisce la pagina), errori sotto il campo */
.field { display: grid; gap: 7px; }
.field > label, .field > .label { font-weight: 700; font-size: .875rem; color: var(--ink-2); }
.field .hint { font-size: .84rem; color: var(--muted); }
.field .opt { font-weight: 500; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-height: 52px; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--white); color: var(--ink); font-size: 16px; line-height: 1.35; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.textarea { min-height: 120px; resize: vertical; }
.select { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6e83' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.input::placeholder, .textarea::placeholder { color: #8b9aab; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--aegean-500); box-shadow: 0 0 0 4px rgba(29, 116, 185, .16); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(181, 58, 46, .1); }
.field-error { color: var(--danger); font-size: .86rem; font-weight: 600; }
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 639px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: .94rem; line-height: 1.45; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: 1.5px solid #b7ac97; border-radius: 7px; background: var(--white); display: grid; place-content: center; transition: background-color .15s, border-color .15s; }
.check input[type='radio'] { border-radius: 50%; }
.check input::before { content: ''; width: 12px; height: 12px; transform: scale(0); transition: transform .15s var(--spring); background: #fff; clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 20%, 86% 6%, 40% 70%); }
.check input[type='radio']::before { clip-path: circle(50%); width: 10px; height: 10px; }
.check input:checked { background: var(--navy-900); border-color: var(--navy-900); }
.check input:checked::before { transform: scale(1); }
.check input:focus-visible { outline: 3px solid var(--aegean-500); outline-offset: 2px; }
.check a { text-decoration: underline; text-underline-offset: 3px; color: var(--aegean-600); }
/* carta selezionabile (metodo di pagamento, tipo di camera, piano di pagamento…) */
.pick { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--white); cursor: pointer; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick:has(input:checked) { border-color: var(--aegean-500); background: var(--sea-50); box-shadow: 0 0 0 3px rgba(29, 116, 185, .14); }
.pick:has(input:focus-visible) { outline: 3px solid var(--aegean-500); outline-offset: 2px; }
.pick__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--sea-50); color: var(--aegean-600); }
.pick:has(input:checked) .pick__icon { background: var(--aegean); color: #fff; }
.pick__body { display: grid; gap: 2px; min-width: 0; flex: 1; } .pick__body strong { font-weight: 700; } .pick__body small { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.pick__end { font-weight: 800; white-space: nowrap; }
.pick::after { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #b7ac97; background: #fff; transition: all .15s; }
.pick:has(input:checked)::after { border-color: var(--aegean); background: radial-gradient(circle, var(--aegean) 0 45%, #fff 50%); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); }
.qty button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; font-size: 1.2rem; color: var(--navy-800); }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty output { min-width: 34px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .qty button:not(:disabled):hover { background: var(--sea-50); } }

/* ---------- 6. componenti ---------- */
/* badge e chip */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font: 700 .74rem/1.2 var(--font-body); letter-spacing: .03em; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.badge .i { width: 1.1em; height: 1.1em; }
.badge--gold { background: var(--sun); color: var(--navy-950); }
.badge--green { background: var(--olive-100); color: var(--olive); }
.badge--red { background: var(--terra-100); color: var(--terra); }
.badge--blue { background: var(--sea-100); color: var(--navy-800); }
.badge--dark { background: var(--navy-900); color: #fff; }
.badge--glass { background: rgba(255, 255, 255, .92); color: var(--navy-900); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); font: 650 .9rem/1 var(--font-body); color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: all .2s; }
.chip .i { width: 1.1em; height: 1.1em; color: var(--aegean-500); }
.chip em { font-style: normal; font-weight: 600; color: var(--muted); font-size: .82rem; }
.chip.is-on, .chip[aria-pressed='true'], .chip[aria-current='true'] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chip.is-on .i, .chip[aria-pressed='true'] .i { color: var(--sun); } .chip.is-on em, .chip[aria-pressed='true'] em { color: rgba(255, 255, 255, .7); }
@media (hover: hover) { .chip:not(.is-on):not([aria-pressed='true']):hover { border-color: var(--navy-800); color: var(--navy-900); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* stelle: --r = valutazione da 0 a 5 */
.stars { --r: 5; display: inline-block; width: 5.6em; height: 1.1em; background: linear-gradient(90deg, var(--sun) calc(var(--r) / 5 * 100%), #d9d1c1 0); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='20' viewBox='0 0 112 20'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='m10 1.5 2.5 5.6 6.1.6-4.6 4.1 1.4 6-5.4-3.2-5.4 3.2 1.4-6L1.4 7.7l6.1-.6z'/%3E%3Cuse href='%23s' x='22.4'/%3E%3Cuse href='%23s' x='44.8'/%3E%3Cuse href='%23s' x='67.2'/%3E%3Cuse href='%23s' x='89.6'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='20' viewBox='0 0 112 20'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='m10 1.5 2.5 5.6 6.1.6-4.6 4.1 1.4 6-5.4-3.2-5.4 3.2 1.4-6L1.4 7.7l6.1-.6z'/%3E%3Cuse href='%23s' x='22.4'/%3E%3Cuse href='%23s' x='44.8'/%3E%3Cuse href='%23s' x='67.2'/%3E%3Cuse href='%23s' x='89.6'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.rating { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); } .rating strong { font-weight: 800; color: var(--ink); }
/* prezzo: «da 1.290 € a persona» */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.price small { font-size: .8rem; color: var(--muted); font-weight: 600; }
.price strong { font: 500 1.7rem/1 var(--font-display); color: var(--navy-900); letter-spacing: -.015em; font-variant-numeric: lining-nums; }
.price s { color: var(--muted); font-size: .95rem; margin-right: 4px; }
/* avvisi in pagina */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r-md); background: var(--sea-50); color: var(--navy-800); font-size: .94rem; line-height: 1.5; border: 1px solid var(--sea-100); }
.notice > .i { margin-top: 1px; color: var(--aegean-500); }
.notice--ok { background: var(--ok-bg); border-color: #c8e6d6; color: #1d5a3b; } .notice--ok > .i { color: var(--olive); }
.notice--warn { background: var(--warn-bg); border-color: #f4dfb0; color: #7a5410; } .notice--warn > .i { color: var(--sun-700); }
.notice--err { background: var(--danger-bg); border-color: #f2cac5; color: #8e2d23; } .notice--err > .i { color: var(--danger); }

/* scheda generica */
.card { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card--pad { padding: clamp(20px, 3vw, 32px); }
.feature { display: grid; gap: 12px; align-content: start; }
.feature__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--sun-100); color: var(--sun-700); }
.feature__icon .i { width: 26px; height: 26px; }
.feature h3 { font-size: 1.3rem; } .feature p { color: var(--muted); font-size: .97rem; }

/* scheda viaggio */
.tcard { position: relative; display: flex; flex-direction: column; border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); overflow: clip; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
@media (hover: hover) { .tcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); } .tcard:hover .tcard__media img { transform: scale(1.05); } }
.tcard__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sea-100); }
.tcard__media img, .tcard__media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tcard__media::after { content: ''; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(7, 24, 43, .5), transparent); pointer-events: none; }
.tcard__badges { position: absolute; z-index: 2; left: 14px; top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tcard__fav, .fav-btn { position: absolute; z-index: 3; right: 12px; top: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--navy-900); box-shadow: var(--shadow-sm); transition: transform .2s var(--spring), color .2s; }
.tcard__fav .i, .fav-btn .i { width: 22px; height: 22px; }
.tcard__fav[aria-pressed='true'], .fav-btn[aria-pressed='true'] { color: var(--terra); } .tcard__fav[aria-pressed='true'] .i, .fav-btn[aria-pressed='true'] .i { fill: currentColor; }
@media (hover: hover) { .tcard__fav:hover { transform: scale(1.1); } }
.tcard__dur { position: absolute; z-index: 2; left: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; color: #fff; font: 700 .85rem/1 var(--font-body); text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.tcard__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.tcard__place { display: flex; align-items: center; gap: 6px; color: var(--aegean-600); font: 700 .78rem/1 var(--font-body); letter-spacing: .09em; text-transform: uppercase; }
.tcard__place .i { width: 1.1em; height: 1.1em; }
.tcard__title { font-size: 1.4rem; line-height: 1.2; } .tcard__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.tcard__fav { z-index: 4; }
.tcard__sum { color: var(--muted); font-size: .94rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-2); font-size: .86rem; font-weight: 600; }
.tcard__meta li { display: inline-flex; align-items: center; gap: 6px; } .tcard__meta .i { width: 1.1em; height: 1.1em; color: var(--aegean-500); }
.tcard__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.tcard__next { font-size: .8rem; color: var(--muted); text-align: right; line-height: 1.35; } .tcard__next b { display: block; color: var(--ink-2); font-weight: 700; }
.tcard__next .few { color: var(--terra); }

/* scheda destinazione e tema: foto a tutta scheda con velo e titolo in basso */
.dcard, .thcard { position: relative; display: block; border-radius: var(--r-xl); overflow: hidden; isolation: isolate; background: var(--navy-800); color: #fff; aspect-ratio: 4 / 5; transition: transform .35s var(--ease), box-shadow .35s; }
.dcard img, .dcard .ph, .thcard img, .thcard .ph { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.dcard::after, .thcard::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7, 24, 43, .82) 0%, rgba(7, 24, 43, .15) 55%, transparent 80%); }
@media (hover: hover) { .dcard:hover, .thcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } .dcard:hover img, .thcard:hover img { transform: scale(1.06); } }
.dcard__body, .thcard__body { position: absolute; inset: auto 0 0 0; padding: 22px; display: grid; gap: 6px; }
.dcard h3, .thcard h3 { font-size: 1.55rem; color: #fff; } .dcard p, .thcard p { color: rgba(255, 255, 255, .82); font-size: .9rem; line-height: 1.4; }
.dcard__count, .thcard__count { display: inline-flex; align-items: center; gap: 6px; font: 700 .76rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--sun); }
.thcard { aspect-ratio: 1 / 1; } .thcard__icon { position: absolute; left: 20px; top: 20px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .92); color: var(--navy-900); }

/* biglietto di partenza: data a sinistra, strappo tratteggiato con le due «tacche», dettagli e prezzo a destra */
.dep { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; align-items: stretch; background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); transition: box-shadow .3s, transform .3s var(--ease); }
@media (hover: hover) { .dep:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); } }
.dep__date { position: relative; display: grid; place-content: center; text-align: center; padding: 18px 8px; background: var(--navy-900); color: #fff; border-radius: var(--r-lg) 0 0 var(--r-lg); }
.dep__date strong { font: 500 2.5rem/1 var(--font-display); letter-spacing: -.02em; } .dep__date span { font: 700 .78rem/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--sun); } .dep__date small { font-size: .74rem; color: rgba(255, 255, 255, .66); }
.dep__date::after { content: ''; position: absolute; right: -1px; top: 10px; bottom: 10px; border-right: 2px dashed rgba(255, 255, 255, .28); }
.dep__main { display: grid; align-content: center; gap: 6px; padding: 16px 20px; min-width: 0; }
.dep__title { font: 500 1.25rem/1.25 var(--font-display); } .dep__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.dep__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .85rem; font-weight: 600; } .dep__meta li { display: inline-flex; align-items: center; gap: 5px; } .dep__meta .i { width: 1.05em; height: 1.05em; }
.dep__side { display: grid; gap: 8px; align-content: center; justify-items: end; padding: 16px 20px 16px 8px; text-align: right; }
.dep__side .btn { position: relative; z-index: 2; }
@media (max-width: 719px) { .dep { grid-template-columns: 84px minmax(0, 1fr); } .dep__side { grid-column: 1 / -1; grid-template-columns: 1fr auto; justify-items: stretch; align-items: center; text-align: left; padding: 12px 18px 16px; border-top: 1px dashed var(--line); } .dep__date { border-radius: var(--r-lg) 0 0 0; } }
.seats { display: inline-flex; align-items: center; gap: 6px; font: 700 .8rem/1 var(--font-body); color: var(--olive); } .seats::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.seats--few { color: var(--terra); } .seats--out { color: var(--muted); } .seats--out::before { background: #b5ac9b; }

/* articoli e recensioni */
.pcard { display: grid; gap: 16px; align-content: start; }
.pcard__media { aspect-ratio: 3 / 2; border-radius: var(--r-xl); overflow: hidden; background: var(--sea-100); } .pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
@media (hover: hover) { .pcard:hover .pcard__media img { transform: scale(1.05); } }
.pcard h3 { font-size: 1.45rem; } .pcard h3 a::after { content: ''; position: absolute; inset: 0; } .pcard { position: relative; }
.pcard__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.rcard { display: grid; gap: 14px; align-content: start; padding: 26px; border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.rcard blockquote { font: 400 1.04rem/1.6 var(--font-body); color: var(--ink-2); }
.rcard__who { display: flex; align-items: center; gap: 12px; } .rcard__who b { display: block; } .rcard__who small { color: var(--muted); }
.avatar { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--sea-100); color: var(--navy-800); font: 700 .95rem/1 var(--font-body); }

/* accordion (details/summary) */
.acc { border-top: 1px solid var(--line); } .acc:last-of-type { border-bottom: 1px solid var(--line); }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 4px; cursor: pointer; list-style: none; font: 500 1.18rem/1.35 var(--font-display); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ''; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--sea-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23104f86' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .3s var(--ease), background-color .2s; }
.acc[open] summary::after { transform: rotate(45deg); background-color: var(--sun-100); }
.acc__body { padding: 0 4px 24px; color: var(--ink-2); max-width: 74ch; } .acc__body > * + * { margin-top: 12px; }

/* tabelle: sopra i 760 px vere tabelle, sotto elenchi di schede (data-label sulle celle) */
.table { width: 100%; font-size: .94rem; } .table th { text-align: left; font: 700 .74rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table td { padding: 16px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
@media (max-width: 759px) { .table.table--stack thead { display: none; } .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; } .table--stack tr { padding: 14px 4px; border-bottom: 1px solid var(--line); } .table--stack td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; } .table--stack td::before { content: attr(data-label); color: var(--muted); font-weight: 600; } }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; font-weight: 700; border: 1.5px solid var(--line); background: var(--white); }
.pagination [aria-current='page'] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); } .pagination .is-off { opacity: .4; pointer-events: none; }
.skeleton { position: relative; overflow: hidden; background: var(--paper-2); border-radius: var(--r-md); } .skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); transform: translateX(-100%); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
/* segnaposto di un'immagine che manca (server/lib/media.mjs) */
.ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--sea-100), var(--sun-100)); color: var(--aegean-300); } .ph .i { width: 42px; height: 42px; opacity: .8; }
/* greca (meandro): filo decorativo, usato in cima al piè di pagina e come separatore */
.meander { height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14' fill='none' stroke='%23eea43a' stroke-width='1.6' stroke-linecap='square'%3E%3Cpath d='M0 13H3V1H17V10H7V5H13V7.5M17 13H28'/%3E%3C/svg%3E") repeat-x left center / 28px 14px; opacity: .7; }
.meander--line { margin-block: 8px; }
.err-page { min-height: 60svh; display: grid; align-content: center; padding-top: calc(var(--header-space) + 20px); } .err-page h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.9rem); margin-block: 14px; }
.center .row, .row.center { justify-content: center; }
.err-page .row { margin-top: 30px; }

/* ---------- 7. piè di pagina ---------- */
.site-footer { margin-top: clamp(40px, 6vw, 80px); background: var(--navy-950); color: rgba(255, 255, 255, .78); padding-bottom: 28px; font-size: .94rem; }
.site-footer a { color: inherit; } @media (hover: hover) { .site-footer a:hover { color: #fff; } }
.footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-cta > div:first-child { display: grid; gap: 14px; max-width: 640px; } .footer-cta h2 { font-size: clamp(1.7rem, 1rem + 2.2vw, 2.6rem); color: #fff; }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.4fr; gap: 36px 32px; padding: clamp(36px, 5vw, 60px) 0; }
.footer-brand { display: grid; gap: 18px; align-content: start; } .footer-brand p { max-width: 38ch; }
.footer-contacts { display: grid; gap: 10px; } .footer-contacts li { display: flex; gap: 10px; align-items: flex-start; } .footer-contacts .i { margin-top: 3px; color: var(--sun); width: 1.1em; height: 1.1em; }
.footer-social { display: flex; gap: 8px; } .footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); }
@media (hover: hover) { .footer-social a:hover { background: var(--sun); color: var(--navy-950); border-color: var(--sun); } }
.footer-col h2, .footer-news h2 { font: 700 .74rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 2px; } .footer-col a { display: inline-block; padding: 7px 0; }
.footer-news { display: grid; gap: 12px; align-content: start; } .footer-news h2 { margin-bottom: 4px; }
.news-row { display: flex; gap: 8px; } .news-row input { flex: 1; min-width: 0; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; font-size: 16px; }
.news-row input::placeholder { color: rgba(255, 255, 255, .5); } .news-row input:focus { outline: none; border-color: var(--sun); }
.news-msg { min-height: 1.4em; font-size: .88rem; } .news-msg.ok { color: #8fe0b4; } .news-msg.err { color: #ffb3a8; }
.footer-trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 10px 26px; } .footer-badges li { display: flex; align-items: center; gap: 10px; font-size: .88rem; } .footer-badges .i { color: var(--sun); }
.pay-badges { display: flex; flex-wrap: wrap; gap: 8px; } .pay-badge { padding: 7px 13px; border-radius: 9px; background: rgba(255, 255, 255, .95); color: var(--navy-900); font: 800 .72rem/1 var(--font-body); letter-spacing: .04em; }
.pay-badge--visa { color: #1a1f71; font-style: italic; letter-spacing: .06em; } .pay-badge--mc { color: #c8302a; } .pay-badge--paypal { color: #0b2d6f; } .pay-badge--iris { color: #0f6f9e; } .pay-badge--sepa { color: #1f5d46; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .86rem; color: rgba(255, 255, 255, .6); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 2px 18px; } .footer-legal a { padding: 8px 0; display: inline-block; }
.footer-lang { display: flex; align-items: center; gap: 10px; } .footer-lang ul { display: flex; gap: 4px; } .footer-lang a { display: inline-block; padding: 8px 10px; border-radius: 999px; } .footer-lang a[aria-current='true'] { background: rgba(255, 255, 255, .14); color: #fff; }
@media (max-width: 1099px) { .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } .footer-news { grid-column: span 3; max-width: 520px; } }
@media (max-width: 719px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-news { grid-column: 1 / -1; } }

/* ---------- 8. fissi in basso: avviso cookie, pulsante chat, barra di prenotazione (dock) ---------- */
.fixed-stack { position: fixed; z-index: 90; left: max(var(--edge), env(safe-area-inset-left)); right: max(var(--edge), env(safe-area-inset-right)); bottom: calc(10px + var(--dock-h) + env(safe-area-inset-bottom)); max-width: 520px; margin-inline: auto; display: grid; gap: 10px; justify-items: end; pointer-events: none; }
.fixed-stack > * { pointer-events: auto; }
@media (min-width: 900px) { .fixed-stack { left: auto; right: 24px; bottom: 24px; width: 400px; margin-inline: 0; } }
.chat-fab { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25a35a; color: #fff; box-shadow: 0 10px 26px -8px rgba(37, 163, 90, .8); transition: transform .25s var(--spring); }
.chat-fab .i { width: 28px; height: 28px; } @media (hover: hover) { .chat-fab:hover { transform: scale(1.08); } }
.cookie-note { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 14px 14px 20px; border-radius: 26px; background: var(--navy-900); color: #fff; font-size: .875rem; line-height: 1.45; box-shadow: var(--shadow-lg); animation: rise .5s var(--spring) both; }
.cookie-note p { flex: 1 1 200px; } .cookie-note a { text-decoration: underline; text-underline-offset: 3px; color: var(--sun); }
.cookie-note .btn { background: var(--sun); color: var(--navy-950); }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
.toasts { display: grid; gap: 8px; width: 100%; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 20px; background: var(--navy-900); color: #fff; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg); animation: rise .4s var(--spring) both; }
.toast .i { color: #7ee3a8; flex: none; } .toast.err .i { color: #ffb3a8; } .toast.out { opacity: 0; transform: translateY(10px); transition: all .3s; }
/* barra di prenotazione in basso (telefono e tablet): pillola, mai a tutta larghezza */
.dock { position: fixed; z-index: 80; left: max(var(--edge), env(safe-area-inset-left)); right: max(var(--edge), env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom)); max-width: 520px; margin-inline: auto; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; border-radius: 999px; background: rgba(255, 255, 255, .94); border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(10, 37, 64, .08), 0 14px 34px -12px rgba(10, 37, 64, .45); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); transition: transform .4s var(--ease), opacity .3s; }
.dock .price strong { font-size: 1.4rem; } .dock .btn { margin-left: auto; min-height: 48px; padding: 0 22px; }
.dock.is-off { transform: translateY(140%); opacity: 0; pointer-events: none; }
@media (min-width: 900px) { .dock { display: none; } }
@media (max-width: 899px) { body:has(input:focus, textarea:focus, select:focus) :is(.dock, .fixed-stack) { display: none; } }
body.has-dock { --dock-h: 80px; } @media (min-width: 900px) { body.has-dock { --dock-h: 0px; } }

/* ---------- 9. finestre (carte flottanti: il «velo» è un'ombra enorme, mai un livello fixed a tutto schermo) ---------- */
.modal { position: fixed; z-index: 120; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translateX(-50%); width: min(560px, calc(100% - 2 * var(--edge))); max-height: calc(100svh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); display: flex; flex-direction: column; background: var(--white); border-radius: 26px; box-shadow: 0 0 0 100vmax rgba(7, 24, 43, .58), var(--shadow-lg); animation: pop-in .35s var(--spring) both; }
.modal--sm { width: min(440px, calc(100% - 2 * var(--edge))); } .modal--lg { width: min(900px, calc(100% - 2 * var(--edge))); } .modal--xl { width: min(1100px, calc(100% - 2 * var(--edge))); }
@media (min-width: 700px) { .modal { top: 50%; transform: translate(-50%, -50%); max-height: calc(100svh - 64px); } }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 18px 6px 26px; } .modal__head h2 { font-size: 1.5rem; }
.modal__body { padding: 8px 26px 26px; overflow: auto; overscroll-behavior: contain; display: grid; gap: 16px; }
.modal__act { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
@keyframes pop-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 18px)) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%); } }
@media (max-width: 699px) { @keyframes pop-in { from { opacity: 0; transform: translate(-50%, 18px); } to { opacity: 1; transform: translate(-50%, 0); } } }
html.has-modal { overflow: hidden; }

/* ---------- 10. effetti e utilità ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
.scroll-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 12px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: thin; }
.scroll-row > * { scroll-snap-align: start; flex: none; }
@media print { .site-header, .site-footer, .fixed-stack, .dock { display: none !important; } body { background: #fff; } }

/* avvisi del pannello e dei moduli (stessi colori di .notice) */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--warn-bg); color: #6b4a00; font-size: .94rem; line-height: 1.5; }
.alert .i { margin-top: 2px; }
.alert-ok { background: var(--ok-bg); color: #1d5a3b; }
.alert-err { background: var(--danger-bg); color: #8e271e; }
.alert-info { background: var(--sea-50); color: var(--navy-800); }

/* ==========================================================================
   11. Estensioni per le pagine di scoperta (home, destinazioni, temi, offerte, diario, ricerca): le schede di server/views/cards.mjs
   ========================================================================== */
/* a comparsa finita le schede con [data-reveal] tornano alle proprie transizioni e possono sollevarsi al passaggio del mouse
   (senza questo il `transform: none` della comparsa vince sul :hover) */
.js .tcard[data-reveal].is-in, .js .dcard[data-reveal].is-in, .js .thcard[data-reveal].is-in, .js .dep[data-reveal].is-in, .js .ocard[data-reveal].is-in { transition: transform .35s var(--ease), box-shadow .35s var(--ease); transition-delay: 0ms; }
@media (hover: hover) {
  .js .tcard[data-reveal].is-in:hover { transform: translateY(-5px); }
  .js .dcard[data-reveal].is-in:hover, .js .thcard[data-reveal].is-in:hover, .js .ocard[data-reveal].is-in:hover { transform: translateY(-4px); }
  .js .dep[data-reveal].is-in:hover { transform: translateY(-2px); }
}
.btn-ghost-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .45); }
@media (hover: hover) { .btn-ghost-light:hover { background: rgba(255, 255, 255, .24); border-color: #fff; } }
.chip--glass { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .36); color: #fff; }
.chip--glass .i { color: var(--sun); }
@media (hover: hover) { a.chip--glass:hover { background: rgba(255, 255, 255, .28); color: #fff; border-color: #fff; } }
.dot { display: inline-block; flex: none; width: .72em; height: .72em; border-radius: 50%; background: var(--cc, var(--aegean)); }
.chip[aria-current='true'] .dot, .chip[aria-pressed='true'] .dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
/* filtro per continente: una riga che scorre in orizzontale sul telefono, a capo da 900 px */
.dchips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 10px; scrollbar-width: none; }
.dchips::-webkit-scrollbar { display: none; }
.dchips .chip { flex: none; }
@media (min-width: 900px) { .dchips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding: 0; } }
/* griglia di schede destinazione: 2 colonne sul telefono, 4 da 640 px */
.dgrid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .dgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .dgrid { gap: 20px; } }
.dgrid .dcard h3 { font-size: clamp(1.05rem, .8rem + 1vw, 1.5rem); overflow-wrap: anywhere; }
.dgrid .dcard p { display: none; }
@media (min-width: 1100px) { .dgrid .dcard p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }
.dgrid .dcard__body { padding: 14px; }
@media (min-width: 640px) { .dgrid .dcard__body { padding: 20px; } }
.dcard__tag { position: absolute; left: 12px; top: 12px; display: block; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .93); color: var(--navy-900); font: 700 .7rem/1.2 var(--font-body); letter-spacing: .03em; }
.dcard__tag i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--cc, var(--aegean)); }
.dcard__from { font: 700 .82rem/1.2 var(--font-body); color: #fff; }
/* biglietto di partenza: blocco prezzo e segnalazioni; elenco in due colonne su schermo largo */
.dep__price { display: grid; gap: 6px; justify-items: end; }
.dep__price .price { justify-content: flex-end; }
.dep__flags { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 719px) { .dep__price { justify-items: start; } .dep__price .price { justify-content: flex-start; } }
.deplist { display: grid; gap: 16px; }
@media (min-width: 1100px) { .deplist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rcard__title { font: 500 1.15rem/1.3 var(--font-display); color: var(--ink); }
/* testata di pagina con foto dietro la testata a pillola (.under-header): breadcrumb in alto, titolo e dati in basso, velo blu notte a sinistra */
.photo-head { position: relative; isolation: isolate; color: #fff; background: var(--navy-900); }
.photo-head__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.photo-head__bg img, .photo-head__bg .ph { width: 100%; height: 100%; object-fit: cover; }
.photo-head__bg .ph { place-items: center end; padding-right: 9%; background: linear-gradient(125deg, var(--navy-800), var(--aegean) 62%, var(--sun-600) 140%); color: rgba(255, 255, 255, .16); }
.photo-head__bg .ph .i { width: 140px; height: 140px; stroke-width: .7; }
.photo-head__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 24, 43, .86) 0%, rgba(7, 24, 43, .55) 55%, rgba(7, 24, 43, .22) 100%), linear-gradient(180deg, rgba(7, 24, 43, .5) 0%, transparent 28%, rgba(7, 24, 43, .55) 100%); }
@media (max-width: 899px) { .photo-head__bg::after { background: linear-gradient(180deg, rgba(7, 24, 43, .6) 0%, rgba(7, 24, 43, .5) 45%, rgba(7, 24, 43, .78) 100%); } }
.photo-head__in { display: flex; flex-direction: column; justify-content: space-between; gap: 36px; min-height: clamp(340px, 44vw, 470px); padding-block: 14px clamp(32px, 5vw, 60px); }
.photo-head .breadcrumbs { color: rgba(255, 255, 255, .78); }
.photo-head .breadcrumbs li + li::before { color: rgba(255, 255, 255, .4); }
@media (hover: hover) { .photo-head .breadcrumbs a:hover { color: #fff; } }
.photo-head :focus-visible { outline-color: var(--sun); }
.photo-head .eyebrow { color: var(--sun); }
.photo-head__txt { display: grid; gap: 16px; max-width: 760px; }
.photo-head h1 { font-size: clamp(2.3rem, 1.2rem + 4.8vw, 4.8rem); line-height: 1.04; color: #fff; }
.photo-head .lead { color: rgba(255, 255, 255, .9); max-width: 60ch; }
.photo-head__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-head__act { margin-top: 6px; }
/* fascia di invito (viaggio su misura, calendario…): scheda blu notte con icona, testo e pulsante */
.cta-card { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 18px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl); background: var(--navy-900); color: #fff; }
.cta-card::before { content: ''; position: absolute; right: -90px; top: -110px; z-index: -1; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(238, 164, 58, .32), transparent); }
.cta-card__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; background: rgba(255, 255, 255, .1); color: var(--sun); }
.cta-card__icon .i { width: 28px; height: 28px; }
.cta-card h2 { font-size: clamp(1.5rem, 1rem + 1.8vw, 2.2rem); color: #fff; }
.cta-card p { margin-top: 8px; max-width: 58ch; color: rgba(255, 255, 255, .8); }
@media (min-width: 820px) { .cta-card { grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; } }
/* testo lungo (descrizioni, articoli) */
.prose { display: grid; gap: 1.1em; max-width: 68ch; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.75; }
.prose h2, .prose h3 { margin-top: .9em; color: var(--ink); }
.prose h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); } .prose h3 { font-size: 1.3rem; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul { display: grid; gap: .55em; }
.prose li { position: relative; padding-left: 1.6em; }
.prose li::before { content: ''; position: absolute; left: .25em; top: .72em; width: .5em; height: .5em; border-radius: 50%; background: var(--sun); }
.prose--lead { font-size: 1.2rem; max-width: 72ch; }
/* elenco di suggerimenti sotto un campo di ricerca (combobox): vedi public/assets/js/search.js */
.suggest { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 8px); max-height: min(68svh, 440px); overflow: auto; overscroll-behavior: contain; padding: 8px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); color: var(--ink); text-align: left; }
.suggest__group { padding: 10px 12px 4px; font: 700 .72rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.suggest__opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 7px 12px; border-radius: 14px; cursor: pointer; color: inherit; }
.suggest__opt[aria-selected='true'] { background: var(--sea-50); }
@media (hover: hover) { .suggest__opt:hover { background: var(--sea-50); } }
.suggest__thumb { display: grid; place-items: center; flex: none; width: 44px; height: 44px; overflow: hidden; border-radius: 12px; background: var(--sea-100); color: var(--aegean-500); }
.suggest__thumb img { width: 100%; height: 100%; object-fit: cover; }
.suggest__text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.suggest__text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: .96rem; }
.suggest__text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .82rem; }
.suggest__end { flex: none; font-weight: 800; font-size: .86rem; color: var(--navy-900); }
.suggest__empty { padding: 16px 14px; color: var(--muted); font-size: .94rem; }
/* contrasto AA (axe): il terracotta e il grigio dei testi secondari erano appena sotto 4,5:1 su fondo chiaro (badge «Last minute», «ultimi posti», testi su sabbia) */
:root { --terra: #b04428; --muted: #52667c; }
/* chip attivo dei filtri a link (aria-current): conteggio e icona leggibili sul fondo blu notte */
.chip[aria-current='true'] em { color: rgba(255, 255, 255, .78); }
.chip[aria-current='true'] .i { color: var(--sun); }
/* nelle righe che scorrono (.scroll-row) la prima scheda si aggancia al margine della pagina, non al bordo dello schermo */
.scroll-row { scroll-padding-inline: var(--gutter); }
/* segnaposto delle foto che mancano ancora (vedi media.mjs): sfondi pieni e profondi, così titoli e prezzi bianchi restano leggibili e le schede sembrano finite */
.pcard__media .ph { width: 100%; height: 100%; }
.tcard__media .ph, .ocard__media .ph { background: linear-gradient(150deg, var(--navy-800), var(--aegean) 62%, #5aa6d4); color: rgba(255, 255, 255, .26); }
.dcard .ph { background: linear-gradient(160deg, color-mix(in srgb, var(--cc, #145f9f) 70%, #0a2540) 0%, #0a2540 135%); color: rgba(255, 255, 255, .2); }
.thcard .ph { background: linear-gradient(160deg, var(--aegean) 0%, var(--navy-800) 120%); color: rgba(255, 255, 255, .2); }
.dcard .ph .i, .thcard .ph .i { display: none; }
.pcard__media .ph, .feat-post__media .ph, .tour-box__media .ph, .post-cover .ph { background: linear-gradient(150deg, #e9dcc3, #f3e7cf 55%, #dce9f3); color: var(--sun-700); }
.rcard__who small { display: block; margin-top: 2px; line-height: 1.45; }
/* i pulsanti nel piè di pagina tengono il proprio colore (la regola `.site-footer a { color: inherit }` li rendeva illeggibili) */
.site-footer .btn-primary, .site-footer .btn-primary:hover { color: var(--navy-950); }
.site-footer .btn-light, .site-footer .btn-light:hover { color: var(--navy-900); }
