/* Pagina di presentazione — moderna, leggera, senza dipendenze esterne. */
:root {
  --brand: #0b5394; --brand2: #12a594;
  --ink: #0e1726; --muted: #5a6577; --line: #e5e9f0; --bg: #f7f9fc; --card: #fff;
  --rad: 22px;
  --shadow: 0 1px 2px rgba(14,23,38,.04), 0 12px 40px -12px rgba(14,23,38,.18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Titillium Web", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }
.l-wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.l-narrow { width: min(780px, 100% - 40px); }

/* Navigazione */
.l-nav { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  background: rgba(247,249,252,.72); border-bottom: 1px solid rgba(14,23,38,.06); }
.l-nav .l-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.l-logo { display: flex; align-items: center; gap: 10px; font-weight: 750; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.l-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 22px;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); }
.l-nav nav { display: flex; align-items: center; gap: 22px; }
.l-nav nav a { color: var(--muted); text-decoration: none; font-weight: 550; font-size: .95rem; }
.l-nav nav a:hover { color: var(--ink); }
.l-nav nav a.l-btn { color: #fff; }
@media (max-width: 720px) { .l-nav nav a:not(.l-btn) { display: none; } }

/* Bottoni */
.l-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700;
  padding: 14px 24px; border-radius: 999px; transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 10px 24px -10px rgba(14,23,38,.6); }
.l-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(14,23,38,.55); }
.l-btn-lg { padding: 18px 30px; font-size: 1.08rem; }
.l-btn-sm { padding: 9px 18px; font-size: .9rem; box-shadow: none; }
.l-btn-light { background: #fff; color: var(--ink); }
.l-btn-ghost { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-decoration: none; color: var(--ink); padding: 14px 6px;
  border-bottom: 2px solid currentColor; }

/* Hero */
.l-hero { position: relative; overflow: hidden; padding: clamp(48px, 9vw, 110px) 0 clamp(56px, 8vw, 100px); isolation: isolate; }
.l-blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .5; }
.l-blob1 { width: 620px; height: 620px; background: var(--brand); top: -260px; right: -140px; opacity: .28; }
.l-blob2 { width: 480px; height: 480px; background: var(--brand2); bottom: -260px; left: -160px; opacity: .25; }
.l-hero-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
@media (max-width: 900px) { .l-hero-grid { grid-template-columns: 1fr; } }
.l-pill { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .02em; padding: 7px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand2) 14%, #fff); color: color-mix(in srgb, var(--brand2) 70%, #000); border: 1px solid color-mix(in srgb, var(--brand2) 30%, #fff); }
.l-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.3rem); line-height: 1.12; letter-spacing: -.035em; margin: 22px 0 14px; padding-bottom: .1em; font-weight: 820;
  background: linear-gradient(120deg, var(--ink) 30%, var(--brand) 75%, var(--brand2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40ch; margin: 0 0 22px; }
.l-chips { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.l-chips li { background: #fff; border: 1px solid var(--line); padding: 8px 14px; border-radius: 12px; font-size: .92rem; font-weight: 550; text-transform: none; }
.l-cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.l-sold, .l-note { padding: 18px 20px; border-radius: 16px; font-weight: 550; max-width: 46ch; }
.l-sold { background: #fff1f0; color: #9b1c13; border: 1px solid #f5c6c1; }
.l-note { background: #fff; border: 1px solid var(--line); }

.l-hero-card { background: rgba(255,255,255,.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.9);
  border-radius: 28px; padding: 28px; box-shadow: var(--shadow); text-align: center; }
.l-hero-img { border-radius: 18px; margin-bottom: 20px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.l-ring { position: relative; width: 150px; height: 150px; margin: 4px auto 18px; }
.l-ring-bg { fill: none; stroke: var(--line); stroke-width: 12; }
.l-ring-fg { fill: none; stroke: var(--brand2); stroke-width: 12; stroke-linecap: round; }
.l-ring-txt { position: absolute; inset: 0; display: grid; place-content: center; }
.l-ring-txt b { font-size: 2.3rem; line-height: 1; font-weight: 820; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.l-ring-txt span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.l-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; }
.l-stats div { background: var(--bg); border-radius: 14px; padding: 10px 6px; }
.l-stats dt { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.l-stats dd { margin: 0; font-weight: 800; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.l-small { font-size: .85rem; color: var(--muted); margin: 0; }
.l-banner { margin-top: -30px; margin-bottom: 20px; position: relative; padding: 16px 22px; border-radius: 16px; font-weight: 600;
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 10%, #fff), color-mix(in srgb, var(--brand2) 10%, #fff)); border: 1px solid var(--line); }

/* Sezioni */
.l-section { padding: clamp(60px, 8vw, 104px) 0; }
.l-alt { background: #fff; border-block: 1px solid var(--line); }
.l-kicker { font-size: .8rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--brand2); margin: 0 0 8px; }
.l-section h2, .l-info h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -.025em; line-height: 1.12; margin: 0 0 34px; font-weight: 800; }

.l-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.l-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--rad); padding: 28px; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease; }
.l-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.l-card-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); margin-bottom: 18px; }
.l-card h3 { margin: 0; font-size: 1.25rem; letter-spacing: -.01em; }
.l-card-sub { color: var(--brand); font-weight: 600; font-size: .92rem; margin: 2px 0 10px; }
.l-card p { margin: 0 0 14px; color: var(--muted); font-size: .97rem; }
.l-days { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 16px; }
.l-days span, .l-tags span { font-size: .78rem; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.l-bar svg { width: 100%; height: 6px; display: block; }
.l-bar-bg { fill: var(--line); } .l-bar-fg { fill: var(--brand2); }
.l-avail { margin: 8px 0 0 !important; font-weight: 700; color: var(--ink) !important; font-size: .9rem !important; }
.l-card.is-sold { opacity: .7; }
.l-card.is-sold .l-avail { color: #b3261e !important; }
.l-card.is-sold .l-bar-fg { fill: #c9ced6; }

.l-cal { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.l-day { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: var(--rad); border: 1px solid var(--line); background: var(--bg); }
.l-day-date { flex: none; width: 74px; padding: 10px 0; border-radius: 16px; text-align: center; color: #fff; background: linear-gradient(160deg, var(--brand), var(--brand2)); }
.l-day-date span { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.l-day-date b { display: block; font-size: 2rem; line-height: 1.05; font-weight: 820; }
.l-day-h { margin: 0 0 2px; font-weight: 750; font-size: 1.05rem; }
.l-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.l-tags span { background: #fff; }

.l-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.l-steps li { counter-increment: s; position: relative; padding: 70px 26px 26px; border-radius: var(--rad); background: var(--card); border: 1px solid var(--line); }
.l-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; top: 20px; left: 26px; font-weight: 850; font-size: 2rem; letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--brand), var(--brand2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l-steps h3 { margin: 0 0 6px; font-size: 1.15rem; }
.l-steps p { margin: 0; color: var(--muted); }

.l-faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.l-faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 1.08rem; padding: 18px 40px 18px 0; position: relative; }
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.6rem; font-weight: 400; color: var(--brand); transition: transform .2s; }
.l-faq[open] summary::after { transform: rotate(45deg); }
.l-faq p { margin: 0 0 20px; color: var(--muted); }

.l-info { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .l-info { grid-template-columns: 1fr; } }
.l-info h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 16px; }
.l-contacts { list-style: none; padding: 0; margin: 0 0 16px; font-size: 1.05rem; line-height: 2; }

.l-final { padding: clamp(60px, 9vw, 110px) 0; text-align: center; color: #fff; background: linear-gradient(130deg, var(--brand), var(--brand2)); }
.l-final h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.03em; margin: 0 0 26px; }
.l-final .l-small, .l-final .l-small a { color: rgba(255,255,255,.85); margin-top: 22px; }
.l-foot { padding: 28px 0; font-size: .88rem; color: var(--muted); }
.l-foot .l-wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

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

/* Logo ente e partner */
.l-logo img { height: 48px; width: auto; display: block; }
.l-h-sm { font-size: clamp(1.2rem, 2vw, 1.5rem) !important; }
.l-partners { padding: clamp(44px, 6vw, 72px) 0; background: #fff; border-top: 1px solid var(--line); text-align: center; }
.l-logos { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 44px; }
.l-logos li { display: flex; align-items: center; justify-content: center; }
.l-logos img { height: 64px; width: auto; max-width: 240px; object-fit: contain; filter: grayscale(.15); transition: filter .2s, transform .2s; }
.l-logos a:hover img { filter: none; transform: scale(1.04); }
.l-logos .l-logo-main img { height: 76px; max-width: 300px; }
.l-logos span { font-weight: 700; color: var(--muted); }
@media (max-width: 600px) { .l-logo img { height: 38px; } .l-logos img { height: 48px; } }

/* ================= Accessibilità ================= */
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid #f59e0b !important; outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.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; }
.a11y-bar { display: flex; gap: 4px; }
.a11y-bar button { font: inherit; font-weight: 700; font-size: .85rem; min-width: 40px; min-height: 40px; padding: 0 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 10px; cursor: pointer; }
.a11y-bar button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.l-nav .l-wrap { gap: 12px; }
.l-nav nav { margin-left: auto; }
html.fs-1 { font-size: 112.5%; } html.fs-2 { font-size: 125%; } html.fs-3 { font-size: 140%; }
html.fs-1 body, html.fs-2 body, html.fs-3 body { font-size: 1.06rem; }
html.hc { --ink: #000; --muted: #1f1f1f; --line: #000; --bg: #fff; }
html.hc body, html.hc .l-alt, html.hc .l-partners { background: #fff; }
html.hc .l-blob { display: none; }
html.hc .l-hero h1 { background: none; color: #000; -webkit-text-fill-color: #000; }
html.hc .l-card, html.hc .l-day, html.hc .l-steps li, html.hc .l-hero-card, html.hc .l-chips li { border: 2px solid #000; box-shadow: none; }
html.hc a { text-decoration: underline; }
html.hc .l-final { background: #000; }
html.hc .l-kicker { color: #000; }

/* ================= Immagini ================= */
.l-card { padding: 0; overflow: hidden; }
.l-card > :not(.l-card-img) { margin-left: 28px; margin-right: 28px; }
.l-card-img + .l-card-ico { margin-top: -26px; position: relative; border: 4px solid #fff; box-sizing: content-box; }
.l-card > .l-card-ico:first-child { margin-top: 28px; }
.l-card > :last-child { margin-bottom: 26px; }
.l-card-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); }
.l-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.l-card:hover .l-card-img img { transform: scale(1.04); }
.l-sold-tag { position: absolute; top: 12px; right: 12px; background: #b3261e; color: #fff; font-weight: 800; font-size: .8rem; padding: 6px 12px; border-radius: 999px; }
.l-days { list-style: none; padding: 0; }
.l-days li { font-size: .78rem; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.l-hero-img { aspect-ratio: 16 / 9; }

.l-gallery { padding-top: 0; }
.l-mosaic { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.l-fig { position: relative; margin: 0; border-radius: var(--rad); overflow: hidden; background: #fff; box-shadow: var(--shadow); min-height: 220px; }
.l-fig-0 { grid-row: span 2; min-height: 460px; }
.l-fig img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.l-fig figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; color: #fff; font-weight: 650;
  background: linear-gradient(transparent, rgba(8,20,35,.82)); }
@media (max-width: 760px) { .l-mosaic { grid-template-columns: 1fr; grid-template-rows: none; } .l-fig-0 { grid-row: auto; min-height: 260px; } }

/* ================= Calendario: schede giornata in evidenza ================= */
.l-cal-section { background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--brand) 6%, #fff)); border-block: 1px solid var(--line); }
.l-cal { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.l-day { background: #fff; border: 2px solid color-mix(in srgb, var(--brand) 35%, #fff); border-radius: 24px; padding: 26px; gap: 22px;
  box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--brand) 60%, transparent); position: relative; overflow: hidden; }
.l-day::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--brand), var(--brand2)); }
.l-day-date { width: 96px; padding: 12px 0 14px; border-radius: 18px; box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--brand) 70%, transparent); }
.l-day-date span { font-size: .8rem; font-weight: 700; }
.l-day-date b { font-size: 2.9rem; line-height: 1; margin: 4px 0; }
.l-day-title { margin: 0 0 6px; font-size: 1.25rem; letter-spacing: -.01em; }
.l-day-h { font-size: 1.15rem; font-weight: 800; color: var(--brand); margin: 0; }
.l-day-p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; font-weight: 600; }
.l-tags { list-style: none; padding: 0; margin: 12px 0 0; }
.l-tags li { font-size: .8rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, var(--brand2) 12%, #fff); border: 1px solid color-mix(in srgb, var(--brand2) 35%, #fff); color: color-mix(in srgb, var(--brand2) 60%, #000); }
.l-day-free { margin: 14px 0 0; font-size: .98rem; color: var(--ink); }
.l-day-free strong { font-size: 1.3rem; color: var(--brand2); }
.l-day.is-full { border-color: #f1b8b3; }
.l-day.is-full .l-day-free { color: #b3261e; font-weight: 800; }
.l-day-cta { display: inline-block; margin-top: 12px; font-weight: 800; text-decoration: none; color: var(--brand); border-bottom: 2px solid currentColor; padding-bottom: 2px; }
@media (max-width: 420px) { .l-day { flex-direction: column; } .l-day-date { width: 100%; display: flex; justify-content: center; align-items: baseline; gap: 10px; padding: 10px; } .l-day-date b { font-size: 2rem; } }
/* Contrasto AA per testi piccoli nel colore secondario */
.l-kicker { color: color-mix(in srgb, var(--brand2) 62%, #000); }
.l-day-free strong { color: color-mix(in srgb, var(--brand2) 70%, #000); }
.l-card .l-bar, .l-card .l-avail, .l-card .l-days { margin-left: 28px !important; margin-right: 28px !important; }
.l-card .l-avail { margin-bottom: 26px !important; }
.l-foot .powered { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.powered-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.powered-brand img { width: 24px; height: 24px; }
.powered-det a { color: var(--muted); }
.l-foot { padding-bottom: 32px; }

/* ================= Pulsante "Prenota": colore d'attenzione, più grande ================= */
:root { --cta: #c2410c; }
.l-btn-cta { background: var(--cta); color: #fff !important; box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--cta) 80%, transparent); }
.l-btn-cta:hover { background: color-mix(in srgb, var(--cta) 82%, #000); box-shadow: 0 18px 36px -12px color-mix(in srgb, var(--cta) 85%, transparent); }
.l-btn-xl { padding: 22px 44px; font-size: 1.3rem; border-radius: 18px; letter-spacing: .01em; min-height: 64px; }
@media (max-width: 600px) { .l-btn-xl { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: no-preference) {
  .l-hero .l-btn-xl { animation: ctaPulse 2.6s ease-in-out infinite; }
  @keyframes ctaPulse { 0%, 100% { box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--cta) 80%, transparent), 0 0 0 0 color-mix(in srgb, var(--cta) 45%, transparent); }
    50% { box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--cta) 80%, transparent), 0 0 0 12px color-mix(in srgb, var(--cta) 0%, transparent); } }
}
.l-day-cta { color: var(--cta); }
html.hc .l-btn-cta { background: #000; outline: 3px solid #000; }

/* ================= Conto alla rovescia ================= */
.countdown { margin: 0 0 26px; }
.cd-title { margin: 0 0 10px; font-weight: 750; font-size: .95rem; color: var(--ink); text-transform: none; }
.cd-boxes { display: flex; gap: 10px; }
.cd-boxes[hidden] { display: none; }
.cd-box { min-width: 76px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 8px 8px; box-shadow: 0 8px 20px -14px rgba(14,23,38,.5); }
.cd-box b { display: block; font-size: 2rem; line-height: 1.05; font-weight: 850; font-variant-numeric: tabular-nums; color: var(--brand); }
.cd-box span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.cd-note { margin: 10px 0 0; font-size: .9rem; color: var(--muted); max-width: 52ch; }
.countdown.cd-done .cd-title { color: #9b1c13; }
@media (max-width: 420px) { .cd-box { min-width: 0; flex: 1; } .cd-box b { font-size: 1.6rem; } }
.l-logo { flex: none; }
.l-logo img { flex: none; max-width: none; }
@media (max-width: 480px) { .l-logo img { height: 34px; } .l-nav .l-wrap { gap: 6px; } .a11y-bar button { min-width: 36px; padding: 0 6px; } }

/* ================= Pagina più larga, margini laterali più stretti ================= */
.l-wrap { width: min(1440px, 100% - clamp(24px, 3vw, 48px)); }
.l-narrow { width: min(960px, 100% - clamp(24px, 3vw, 48px)); }
.l-hero-grid { grid-template-columns: 1.35fr .9fr; }
@media (max-width: 900px) { .l-hero-grid { grid-template-columns: 1fr; } }
.l-chip-strong { font-weight: 750 !important; border-color: color-mix(in srgb, var(--brand) 35%, #fff) !important; }
.l-hero-img { aspect-ratio: 4 / 3; object-position: center 20%; }

/* Fascia promotori sotto l'intestazione (come nella locandina) */
.l-strip { background: #fff; border-block: 1px solid var(--line); padding: 14px 0; }
.l-strip .l-wrap { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
.l-strip-t { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.l-strip-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; }
.l-strip-logos img { height: 42px; width: auto; display: block; }
@media (max-width: 600px) { .l-strip-logos img { height: 32px; } }

/* Evento non prenotabile */
.l-event { display: grid; gap: 4px; padding: 20px 24px; margin: 0 0 26px; border-radius: 18px; border: 2px dashed color-mix(in srgb, var(--brand) 45%, #fff);
  background: color-mix(in srgb, var(--brand) 5%, #fff); }
.l-event h3 { margin: 0; font-size: 1.2rem; }
.l-event p { margin: 0; color: var(--muted); }
.l-event-tag { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }

/* 19 schede: griglia più fitta */
.l-cards { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.l-card > .l-card-ico:first-child { margin-top: 24px; }
.l-card h3 { font-size: 1.08rem; }
.l-card-meta { font-size: .82rem !important; font-weight: 700; color: var(--brand) !important; margin-top: auto !important; }

/* Galleria con locandina intera */
.l-mosaic.n2 { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); grid-template-rows: auto; }
.l-mosaic.n2 .l-fig-0 { grid-row: auto; }
.l-mosaic.n1 { grid-template-columns: 1fr; grid-template-rows: auto; }
.l-fig-contain { background: #fff; }
.l-fig-contain img { object-fit: contain; padding: 12px; }
.l-mosaic.n2 .l-fig { min-height: 560px; }
@media (max-width: 760px) { .l-mosaic.n2 { grid-template-columns: 1fr; } .l-mosaic.n2 .l-fig { min-height: 420px; } }

/* Partner a gruppi */
.l-partners .l-kicker { margin-top: 18px; }
.l-partners .l-logos { margin-bottom: 24px; }
.l-logos img { height: 52px; }
.l-logos span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.l-mosaic.n2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.l-mosaic.n2 .l-fig { min-height: 520px; }
.l-fig-contain { display: flex; flex-direction: column; }
.l-fig-contain img { position: static; flex: 1; min-height: 0; width: 100%; height: auto; }
.l-fig-contain figcaption { position: static; background: none; color: var(--muted); padding: 8px 16px 14px; text-align: center; }
.l-fig:not(.l-fig-contain) img { object-position: center 25%; }
@media (max-width: 480px) { .a11y-txt { display: none; } .l-nav .l-btn-sm { padding: 8px 12px; } }
.hc-ico { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); vertical-align: -2px; }

/* ================= Icone (Bootstrap Icons inline) ================= */
.i { width: 1.05em; height: 1.05em; flex: none; vertical-align: -0.15em; fill: currentColor; }
.l-chips li { display: inline-flex; align-items: center; gap: 8px; }
.l-chips .i { color: var(--brand); }
.l-contacts li { display: flex; align-items: center; gap: 10px; }
.l-contacts .i { color: var(--brand); }
.l-day-h { display: flex; align-items: center; gap: 8px; }
.l-btn .i, .l-btn-ghost .i, .l-day-cta .i { width: 1em; height: 1em; }

/* Icone mediche (Healthicons): riquadro chiaro, icona scura, ben distinte dalle icone d'interfaccia */
.l-card-ico { width: 60px; height: 60px; border-radius: 16px; background: #fff !important;
  border: 2px solid color-mix(in srgb, var(--brand) 22%, #fff); box-shadow: 0 6px 16px -10px color-mix(in srgb, var(--brand) 70%, transparent); }
.l-card-ico img { width: 40px; height: 40px; display: block; filter: invert(19%) sepia(73%) saturate(1800%) hue-rotate(196deg) brightness(88%); }
html.hc .l-card-ico img { filter: none; }

/* ================= Territorio: panoramica + comuni ================= */
.l-terr { position: relative; background: #fff; border-bottom: 1px solid var(--line); }
.l-terr-photo { position: relative; margin: 0; height: clamp(260px, 38vw, 520px); overflow: hidden; background: #cfe3f5; }
.l-terr-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; display: block; }
.l-terr-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 38%, rgba(255,255,255,0) 72%, #fff 100%); }
.l-terr-head { position: absolute; left: 0; right: 0; top: clamp(18px, 4vw, 54px); margin-inline: auto; z-index: 1; }
.l-terr-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.7rem); line-height: 1.12; letter-spacing: -.025em; margin: 0; max-width: 22ch; color: #0b2545;
  text-shadow: 0 1px 16px rgba(255,255,255,.75); }
.l-terr-head .l-kicker { color: #0b3a6b; text-shadow: 0 1px 10px rgba(255,255,255,.9); }
.l-terr-credit { position: absolute; right: 12px; bottom: 8px; z-index: 1; font-size: .72rem; color: var(--muted); }
.l-terr-body { position: relative; z-index: 2; margin-top: clamp(-90px, -7vw, -40px); padding-bottom: clamp(36px, 5vw, 64px); }
.l-terr-txt { margin: 0 0 18px; max-width: 70ch; color: var(--ink); font-weight: 500; background: rgba(255,255,255,.85); display: inline-block; padding: 6px 12px; border-radius: 10px; }
.l-comuni { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.l-comune { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); box-shadow: 0 10px 24px -18px rgba(14,23,38,.55); transition: border-color .15s, transform .15s, box-shadow .15s; min-height: 64px; }
.l-comune:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 14px 28px -16px color-mix(in srgb, var(--brand) 60%, transparent); }
.l-stemma { width: 44px; height: 48px; flex: none; object-fit: contain; }
.l-stemma-ph { display: grid; place-items: center; font-size: .78rem; font-weight: 800; letter-spacing: .02em; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, #fff); border: 2px solid color-mix(in srgb, var(--brand) 30%, #fff);
  border-radius: 6px 6px 50% 50% / 6px 6px 60% 60%; }
.l-comune-n { display: flex; flex-direction: column; font-size: .9rem; line-height: 1.25; min-width: 0; }
.l-comune-n b { font-size: 1.02rem; }
.l-comune-u { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-ext { margin-left: auto; color: var(--muted); width: .9em; height: .9em; }
.l-comune:hover .l-ext { color: var(--brand); }

/* ================= Convegno: promemoria appuntato con spillo ================= */
.l-postit { position: relative; max-width: 760px; margin: 18px auto 40px; padding: 34px 30px 26px; background: #fff7b8;
  background-image: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,0) 40%);
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 18px 30px -14px rgba(90,70,0,.45); transform: rotate(-1.2deg); border-radius: 2px 2px 10px 2px; color: #3b2f00; }
.l-postit::after { content: ""; position: absolute; right: 0; bottom: 0; width: 34px; height: 34px;
  background: linear-gradient(135deg, #f1e48f 50%, rgba(0,0,0,0) 50%); box-shadow: -3px -3px 6px -4px rgba(0,0,0,.25); border-bottom-right-radius: 10px; }
.l-pin { position: absolute; top: -14px; left: 50%; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8a8a 0 18%, #d42a2a 45%, #8f1010 100%); box-shadow: 0 6px 8px -2px rgba(0,0,0,.45); z-index: 1; }
.l-pin::after { content: ""; position: absolute; left: 50%; top: 24px; width: 3px; height: 14px; margin-left: -1.5px; background: linear-gradient(#9aa0a6, #5f6368); border-radius: 0 0 2px 2px; }
.l-postit-tag { margin: 0 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7a5d00; display: flex; gap: 6px; align-items: center; }
.l-postit h3 { margin: 0 0 12px; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.2; font-family: Georgia, "Times New Roman", serif; color: #2b2200; }
.l-postit-info { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.l-postit-info li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.l-postit-info .i { margin-top: .2em; color: #8a6a00; }
.l-postit-txt { margin: 0; padding-top: 10px; border-top: 1px dashed rgba(90,70,0,.35); }
@media (prefers-reduced-motion: no-preference) { .l-postit { transition: transform .25s ease; } .l-postit:hover { transform: rotate(0deg); } }
html.hc .l-postit { background: #fff; border: 2px solid #000; transform: none; }

/* ================= Gestione prenotazione: annulla / recupera ================= */
.l-manage { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 10px 12px; margin-top: 22px; padding: 14px 16px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 24px -20px rgba(14,23,38,.5); max-width: 640px; }
.l-manage-t { font-weight: 800; grid-column: 1 / -1; }
.l-mbtn { display: flex; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 11px 16px; border-radius: 12px; font-weight: 750; text-decoration: none; border: 2px solid; min-height: 46px; }
.l-mbtn-cancel { color: #a1271c; border-color: #e7b3ad; background: #fff5f4; }
.l-mbtn-cancel:hover { background: #a1271c; color: #fff; border-color: #a1271c; }
.l-mbtn-recover { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, #fff); background: color-mix(in srgb, var(--brand) 5%, #fff); }
.l-mbtn-recover:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.l-manage-final { margin: 26px auto 0; color: var(--ink); text-align: left; }
@media (max-width: 520px) { .l-manage { grid-template-columns: 1fr; } }
.l-card-orario { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: #fff4e5; color: #8a3a00; font-weight: 700; }
.l-card-orario .i { width: .9em; height: .9em; }

.l-comune-nolink { cursor: default; }
.l-comune-nolink:hover { transform: none; box-shadow: none; border-color: var(--line); }

.l-suspended { display: flex; align-items: center; gap: 10px; }
.l-suspended .i { width: 1.4em; height: 1.4em; flex: none; }
.l-chips li.l-chip-close { background: #fff4e5; color: #8a3a00; border-color: #f3c98b; font-weight: 700; }
