/* ==========================================================================
   ANZIO TURISMO — Foglio di stile
   Font: Barlow / Barlow Condensed (Google Fonts)
   Colori: blu mare. Per cambiarli modifica solo le variabili qui sotto.
   ========================================================================== */

:root {
  --blu:         #005bac;  /* colore principale: pulsanti, fasce, link */
  --blu-hover:   #004a8c;
  --blu-scuro:   #0a2d52;  /* footer e fasce scure */
  --blu-notte:   #061d36;
  --azzurro:     #1e9bd7;  /* accenti piccoli */
  --celeste:     #dbeaf6;
  --grigio-mare: #eef2f6;  /* fasce chiare */

  --testo:   #1c2b3a;
  --testo-2: #5b6b7b;
  --linea:   #dce3ea;
  --bianco:  #ffffff;
  --rosso-emergenza: #d62828; /* solo per i numeri di emergenza */

  --font: "Barlow", Arial, Helvetica, sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;

  --container: 1280px;
  --header-h: 96px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--testo);
  background: var(--bianco);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blu); }
a:hover { color: var(--blu-hover); }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; line-height: 1.08; color: var(--testo); }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; }
address { font-style: normal; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 64px); }
:focus-visible { outline: 3px solid var(--azzurro); outline-offset: 2px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.sr-only {
  position: absolute; 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: -9999px; top: 0; z-index: 1000; background: var(--bianco); padding: .7rem 1.2rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

.icon {
  width: 1.2em; height: 1.2em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* Testo ancora da completare: rimuovi la classe quando inserisci il dato reale */
.da-completare { color: var(--testo-2); font-style: italic; }

/* ---------- Tipografia ---------- */
/* Titolo su due pesi: <h2 class="title-duo"><span>Riga leggera.</span> <b>Riga in grassetto!</b></h2> */
.title-duo { font-family: var(--font); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.12; letter-spacing: -.01em; }
.title-duo span { display: block; font-weight: 300; }
.title-duo b { display: block; font-weight: 600; }

/* Titolo di sezione condensed */
.title-cond {
  font-family: var(--font-cond); font-weight: 700;
  font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -.005em;
}
.subtitle { margin: -.2rem 0 0; font-size: 1.2rem; color: var(--testo-2); }

/* Etichetta centrata con righe ai lati */
.label-line {
  display: flex; align-items: center; gap: 1.5rem; margin: 0 0 2.5rem;
  font-family: var(--font-cond); font-size: .95rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--testo);
}
.label-line::before, .label-line::after { content: ""; flex: 1; height: 1px; background: var(--linea); }

.kicker {
  display: inline-block; margin-bottom: .8rem;
  font-family: var(--font-cond); font-size: .95rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blu);
}

/* ---------- Pulsanti e link ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: .75rem 1.6rem;
  border: 2px solid transparent; border-radius: 0;
  font-family: var(--font-cond); font-size: 1.05rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn .icon { width: 20px; height: 20px; stroke-width: 2; }
.btn--blu { background: var(--blu); color: var(--bianco); }
.btn--blu:hover { background: var(--blu-hover); color: var(--bianco); }
.btn--bianco { background: var(--bianco); color: var(--blu); }
.btn--bianco:hover { background: var(--celeste); color: var(--blu-hover); }
.btn--bordo { border-color: var(--blu); color: var(--blu); background: transparent; }
.btn--bordo:hover { background: var(--blu); color: var(--bianco); }
.btn--bordo-bianco { border-color: var(--bianco); color: var(--bianco); background: transparent; }
.btn--bordo-bianco:hover { background: var(--bianco); color: var(--blu); }
.btn--small { min-height: 40px; padding: .5rem 1rem; font-size: .95rem; }

.link-more {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-cond); font-size: 1rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blu); text-decoration: none;
}
.link-more::before { content: "›"; font-size: 1.35em; line-height: .8; }
.link-more:hover { color: var(--blu-hover); text-decoration: underline; text-underline-offset: 4px; }
.link-more--bianco { color: var(--bianco); }
.link-more--bianco:hover { color: var(--celeste); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bianco);
  border-bottom: 1px solid var(--linea);
}
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(10, 45, 82, .12); }
.header-inner { display: flex; align-items: stretch; height: var(--header-h); }

.brand {
  display: flex; flex-direction: column; justify-content: center; flex: none;
  padding: 0 1.4rem; margin-right: 1.5rem;
  background: var(--blu); color: var(--bianco); text-decoration: none;
}
.brand:hover { color: var(--bianco); background: var(--blu-hover); }
.brand__name { font-family: var(--font-cond); font-size: 2.35rem; font-weight: 700; line-height: .9; letter-spacing: .04em; text-transform: uppercase; }
.brand__tag { margin-top: 5px; font-family: var(--font-cond); font-size: .72rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--celeste); }
.brand__wave { display: block; width: 100%; height: 6px; margin-top: 5px; }

.header-main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .35rem; min-width: 0; }

.utility { display: flex; justify-content: flex-end; gap: 1.6rem; list-style: none; margin: 0; padding: 0 1.5rem 0 0; }
.utility a {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; color: var(--testo-2); text-decoration: none;
}
.utility a:hover { color: var(--blu); }
.utility .icon { width: 17px; height: 17px; }
.utility .utility__sos { color: var(--rosso-emergenza); font-weight: 600; }

.nav { display: flex; justify-content: flex-end; align-items: center; gap: .15rem; padding-right: 1rem; }
.nav__link {
  position: relative; padding: .45rem .85rem;
  font-family: var(--font-cond); font-size: 1.12rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--testo); text-decoration: none;
}
.nav__link::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: 0; height: 3px;
  background: var(--blu); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.nav__link:hover { color: var(--blu); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--blu); }

.header-cta {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; flex: none;
  width: 150px; padding: 0 1rem;
  background: var(--blu-scuro); color: var(--bianco); text-decoration: none; text-align: center;
  font-family: var(--font-cond); font-size: 1.05rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.05;
  transition: background .2s;
}
.header-cta .icon { width: 30px; height: 30px; color: var(--azzurro); stroke-width: 1.8; }
.header-cta:hover, .header-cta[aria-current="page"] { background: var(--blu); color: var(--bianco); }
.header-cta:hover .icon, .header-cta[aria-current="page"] .icon { color: var(--bianco); }

.nav-toggle {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  width: 76px; border: 0; border-left: 1px solid var(--linea); background: var(--bianco); cursor: pointer;
  font-family: var(--font-cond); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--testo);
}
.nav-toggle .icon { width: 28px; height: 28px; stroke-width: 2; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1180px) {
  :root { --header-h: 76px; }
  .brand { padding: 0 1rem; margin-right: auto; }
  .brand__name { font-size: 1.9rem; }
  .utility { display: none; }
  .nav-toggle { display: flex; order: 3; }
  .header-main { position: static; flex: 0; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0 1rem;
    background: var(--bianco); border-top: 1px solid var(--linea); box-shadow: 0 16px 30px rgba(10, 45, 82, .18);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; }
  .nav__link { padding: 1rem 1.5rem; font-size: 1.3rem; border-bottom: 1px solid var(--linea); }
  .nav__link::after { display: none; }
  .nav__extra { display: block !important; padding: 1rem 1.5rem 0; }
  .header-cta { width: auto; flex-direction: row; gap: .5rem; padding: 0 1rem; font-size: .95rem; }
  .header-cta .icon { width: 24px; height: 24px; }
}
@media (max-width: 520px) {
  .header-cta span { display: none; }
  .nav-toggle { width: 64px; }
}
.nav__extra { display: none; }
.nav__extra a { display: block; padding: .5rem 0; color: var(--testo-2); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  max-height: 920px;
  color: var(--bianco);
}
.hero--page { min-height: 440px; max-height: none; height: 58vh; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(6, 29, 54, .72) 0%, rgba(6, 29, 54, .25) 45%, rgba(6, 29, 54, 0) 70%);
}
.hero__content { padding-block: 3rem 4.5rem; max-width: 900px; }
.hero h1 {
  margin: 0 0 .9rem; color: var(--bianco);
  font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 500; line-height: 1.05; letter-spacing: -.015em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.hero--page h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.hero__claim {
  margin: 0; font-family: var(--font-cond); font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: .02em;
}
.hero__claim::before, .hero__claim::after { color: var(--azzurro); font-size: 1.3em; line-height: 0; }
.hero__claim::before { content: "“"; margin-right: .1em; }
.hero__claim::after { content: "”"; margin-left: .1em; }
.hero__down {
  display: grid; place-items: center; width: 52px; height: 52px; margin-top: 1.8rem;
  background: var(--blu); color: var(--bianco);
}
.hero__down:hover { background: var(--blu-hover); color: var(--bianco); }
.hero__down .icon { width: 24px; height: 24px; stroke-width: 2; }
.hero__lead { max-width: 640px; margin: 1rem 0 0; font-size: 1.15rem; color: rgba(255, 255, 255, .92); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 1rem; padding: 0; font-size: .9rem; }
.breadcrumb li + li::before { content: "›"; margin-right: .5rem; opacity: .7; }
.breadcrumb a { color: var(--bianco); text-decoration: none; opacity: .85; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Sezioni ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--grigio { background: var(--grigio-mare); }
.section--blu { background: var(--blu); color: var(--bianco); }
.section--scuro { background: var(--blu-scuro); color: #c9d8e6; }
.section--blu h2, .section--blu h3, .section--scuro h2, .section--scuro h3 { color: var(--bianco); }
.section--compatta { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.section--scuro .subtitle { color: #c9d8e6; }
.section--blu .subtitle, .section--blu .emergency p { color: #d6e6f5; }
.muted { color: var(--testo-2); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 3rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section-head > div { max-width: 760px; }
.section-head h2 { margin-bottom: .35rem; }

/* Intro su due colonne con divisore verticale */
.intro { display: grid; grid-template-columns: 1fr 1px 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.intro__divider { align-self: stretch; background: var(--linea); }
.intro__text { color: var(--testo-2); font-size: 1.1rem; }
.intro__text strong { color: var(--testo); }
@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .intro__divider { display: none; }
}

/* ---------- IN EVIDENZA: Spiagge Sicure (home) ---------- */
.ppp { display: grid; grid-template-columns: 1fr 1fr; background: var(--blu); color: var(--bianco); }
.ppp__media { position: relative; min-height: 420px; }
.ppp__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ppp__flag {
  position: absolute; left: 0; top: 2rem; z-index: 1;
  padding: .55rem 1.1rem; background: var(--bianco); color: var(--blu);
  font-family: var(--font-cond); font-size: .95rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.ppp__body { padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 4.5rem); max-width: 720px; }
.ppp__kicker { display: block; margin-bottom: .9rem; font-family: var(--font-cond); font-size: .95rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--celeste); }
.ppp h2 { margin: 0; color: var(--bianco); font-family: var(--font-cond); font-size: clamp(2.6rem, 5vw, 4rem); line-height: .98; }
.ppp__sub { margin: .3rem 0 1.2rem; font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 300; line-height: 1.2; }
.ppp__text { color: #d6e6f5; max-width: 56ch; }
.ppp__links { list-style: none; margin: 1.8rem 0 2rem; padding: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
.ppp__links a {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 1rem; align-items: center;
  padding: .95rem .5rem; border-bottom: 1px solid rgba(255, 255, 255, .25);
  color: var(--bianco); text-decoration: none; transition: background .2s, padding .2s;
}
.ppp__links a:hover { background: rgba(255, 255, 255, .1); padding-left: 1rem; }
.ppp__links .icon { width: 28px; height: 28px; color: var(--celeste); }
.ppp__links strong { display: block; font-family: var(--font-cond); font-size: 1.3rem; font-weight: 700; letter-spacing: .02em; line-height: 1.1; }
.ppp__links small { display: block; font-size: .92rem; color: #c3d9ee; }
.ppp__links .arrow { font-size: 1.8rem; line-height: 1; color: var(--celeste); }
.ppp__partners { margin: 1.8rem 0 0; font-size: .88rem; color: #c3d9ee; }
.ppp__partners b { color: var(--bianco); font-weight: 600; }
@media (max-width: 960px) {
  .ppp { grid-template-columns: 1fr; }
  .ppp__media { min-height: 280px; }
}

/* ---------- Barra icone (accesso rapido / numeri) ---------- */
.iconbar { display: grid; grid-template-columns: repeat(6, 1fr); list-style: none; margin: 0; padding: 0; }
.iconbar li + li { border-left: 1px solid var(--linea); }
.iconbar a {
  display: flex; flex-direction: column; align-items: center; gap: .7rem; padding: 1.4rem .5rem;
  font-family: var(--font-cond); font-size: 1.08rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--testo); text-decoration: none; text-align: center; transition: color .2s;
}
.iconbar a:hover { color: var(--blu); }
.iconbar .icon { width: 44px; height: 44px; stroke-width: 1.2; color: var(--blu); }
@media (max-width: 900px) {
  .iconbar { grid-template-columns: repeat(3, 1fr); }
  .iconbar li:nth-child(4) { border-left: 0; }
  .iconbar li:nth-child(n+4) { border-top: 1px solid var(--linea); }
}
@media (max-width: 480px) {
  .iconbar { grid-template-columns: repeat(2, 1fr); }
  .iconbar li:nth-child(odd) { border-left: 0; }
  .iconbar li:nth-child(4) { border-left: 1px solid var(--linea); }
  .iconbar li:nth-child(n+3) { border-top: 1px solid var(--linea); }
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; list-style: none; margin: 0; padding: 0; text-align: center; }
.stats .icon { width: 52px; height: 52px; stroke-width: 1.1; color: var(--testo); margin: 0 auto .6rem; }
.stats b { display: block; font-family: var(--font-cond); font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 700; line-height: 1; }
.stats span { display: block; margin-top: .3rem; font-size: 1.05rem; color: var(--testo-2); }
.section--blu .stats .icon, .section--scuro .stats .icon { color: var(--celeste); }
.section--blu .stats span, .section--scuro .stats span { color: var(--celeste); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; } }

/* ---------- Carosello (card con testo sopra la foto) ---------- */
.carousel { position: relative; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 3rem) / 3.3));
  gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-bottom: .25rem;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__btn {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  display: grid; place-items: center; width: 44px; height: 60px; border: 0;
  background: var(--blu); color: var(--bianco); cursor: pointer;
}
.carousel__btn:hover { background: var(--blu-hover); }
.carousel__btn .icon { width: 24px; height: 24px; stroke-width: 2.2; }
.carousel__btn--prev { left: -22px; }
.carousel__btn--next { right: -22px; }
.carousel__btn[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 1360px) {
  .carousel__btn--prev { left: 0; }
  .carousel__btn--next { right: 0; }
}
@media (max-width: 700px) {
  .carousel__track { grid-auto-columns: 82%; }
  .carousel__btn { display: none; }
}

