[hidden] { display: none !important; }
:root {
  --ink: #10212B;
  --muted: #4B5B66;
  --soft: #33434D;
  --orange: #C2410C;
  --orange-dark: #9A3412;
  --blue: #0C4A6E;
  --sand: #F4E9D8;
  --sand-light: #FBF6EE;
  --line: #DCE3E8;
  --field: #C9D6DE;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
img, svg { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: #08324B; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
h1, h2, h3 { font-family: Archivo, Inter, sans-serif; margin: 0; letter-spacing: -0.5px; }
h1 { font-weight: 900; font-stretch: 112%; font-size: clamp(36px, 7.2vw, 64px); line-height: 1.03; letter-spacing: -1.5px; }
h2 { font-weight: 900; font-stretch: 108%; font-size: clamp(28px, 4.4vw, 40px); line-height: 1.1; }
h3 { font-weight: 800; font-size: 21px; line-height: 1.25; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.small { font-size: 14px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { font-family: Archivo, sans-serif; font-weight: 900; font-stretch: 110%; font-size: 25px; letter-spacing: -0.5px; color: var(--ink); text-decoration: none; white-space: nowrap; }
@media (max-width: 420px) { .logo { font-size: 21px; } .nav .btn { padding: 9px 12px; font-size: 14px; } }
.logo span { color: var(--orange); }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--orange); }
.nav a.btn { color: #fff; }
.nav .btn { padding: 10px 16px; min-height: 42px; font-size: 15px; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 17px Inter, sans-serif; padding: 14px 22px; min-height: 50px; border-radius: 12px; border: 0; background: var(--orange); color: #fff; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { background: var(--orange-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { background: #9AA6AE; cursor: not-allowed; }

/* hero */
.hero { background: var(--sand-light); padding: 48px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.kicker { display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: 0.3px; color: var(--orange); text-transform: uppercase; margin-bottom: 16px; }
.hero .sub { font-family: Archivo, sans-serif; font-weight: 700; font-size: 22px; margin: 14px 0 18px; color: var(--soft); }
.hero .body { font-size: 18px; color: var(--muted); max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.hero-media { margin: 0; border-radius: 22px; overflow: hidden; background: var(--sand); }
.hero-media img, .hero-svg { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-media { order: -1; max-height: 260px; } .hero-media img, .hero-svg { height: 260px; object-fit: cover; } }

/* stat + alert form */
.strip { background: linear-gradient(rgba(16,33,43,0.80), rgba(16,33,43,0.88)), url(img/tramonto.webp) center 45% / cover no-repeat var(--ink); color: #fff; }
.strip .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.stat { font-family: Archivo, sans-serif; font-weight: 900; font-stretch: 115%; font-size: clamp(64px, 10vw, 104px); line-height: 0.9; color: #FDBA74; }
.strip p.big { font-size: 20px; font-weight: 600; margin: 12px 0 10px; max-width: 460px; }
.strip .src { font-size: 13px; color: #A9B8C2; }
@media (max-width: 860px) { .strip .wrap { grid-template-columns: 1fr; } }
.form-box { background: #fff; color: var(--ink); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.form-box .title { font-family: Archivo, sans-serif; font-weight: 800; font-size: 22px; line-height: 1.25; }
.fields { display: flex; flex-wrap: wrap; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; min-width: 0; font-size: 14px; font-weight: 600; color: var(--soft); }
.field input, .field select { font: 16px Inter, sans-serif; padding: 12px 14px; min-height: 48px; border: 1px solid var(--field); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.form-note { font-size: 14px; color: var(--muted); }
.form-msg { font-size: 15px; font-weight: 600; color: var(--blue); }
.hp { display: none; }

/* cards */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); }
a.card:hover { border-color: var(--orange); box-shadow: 0 6px 20px rgba(16,33,43,0.08); color: var(--ink); }
.card-open { border-left: 5px solid var(--orange); }
.card-closed { border-left: 5px solid var(--blue); }
.card .card-title { font-family: Archivo, sans-serif; font-weight: 800; font-size: 20px; line-height: 1.25; }
.card .more { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 15px; color: var(--orange); }
.pill { align-self: flex-start; display: inline-block; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; border: 1.5px solid var(--orange); color: var(--orange); background: #fff; }
.pill-closed { border-color: #9AA6AE; color: var(--muted); }
.pill-soon { border-color: var(--blue); color: var(--blue); }
.pill-expired { border-color: #9AA6AE; color: var(--muted); }
.typeline { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.typeline b { color: var(--ink); }
.card p { color: var(--soft); font-size: 15px; }

/* steps & prices */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--sand-light); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step .n { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; }
.step p { color: var(--soft); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.price.hl { border: 2px solid var(--orange); }
.price .amount { font-family: Archivo, sans-serif; font-weight: 900; font-size: 34px; line-height: 1; }
.price .per { font-size: 14px; color: var(--muted); font-weight: 600; }
.price p { color: var(--soft); }
.price .btn { margin-top: auto; }
@media (max-width: 860px) { .prices { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--orange); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--soft); }

.closing { background: var(--sand); border-radius: 22px; padding: 24px; }
.closing h3 { font-size: 24px; max-width: 640px; }
.closing p { color: var(--soft); margin-top: 8px; max-width: 640px; }

/* bandi page */
.page-head { padding: 36px 0 8px; }
.page-head p { margin-top: 10px; }
.bandi-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 24px; align-items: start; }
.map-card { position: sticky; top: 80px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #D6E8F1; }
.map-svg { display: block; width: 100%; height: auto; }
.map-pin { cursor: pointer; }
.map-pin:hover path, .map-pin:focus path { filter: brightness(1.15); }
.legend { position: absolute; left: 12px; bottom: 12px; background: #fff; border-radius: 12px; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; font-weight: 600; box-shadow: 0 2px 8px rgba(16,33,43,0.12); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.list-col { display: flex; flex-direction: column; gap: 14px; }
.unlock-box { background: var(--sand); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 960px) { .bandi-layout { grid-template-columns: 1fr; } .map-card { position: relative; top: 0; } }
.card-closed details summary { cursor: pointer; font-weight: 700; color: var(--blue); font-size: 15px; }
.card-closed .full { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
:target.card { box-shadow: 0 0 0 3px var(--blue); }

/* anteprima */
.crumb { display: inline-block; margin: 24px 0 18px; font-weight: 600; font-size: 15px; text-decoration: none; }
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; padding-bottom: 56px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--sand-light); border: 1px solid var(--line); }
.chip-open { background: #FFF1E8; border-color: #F7C4A3; color: var(--orange-dark); }
.teaser h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.08; letter-spacing: -1px; }
.teaser .where { margin-top: 12px; font-size: 17px; color: var(--muted); }
.box-title { font-family: Archivo, sans-serif; font-weight: 800; font-size: 22px; margin: 32px 0 14px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fact { background: var(--sand-light); border-radius: 14px; padding: 14px 16px; }
.fact .k { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.3px; }
.fact .v { font-weight: 600; margin-top: 4px; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }
.warn { margin-top: 14px; display: flex; gap: 12px; background: #FFF7ED; border: 1px solid #FDD7B5; border-radius: 14px; padding: 14px 16px; color: #7C2D12; font-weight: 500; }
.locked { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.locked-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.locked-row:last-child { border-bottom: 0; }
.locked-row .lab { flex: 0 0 46%; font-weight: 600; font-size: 15px; }
.locked-row .bars { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.locked-row .bars i { display: block; height: 9px; border-radius: 5px; background: #E3E9ED; }
.locked-row .bars i:nth-child(2) { width: 70%; }
.lock { flex: 0 0 auto; color: #8796A0; }
@media (max-width: 560px) { .locked-row { flex-wrap: wrap; } .locked-row .lab { flex-basis: calc(100% - 40px); } .locked-row .bars { flex-basis: 100%; order: 3; } }
.buy { position: sticky; top: 84px; border: 2px solid var(--orange); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; background: #fff; }
.buy .amount { font-family: Archivo, sans-serif; font-weight: 900; font-size: 44px; line-height: 1; }
.buy ul { margin: 0; padding-left: 20px; color: var(--soft); display: flex; flex-direction: column; gap: 6px; }
.buy .alt { border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 960px) { .teaser { grid-template-columns: 1fr; } .buy { position: relative; top: 0; } }
.disclaimer { font-size: 14px; color: var(--muted); margin-top: 24px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(16,33,43,0.55); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal .form-box { max-width: 460px; width: 100%; position: relative; }
.modal .close { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }

/* cookie banner */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto; background: var(--ink); color: #fff; border-radius: 16px; padding: 18px; display: none; flex-direction: column; gap: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); font-size: 15px; }
.cookie.show { display: flex; }
.cookie a { color: #FDBA74; }
.cookie .row { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { min-height: 44px; padding: 10px 16px; font-size: 15px; }
.cookie .btn-ghost { background: transparent; color: #fff; border-color: #fff; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 10px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.todo { background: #FEF08A; color: #713F12; padding: 0 4px; border-radius: 4px; font-weight: 700; }

/* text pages */
.text-page { max-width: 760px; padding: 32px 20px 56px; }
.text-page h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 18px; }
.text-page h2 { font-size: 24px; margin: 28px 0 10px; }
.text-page p, .text-page li { color: var(--soft); margin-bottom: 10px; }

/* barra di acquisto fissa su telefono */
.mobile-buy { display: none; }
@media (max-width: 960px) {
  .mobile-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(16,33,43,0.08); }
  .mobile-buy b { font-family: Archivo, sans-serif; font-size: 22px; }
  .mobile-buy .btn { min-height: 46px; padding: 10px 18px; }
  body:has(.mobile-buy) .site-footer { padding-bottom: 96px; }
}

/* foto */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; }
.photo-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s ease; }
.photo-card:hover { border-color: var(--orange); color: var(--ink); }
.photo-card:hover img { transform: scale(1.03); }
.pc-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; position: relative; background: #fff; }
.pc-body p { color: var(--soft); font-size: 15px; }
@media (max-width: 860px) { .photo-grid { grid-template-columns: 1fr; } }
.closing { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 28px; align-items: center; }
.closing-img { display: block; width: 100%; height: 100%; min-height: 220px; object-fit: cover; border-radius: 16px; }
@media (max-width: 860px) { .closing { grid-template-columns: 1fr; padding: 20px; } }
@media (max-width: 860px) { .photo-card img { aspect-ratio: 16 / 9; } }

/* pop-up di acquisto */
.no-scroll { overflow: hidden; }
.sheet { max-height: 92vh; overflow-y: auto; gap: 12px; }
.sheet .title { font-size: 21px; }
.sheet-list { margin: 0; padding-left: 20px; color: var(--soft); font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.sheet-price { display: flex; align-items: baseline; gap: 10px; }
.sheet-price .amount { font-family: Archivo, sans-serif; font-weight: 900; font-size: 34px; line-height: 1; }
@media (max-width: 640px) {
  .modal { align-items: flex-end; padding: 0; }
  .modal .form-box.sheet { max-width: none; border-radius: 20px 20px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); animation: sheet-up 0.22s ease-out; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.sheet .field, .modal .field { flex: none; }
