/* Tema "mare": copertina con foto, menu a schede e barra blu notte.
   Le misure da 640 px in su ricalcano il bozzetto (disegno largo 1438 px = 719 px a densità 2).
   Sotto, testi e righe sono più grandi: sul telefono si leggono e si toccano bene. */
/* Playfair Display: file originale, non ridotto (la licenza riserva il nome alla versione intatta). */
@font-face { font-family:"Playfair Display"; font-weight:400 900; font-display:swap; src:url(font/playfair-display.ttf) format("truetype"); }
@font-face { font-family:Roboto; font-weight:400; font-display:swap; src:url(font/roboto-400.woff) format("woff"); }
@font-face { font-family:Roboto; font-weight:500 600; font-display:swap; src:url(font/roboto-500.woff) format("woff"); }
@font-face { font-family:Roboto; font-weight:700 900; font-display:swap; src:url(font/roboto-700.woff) format("woff"); }
@font-face { font-family:LatoGuida; font-weight:700; font-display:swap; src:url(font/lato-700.woff2) format("woff2"); }

.tema-mare { --mare:#0252ca; --sale:#f0f6fa; --testo:#0a1626; --carta:#fff; --notte:#0e2644; --linea:#c3d2dd;
  --titoli:"Playfair Display",Georgia,serif; --etichette:LatoGuida,Roboto,sans-serif; }
.tema-mare body { font-family:Roboto,system-ui,sans-serif; padding-bottom:calc(76px + env(safe-area-inset-bottom)); }
.tema-mare .ic { flex:none; width:1em; height:1em; fill:currentColor; color:var(--mare); }