.photo-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end; aspect-ratio: 4 / 5;
  scroll-snap-align: start; color: var(--bianco); text-decoration: none;
}
.photo-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.photo-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(6, 29, 54, .8), rgba(6, 29, 54, 0) 55%); }
.photo-card:hover { color: var(--bianco); }
.photo-card:hover img { transform: scale(1.05); }
.photo-card__body { padding: 1.5rem 1.5rem 1.6rem; }
.photo-card h3 {
  position: relative; margin: 0 0 .3rem; padding-left: 1.4rem;
  font-family: var(--font-cond); font-size: 1.75rem; font-weight: 700; color: var(--bianco);
}
.photo-card h3::before { content: ""; position: absolute; left: 0; top: .55em; width: .9rem; height: 3px; background: var(--azzurro); }
.photo-card p { margin: 0; font-size: 1rem; line-height: 1.4; color: rgba(255, 255, 255, .9); }

/* Griglia 2×2 con titolo "›" sopra la foto */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end; aspect-ratio: 16 / 10;
  color: var(--bianco); text-decoration: none;
}
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(6, 29, 54, .7), rgba(6, 29, 54, 0) 50%); }
.tile:hover { color: var(--bianco); }
.tile:hover img { transform: scale(1.04); }
.tile__body { padding: 1.6rem 1.8rem; }
.tile h3 { margin: 0; font-family: var(--font-cond); font-size: clamp(1.7rem, 2.6vw, 2.2rem); color: var(--bianco); }
.tile h3::before { content: "›"; margin-right: .45rem; font-weight: 500; }
.tile p { margin: .2rem 0 0; font-size: 1.05rem; color: rgba(255, 255, 255, .92); }
@media (max-width: 700px) { .tiles { grid-template-columns: 1fr; } }

/* Card semplici (foto sopra, testo sotto) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 2rem 1.5rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .cards--3 { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; }
.card__media { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--celeste); margin-bottom: 1.1rem; }
.card__media--wide { aspect-ratio: 4 / 3; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__cat { font-family: var(--font-cond); font-size: .9rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blu); }
.card h3 { margin: .2rem 0 .45rem; font-family: var(--font-cond); font-size: 1.6rem; line-height: 1.1; }
.card h3 a { color: var(--testo); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 a { color: var(--blu); }
.card p { margin: 0; color: var(--testo-2); font-size: 1rem; }
.card__date {
  position: absolute; left: 0; top: 0; z-index: 1;
  padding: .55rem .8rem; background: var(--blu); color: var(--bianco); text-align: center;
  font-family: var(--font-cond); font-size: 1.7rem; font-weight: 700; line-height: 1;
}
.card__date small { display: block; margin-top: .2rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }

/* Blocco foto + testo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--top { align-items: start; }
.split__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--celeste); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split--reverse .split__media { order: 2; }
.split__text { color: var(--testo-2); }
.split__text strong { color: var(--testo); }
.split__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; margin-top: 1.8rem; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

.checklist { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .65rem; }
.checklist li { position: relative; padding-left: 1.7rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .6em; width: 1rem; height: 3px; background: var(--azzurro); }

/* Evento in evidenza */
.feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; align-items: stretch; background: var(--bianco); box-shadow: 0 10px 40px rgba(10, 45, 82, .12); }
.feature__media { position: relative; min-height: 380px; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.8rem, 4vw, 3.5rem); }
.feature__place { font-family: var(--font-cond); font-size: 1.05rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--testo); }
.feature__when { display: block; margin-bottom: 1rem; font-family: var(--font-cond); font-size: 1.05rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blu); }
.feature h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 400; margin-bottom: .6rem; }
.feature p { color: var(--testo-2); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature__media { min-height: 260px; }
}