/* Copertina */
.tema-mare header { position:relative; overflow:hidden; padding:0; border:0; background:#08365f; text-align:left; }
.tema-mare .panorama { position:absolute; inset:0; width:100%; height:100%; max-width:none; object-fit:cover; object-position:50% 52%; border-radius:0; filter:saturate(1.18) brightness(1.06); }
.tema-mare header::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,#07305000 0%,#0730504d 30%,#073050b8 68%,#062844d1 100%); }
.tema-mare .dentro { position:relative; z-index:1; display:flex; flex-direction:column; justify-content:flex-end; max-width:719px; min-height:350px; margin:0 auto; padding:64px 16px 22px; text-shadow:0 1px 8px #00152cb3; }
.tema-mare #lingue { position:absolute; top:12px; right:12px; margin:0; text-shadow:none; }
.tema-mare #lingue button { background:#06284a99; }
.tema-mare #lingue button[aria-pressed="true"] { background:#fff; color:var(--notte); }
.tema-mare .kicker { font:700 .74rem/1.5 var(--etichette); letter-spacing:.03em; color:#fff; }
.tema-mare h1 { margin:6px 0 4px; font:400 clamp(2.1rem,10.6vw,3.2rem)/1.12 var(--titoli); overflow-wrap:normal; text-wrap:balance; }
.tema-mare #localita { font:400 clamp(1.2rem,5.6vw,1.6rem)/1.3 var(--titoli); }
.tema-mare .invito { display:flex; flex-wrap:wrap; align-items:center; gap:12px 22px; margin-top:16px; }
.tema-mare .invito p { white-space:pre-line; font-size:.875rem; line-height:1.4; }
.tema-mare .invito a { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 20px; border-radius:22px; background:var(--mare); color:#fff; font-size:.94rem; font-weight:700; text-decoration:none; text-shadow:none; box-shadow:0 3px 10px #00152c59; }
.tema-mare .invito .ic { color:#fff; font-size:1.2em; }
.tema-mare #copertina { display:none; }

/* Menu */
.tema-mare main, .tema-mare footer, .tema-mare #indice { max-width:719px; }
.tema-mare #indice { padding-top:6px; }
.tema-mare #indice h2 { display:flex; align-items:center; gap:12px; margin:18px 0 9px; font:700 .86rem/1.4 var(--etichette); letter-spacing:.025em; text-align:center; text-transform:uppercase; color:var(--testo); }
.tema-mare #indice h2::before, .tema-mare #indice h2::after { content:""; flex:1 1 12px; height:1px; background:var(--linea); }
.tema-mare .griglia { display:flex; flex-direction:column; gap:9px; }
.tema-mare #indice a { gap:14px; min-height:54px; padding:8px 12px 8px 16px; border:0; border-radius:16px; background:var(--carta); box-shadow:0 2px 7px #0e26441c; color:var(--testo); font-size:1.03rem; font-weight:700; line-height:1.25; overflow-wrap:normal; }
.tema-mare #indice a .ic { font-size:26px; }
.tema-mare #indice a span { flex:1; min-width:0; }
.tema-mare #indice a .ic-freccia { font-size:17px; }

/* Sezioni */
.tema-mare section { border-radius:16px; box-shadow:0 2px 7px #0e26441c; }
.tema-mare section h2 { display:flex; align-items:center; gap:10px; color:var(--testo); font-weight:700; }
.tema-mare section h2 .ic { font-size:22px; }
.tema-mare section .scelte { margin-top:12px; }
.tema-mare .galleria h3 { color:var(--testo); }
.tema-mare footer a { background:var(--mare); color:#fff; }

/* Barra in basso */
.tema-mare #barra { gap:9px; padding-top:10px; padding-bottom:calc(10px + env(safe-area-inset-bottom)); background:var(--notte); border:0; }
.tema-mare #barra a, .tema-mare #barra a[href="#indice"], .tema-mare #barra button { gap:8px; background:var(--mare); color:#fff; font-size:.94rem; }
.tema-mare #barra .ic { color:#fff; font-size:18px; }
@media (max-width:360px) {
  .tema-mare #indice a { gap:11px; padding-left:12px; font-size:.97rem; }
  .tema-mare #barra a, .tema-mare #barra a[href="#indice"], .tema-mare #barra button { gap:5px; font-size:.84rem; }
  .tema-mare #barra .ic { font-size:16px; }
}

/* Stesse proporzioni del bozzetto */
@media (min-width:640px) {
  /* Schermo largo: la velatura sta a sinistra, dietro al testo; a destra la foto resta pulita. */
  .tema-mare header::after { background:linear-gradient(90deg,#0a3a60e6 0%,#0c4a72c2 36%,#0e5c8466 56%,#0e5c8400 76%); }
  .tema-mare .dentro { justify-content:flex-start; min-height:260px; padding:52px 36.5px 14px; }
  .tema-mare .kicker { font-size:16.35px; line-height:20px; }
  .tema-mare h1 { margin:-2px 0 0; font-size:53.95px; line-height:66px; }
  .tema-mare #localita { margin-top:-1.5px; font-size:27.05px; line-height:34px; }
  .tema-mare .invito { gap:12px; margin-top:18px; }
  .tema-mare .invito a { gap:6px; }
  .tema-mare #lingue { top:10px; right:10px; gap:4px; }
  .tema-mare #lingue button { min-width:36px; min-height:28px; padding:0 8px; font-size:12px; }
  .tema-mare .invito p { width:192px; white-space:pre; font-size:12.8px; line-height:17px; }
  .tema-mare .invito a { justify-content:center; min-width:143px; min-height:35px; padding:0 14px; font-size:14.5px; }
  .tema-mare #indice, .tema-mare main, .tema-mare footer { padding-left:36.5px; padding-right:36.5px; }
  .tema-mare #indice { padding-top:0; }
  .tema-mare #indice h2 { margin:15px 0 8px; font-size:16.6px; line-height:20px; }
  .tema-mare #indice .gruppo:first-child h2 { margin-top:14px; }
  .tema-mare .griglia { gap:8px; }
  .tema-mare #indice a { gap:13px; min-height:38.5px; padding:4px 11px 4px 16px; border-radius:15px; font-size:18.55px; }
  .tema-mare #indice a .ic { font-size:24px; }
  .tema-mare #indice a .ic-freccia { font-size:16px; }
  .tema-mare #barra { gap:8.5px; padding-top:12px; padding-bottom:calc(13px + env(safe-area-inset-bottom)); }
  .tema-mare #barra a, .tema-mare #barra a[href="#indice"], .tema-mare #barra button { flex:0 0 auto; min-width:94px; max-width:none; min-height:32px; padding:0 13.5px; font-size:15px; }
}