/* Fascia "come arrivare" */
.arrive { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; }
.arrive li { padding: 0 2rem; }
.arrive li + li { border-left: 1px solid rgba(255, 255, 255, .2); }
.arrive .icon { width: 44px; height: 44px; stroke-width: 1.2; color: var(--celeste); margin-bottom: .8rem; }
.arrive h3 { font-family: var(--font-cond); font-size: 1.6rem; margin-bottom: .3rem; }
.arrive p { margin: 0; color: #c9d8e6; }
@media (max-width: 800px) {
  .arrive { grid-template-columns: 1fr; gap: 2rem; }
  .arrive li { padding: 0; }
  .arrive li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 2rem; }
}

/* ---------- Stabilimenti balneari ---------- */
.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--linea);
}
.search { position: relative; flex: 1; min-width: min(100%, 260px); max-width: 520px; }
.search input {
  width: 100%; height: 54px; padding: 0 1rem 0 3.2rem;
  border: 2px solid var(--linea); border-radius: 0; background: var(--bianco);
  font: inherit; font-size: 1.05rem; color: var(--testo);
}
.search input:focus { outline: none; border-color: var(--blu); }
.search .icon { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--blu); stroke-width: 2; }
.toolbar__count { margin: 0; font-family: var(--font-cond); font-size: 1.15rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--testo); }

.stab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; }
.stab-card {
  display: flex; flex-direction: column;
  background: var(--bianco); border: 1px solid var(--linea); border-top: 4px solid var(--blu);
  transition: border-color .2s, box-shadow .2s;
}
.stab-card:hover { box-shadow: 0 10px 30px rgba(10, 45, 82, .12); }
.stab-card__head { display: flex; align-items: center; gap: 1rem; padding: 1.4rem 1.5rem 1rem; }
.stab-card__icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; background: var(--grigio-mare); color: var(--blu); }
.stab-card__icon .icon { width: 30px; height: 30px; stroke-width: 1.3; }
.stab-card h3 { margin: 0; font-family: var(--font-cond); font-size: 1.55rem; font-weight: 700; line-height: 1.05; }
.stab-card__zone { display: block; margin-top: .2rem; font-family: var(--font-cond); font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--testo-2); }
.info-list { list-style: none; margin: 0; padding: 0 1.5rem 1.3rem; display: grid; gap: .6rem; }
.info-list li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; font-size: 1rem; line-height: 1.45; }
.info-list .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--blu); }
.info-list a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.info-list a:hover { text-decoration: underline; }
.stab-card__actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: auto; border-top: 1px solid var(--linea); }
.stab-card__actions a {
  display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .85rem .5rem;
  font-family: var(--font-cond); font-size: 1rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blu); text-decoration: none; transition: background .2s, color .2s;
}
.stab-card__actions a + a { border-left: 1px solid var(--linea); }
.stab-card__actions a:only-child { grid-column: 1 / -1; }
.stab-card__actions a:hover { background: var(--blu); color: var(--bianco); }
.stab-card__actions .icon { width: 18px; height: 18px; stroke-width: 2; }
.empty-state { padding: 3rem 1rem; text-align: center; color: var(--testo-2); border: 2px dashed var(--linea); }

/* Numero (uguale al pin sulla mappa) e pulsante "mostra sulla mappa" */
/* pin a goccia: usato sulle card e nelle schede della mappa (colore nel "fill" dell'SVG) */
.stab-card__num, .pin-popup__title span {
  display: grid; place-items: center; flex: none; width: 36px; height: 48px; padding-bottom: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 40'%3E%3Cpath d='M15 1.5C7.5 1.5 1.5 7.4 1.5 14.8 1.5 24.6 15 38.5 15 38.5S28.5 24.6 28.5 14.8C28.5 7.4 22.5 1.5 15 1.5Z' fill='%23005bac'/%3E%3C/svg%3E") no-repeat center / contain;
  color: var(--bianco); font-family: var(--font-cond); font-size: 1.1rem; font-weight: 700; line-height: 1;
}
.stab-card__head > div { flex: 1; min-width: 0; }
.stab-card__locate {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px;
  border: 2px solid var(--linea); background: var(--bianco); color: var(--blu); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.stab-card__locate:hover { background: var(--blu); border-color: var(--blu); color: var(--bianco); }
.stab-card__locate .icon { width: 20px; height: 20px; stroke-width: 1.8; }
.stab-card__locate[disabled] { display: none; }
.stab-card.is-active { border-color: var(--blu); box-shadow: 0 0 0 2px var(--blu); }
.stab-card.is-active .stab-card__num {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 40'%3E%3Cpath d='M15 1.5C7.5 1.5 1.5 7.4 1.5 14.8 1.5 24.6 15 38.5 15 38.5S28.5 24.6 28.5 14.8C28.5 7.4 22.5 1.5 15 1.5Z' fill='%230a2d52'/%3E%3C/svg%3E");
}

/* Lista + mappa affiancate */
.stab-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.stab-layout__map { order: 2; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.stab-layout .stab-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; }
.stab-map { height: calc(100vh - var(--header-h) - 3rem); min-height: 440px; max-height: 820px; background: var(--celeste); border: 1px solid var(--linea); }
@media (max-width: 1000px) {
  .stab-layout { grid-template-columns: 1fr; }
  .stab-layout__map { order: 0; position: relative; top: 0; }
  .stab-map { height: 380px; min-height: 0; }
}

/* Mappa: toni più tenui per far risaltare i pin */
.stab-map .leaflet-tile-pane { filter: saturate(.35) brightness(1.04); }
.stab-map .leaflet-container, .stab-map.leaflet-container { font-family: var(--font); }
.stab-map .leaflet-bar a { border-radius: 0 !important; color: var(--blu); }
.stab-map .leaflet-bar { border-radius: 0; }

/* Pin sulla mappa */
.pin { background: none; border: 0; }
.pin__inner { position: relative; display: block; width: 30px; height: 40px; transform-origin: 50% 100%; transition: transform .15s; }
.pin .pin__inner svg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 3px rgba(6, 29, 54, .45)); } /* z-index: Leaflet mette gli svg a 200 */
.pin__inner path { fill: var(--blu); stroke: var(--bianco); stroke-width: 2; transition: fill .15s; }
.pin__num {
  position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 30px; height: 29.6px;
  color: var(--bianco); font-family: var(--font-cond); font-size: 14px; font-weight: 700; line-height: 1;
  transition: opacity .15s;
}
.pin.is-hover .pin__inner, .pin.is-active .pin__inner { transform: scale(1.2); }
.pin.is-hover path, .pin.is-active path { fill: var(--blu-scuro); }
/* vista d'insieme: pin più piccoli, i numeri compaiono avvicinandosi */
.stab-map.is-far .pin__inner { transform: scale(.6); }
.stab-map.is-far .pin__num { opacity: 0; }
.stab-map.is-far .pin.is-hover .pin__inner, .stab-map.is-far .pin.is-active .pin__inner { transform: scale(1.05); }
.stab-map.is-far .pin.is-hover .pin__num, .stab-map.is-far .pin.is-active .pin__num { opacity: 1; }

/* Mappa in home, al posto della foto */
.split__media--map { aspect-ratio: 4 / 3.4; }
.stab-map--home { height: 100%; min-height: 0; max-height: none; border: 0; }
.map-fallback {
  display: flex; align-items: center; justify-content: center; height: 100%;
  font-family: var(--font-cond); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}

.stab-map .leaflet-popup-content-wrapper { border-radius: 0; box-shadow: 0 10px 30px rgba(6, 29, 54, .25); }
.stab-map .leaflet-popup-content { margin: 16px 18px 14px; font-size: .95rem; line-height: 1.45; }
.pin-popup__title { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.pin-popup__title span { width: 27px; height: 36px; padding-bottom: 9px; font-size: .95rem; }
.pin-popup__links { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
.pin-popup__title strong { font-family: var(--font-cond); font-size: 1.35rem; line-height: 1.05; color: var(--testo); }
.pin-popup .info-list { padding: 0; gap: .35rem; }
.pin-popup .info-list li { font-size: .92rem; }
.pin-popup__link {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: .7rem;
  font-family: var(--font-cond); font-size: .95rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blu) !important; text-decoration: none;
}
.pin-popup__link::before { content: "›"; font-size: 1.3em; line-height: .8; }

/* Nota informativa */
.notice { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding: 1.1rem 1.4rem; background: var(--celeste); color: var(--blu-scuro); border-left: 5px solid var(--blu); }
.notice .icon { width: 28px; height: 28px; color: var(--blu); }
.notice p { margin: 0; }
.notice a { font-weight: 700; }

/* ---------- Pagina Spiagge Sicure ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: var(--bianco); border-bottom: 1px solid var(--linea); }
.subnav ul { display: flex; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  position: relative; display: block; padding: 1.05rem 1.1rem; white-space: nowrap;
  font-family: var(--font-cond); font-size: 1.02rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--testo); text-decoration: none;
}
.subnav a::after { content: ""; position: absolute; left: 1.1rem; right: 1.1rem; bottom: 0; height: 3px; background: var(--blu); transform: scaleX(0); transition: transform .2s; }
.subnav a:hover { color: var(--blu); }
.subnav a:hover::after { transform: scaleX(1); }

.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; border: 1px solid var(--linea); background: var(--bianco); }
.partner { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 2rem 1.2rem; text-align: center; }
.partner + .partner { border-left: 1px solid var(--linea); }
.partner img { width: 100%; max-width: 190px; height: 90px; object-fit: contain; margin-bottom: .4rem; }
.partner span { font-family: var(--font-cond); font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blu); }
.partner strong { font-family: var(--font-cond); font-size: 1.35rem; line-height: 1.1; }
@media (max-width: 900px) {
  .partners { grid-template-columns: 1fr 1fr; }
  .partner:nth-child(3) { border-left: 0; }
  .partner:nth-child(n+3) { border-top: 1px solid var(--linea); }
}
@media (max-width: 460px) {
  .partners { grid-template-columns: 1fr; }
  .partner + .partner { border-left: 0; border-top: 1px solid var(--linea); }
}

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 3px solid var(--blu); }
.timeline li { position: relative; padding: 1.8rem 1.5rem 0 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: -10px; width: 17px; height: 17px; background: var(--blu); border: 3px solid var(--bianco); outline: 1px solid var(--blu); }
.timeline__when { display: block; margin-bottom: .3rem; font-family: var(--font-cond); font-size: 1.05rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blu); }
.timeline h3 { margin: 0 0 .35rem; font-family: var(--font-cond); font-size: 1.5rem; }
.timeline p { margin: 0; color: var(--testo-2); font-size: 1rem; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 3px solid var(--blu); gap: 1.8rem; }
  .timeline li { padding: 0 0 0 1.8rem; }
  .timeline li::before { left: -10px; top: 4px; }
}

/* Delibera */
.delibera { display: grid; grid-template-columns: 320px 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.delibera__preview { position: relative; display: block; border: 1px solid var(--linea); background: var(--bianco); box-shadow: 14px 14px 0 var(--celeste); }
.delibera__preview img { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; }
.delibera__preview span {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem;
  background: var(--blu); color: var(--bianco);
  font-family: var(--font-cond); font-size: 1rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.delibera__preview:hover span { background: var(--blu-hover); }
.delibera__title { margin: 0 0 1.2rem; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 400; line-height: 1.15; }
.facts { display: grid; grid-template-columns: max-content 1fr; margin: 0; border-top: 1px solid var(--linea); }
.facts dt, .facts dd { padding: .8rem 0; border-bottom: 1px solid var(--linea); }
.facts dt { padding-right: 2rem; font-family: var(--font-cond); font-size: 1rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blu); }
.facts dd { margin: 0; }
@media (max-width: 860px) {
  .delibera { grid-template-columns: 1fr; }
  .delibera__preview { max-width: 280px; }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
  .facts dd { padding-top: .2rem; }
}

/* Galleria */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery a { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: var(--celeste); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery a:hover img { transform: scale(1.05); }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; } }

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  padding: 4rem 1rem 2rem; background: rgba(6, 29, 54, .96);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1200px, 100%); max-height: 78vh; }
.lightbox__caption { margin: 1rem 0 0; color: #c9d8e6; text-align: center; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; background: var(--blu); color: var(--bianco); cursor: pointer; }
.lightbox__btn:hover { background: var(--blu-hover); }
.lightbox__btn .icon { width: 26px; height: 26px; stroke-width: 2; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Postazioni */
.map-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: start; }
.map-frame { aspect-ratio: 4 / 3.2; background: var(--celeste); border: 1px solid var(--linea); }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-note { margin: .6rem 0 0; font-size: .85rem; color: var(--testo-2); }
.postazioni { list-style: none; margin: 0; padding: 0; max-height: 600px; overflow-y: auto; border-top: 1px solid var(--linea); }
.postazione { display: grid; grid-template-columns: 54px 1fr; gap: 1rem; align-items: start; padding: 1.1rem 0; border-bottom: 1px solid var(--linea); }
.postazione__num { display: grid; place-items: center; width: 54px; height: 54px; background: var(--blu); color: var(--bianco); font-family: var(--font-cond); font-size: 1.4rem; font-weight: 700; }
.postazione h3 { margin: 0 0 .15rem; font-family: var(--font-cond); font-size: 1.35rem; }
.postazione p { margin: 0 0 .3rem; font-size: .95rem; color: var(--testo-2); }
.postazione a { font-family: var(--font-cond); font-size: .95rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.postazione a::before { content: "› "; }
.planimetria { margin: 2.5rem 0 0; }
.planimetria a { display: block; border: 1px solid var(--linea); }
.planimetria img { width: 100%; }
.planimetria figcaption { margin-top: .6rem; font-size: .92rem; color: var(--testo-2); }
@media (max-width: 960px) {
  .map-layout { grid-template-columns: 1fr; }
  .postazioni { max-height: none; }
}

/* Aree documentali */
.docs-head { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.5rem; }
.docs-head__icon { display: grid; place-items: center; flex: none; width: 64px; height: 64px; background: var(--blu); color: var(--bianco); }
.docs-head__icon .icon { width: 34px; height: 34px; stroke-width: 1.4; }
.docs-head h2 { margin: 0; }
.docs-head p { margin: .2rem 0 0; color: var(--testo-2); }
.doc-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--testo); }
.doc { display: grid; grid-template-columns: 56px 1fr auto; gap: 1.2rem; align-items: center; padding: 1rem .5rem; border-bottom: 1px solid var(--linea); transition: background .2s; }
.doc:hover { background: var(--grigio-mare); }
.section--grigio .doc:hover { background: var(--bianco); }
.doc__type {
  display: grid; place-items: center; width: 56px; height: 56px; border: 2px solid var(--blu); color: var(--blu);
  font-family: var(--font-cond); font-size: 1rem; font-weight: 700; letter-spacing: .06em;
}
.doc__type--zip { border-color: var(--blu-scuro); color: var(--blu-scuro); }
.doc__title { margin: 0; font-family: var(--font-cond); font-size: 1.35rem; font-weight: 700; line-height: 1.15; color: var(--testo); }
.doc__meta { margin: .15rem 0 0; font-size: .95rem; color: var(--testo-2); }
.doc__actions { display: flex; gap: .5rem; }
.doc__actions a {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 42px; padding: 0 .9rem;
  border: 2px solid var(--blu); color: var(--blu); text-decoration: none;
  font-family: var(--font-cond); font-size: .95rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.doc__actions a:hover { background: var(--blu); color: var(--bianco); }
.doc__actions a.is-primary { background: var(--blu); color: var(--bianco); }
.doc__actions a.is-primary:hover { background: var(--blu-hover); border-color: var(--blu-hover); }
.doc__actions .icon { width: 18px; height: 18px; stroke-width: 2; }
@media (max-width: 640px) {
  .doc { grid-template-columns: 48px 1fr; }
  .doc__type { width: 48px; height: 48px; font-size: .9rem; }
  .doc__actions { grid-column: 2; }
}

/* Regole */
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; counter-reset: regola; border-top: 1px solid var(--linea); border-left: 1px solid var(--linea); }
.rule { counter-increment: regola; padding: 1.6rem 1.4rem; border-right: 1px solid var(--linea); border-bottom: 1px solid var(--linea); background: var(--bianco); }
.rule::before { content: counter(regola, decimal-leading-zero); display: block; margin-bottom: .6rem; font-family: var(--font-cond); font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--blu); }
.rule strong { display: block; margin-bottom: .3rem; font-family: var(--font-cond); font-size: 1.3rem; line-height: 1.15; }
.rule span { font-size: .98rem; color: var(--testo-2); }
@media (max-width: 1000px) { .rules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .rules { grid-template-columns: 1fr; } }

/* Emergenze */
.emergency { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.emergency h2 { margin: 0 0 .2rem; }
.emergency p { margin: 0; color: #c9d8e6; }
.emergency__nums { display: flex; flex-wrap: wrap; gap: 1rem; }
.emergency__num { display: flex; align-items: center; gap: .9rem; padding: .8rem 1.3rem; background: var(--bianco); color: var(--testo); text-decoration: none; line-height: 1.15; }
.emergency__num b { font-family: var(--font-cond); font-size: 2.3rem; color: var(--rosso-emergenza); }
.emergency__num span { font-family: var(--font-cond); font-size: 1rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.emergency__num:hover { background: var(--celeste); color: var(--testo); }

/* Info utili */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 1rem 1rem 1rem 0; text-align: left; border-bottom: 1px solid var(--linea); vertical-align: top; }
.table thead th { border-bottom: 2px solid var(--testo); font-family: var(--font-cond); font-size: 1rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.table td:first-child { font-weight: 600; }
.table a { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blu-notte); color: #a9bdd1; font-size: 1rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; padding-block: 4rem 3rem; }
.site-footer .brand { display: inline-flex; margin: 0 0 1.4rem; padding: .9rem 1.2rem; }
.site-footer p { max-width: 36ch; }
.site-footer h4 { margin: 0 0 1.1rem; font-family: var(--font-cond); font-size: 1.1rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bianco); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: #a9bdd1; text-decoration: none; }
.site-footer a:hover { color: var(--bianco); }
.site-footer address { margin-bottom: 1.4rem; }
.social { display: flex !important; gap: .5rem; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; background: rgba(255, 255, 255, .08); color: var(--bianco); }
.social a:hover { background: var(--blu); }
.social .icon { width: 20px; height: 20px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }
.footer-bottom p { margin: 0; max-width: none; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Utilità ---------- */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3.5rem; }
.center { text-align: center; }
.max-text { max-width: 760px; }

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