/* albonet.it — foglio di stile unico. Sistema grafico delle brochure 2026. */
/* Layout: fasce a tutta larghezza, gabbia centrale di 1180 px, griglie che passano da 4 a 2 a 1 colonna. */
:root {
  --mag: #991d55;
  --mag-d: #6e1039;
  --ink: #2a1f26;
  --tint: #f6edf1;
  --grey: #efedee;
  --pink: #f3b3cd;
  --rule: #e6dce1;
  --muted: #5c535a;
  --text2: #4a4047;
  --white: #ffffff;
  --sora: Sora, "Segoe UI", system-ui, sans-serif;
  --inter: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1180px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: calc(var(--top-h, 72px) + var(--sub-h, 0px) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--inter); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mag); }
a:hover { color: var(--mag-d); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--sora); line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
h4 { font-size: 1rem; font-weight: 600; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.sora { font-family: var(--sora); }
.muted { color: var(--muted); }
.kicker { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--mag); }
.t-grey { font-weight: 500; color: #6b6168; }
.t-mag { color: var(--mag); }
.lead { font-size: 1.1rem; line-height: 1.55; color: var(--text2); max-width: 46rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* fasce */
.band { padding-block: clamp(2.6rem, 6vw, 4.5rem); }
.band-mag { background: var(--mag); color: var(--white); }
.band-mag a { color: var(--white); }
.band-magd { background: var(--mag-d); color: var(--white); }
.band-ink { background: var(--ink); color: var(--white); }
.band-tint { background: var(--tint); }
.band-grey { background: var(--grey); }
.band-mag .kicker, .band-ink .kicker { color: var(--pink); }
.band-mag .lead, .band-ink .lead { color: rgba(255, 255, 255, 0.86); }
.band-mag .t-grey, .band-ink .t-grey { color: rgba(255, 255, 255, 0.62); }
.band-mag .t-mag { color: var(--pink); }
.band-ink .t-mag { color: var(--pink); }
.rel { position: relative; overflow: hidden; }
.dots { position: absolute; right: -40px; top: -10px; width: min(520px, 70vw); height: auto; pointer-events: none; }

/* testata: fondo grigio chiaro, voci di menu dentro una cornice arrotondata magenta, centrata */
.top { background: var(--grey); color: var(--ink); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--grey); }
.top-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding-block: 0.9rem; position: relative; }
.logo { justify-self: start; }
.logo img { width: 190px; }
.nav { display: contents; }
.nav .pill { display: flex; align-items: center; gap: 1.6rem; background: var(--mag); border-radius: 999px; padding: 0.7rem 1.8rem; justify-self: center; }
.nav .pill a { color: var(--white); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav .pill a:hover { color: var(--pink); }
.nav .pill a[aria-current="page"] { font-weight: 600; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav .tools { display: flex; align-items: center; justify-self: end; }
.nav .pill .lang { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; padding: 0.35rem 0.6rem; border-radius: 999px; margin-left: 0.3rem; border: 1px solid rgba(255, 255, 255, 0.75); color: var(--white); line-height: 1; }
.nav .pill .lang:hover { border-color: var(--pink); color: var(--pink); }
.menu-btn { display: none; background: none; border: 1.5px solid var(--ink); color: var(--ink); font: inherit; font-weight: 600; padding: 0.45rem 0.8rem; border-radius: 999px; cursor: pointer; }
/* tendine delle voci con sottovoci */
.nav .has-sub { position: relative; display: flex; align-items: center; }
.nav .has-sub > a .caret { margin-left: 0.35rem; vertical-align: middle; opacity: 0.85; }
.nav .sub { display: none; position: absolute; top: calc(100% + 0.55rem); left: 50%; transform: translateX(-50%); flex-direction: column; min-width: 240px; padding: 0.45rem 0; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 12px 30px rgba(42, 31, 38, 0.18); z-index: 25; }
.nav .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -0.7rem; height: 0.7rem; }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub, .nav .has-sub.open .sub { display: flex; }
.nav .pill .sub a { color: var(--ink); padding: 0.55rem 1.1rem; font-size: 0.92rem; font-weight: 500; }
.nav .pill .sub a:hover { background: var(--tint); color: var(--mag); }
@media (max-width: 1100px) { .nav .pill { gap: 1.1rem; padding: 0.6rem 1.3rem; } .nav .pill a { font-size: 0.9rem; } }
@media (max-width: 900px) {
  .top-in { grid-template-columns: 1fr auto; }
  .menu-btn { display: inline-block; justify-self: end; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--grey); flex-direction: column; align-items: stretch; gap: 0; padding: 0.4rem var(--gutter-r) 1.2rem var(--gutter-l); border-bottom: 1px solid #ddd8da; }
  .nav.open { display: flex; }
  .nav .pill { flex-direction: column; align-items: stretch; gap: 0; border-radius: 14px; padding: 0.4rem 1.2rem; }
  .nav .pill a { padding: 0.75rem 0; border-top: 1px solid rgba(255, 255, 255, 0.22); font-size: 1.05rem; }
  .nav .pill a:first-child { border-top: none; }
  .nav .pill .lang { align-self: flex-start; margin: 0.7rem 0 0.4rem; padding: 0.5rem 0.8rem; font-size: 0.78rem; border-top: none; }
  .nav .has-sub { flex-direction: column; align-items: stretch; }
  .nav .has-sub > a .caret { display: none; }
  .nav .pill .has-sub > a { border-top: 1px solid rgba(255, 255, 255, 0.22); }
  .nav .sub { display: flex; position: static; transform: none; min-width: 0; padding: 0 0 0.5rem 1rem; background: transparent; border: none; box-shadow: none; }
  .nav .pill .sub a { color: rgba(255, 255, 255, 0.85); padding: 0.4rem 0; border-top: none; font-size: 0.95rem; }
  .nav .pill .sub a:hover { background: transparent; color: var(--pink); }
  .nav .tools { flex-direction: column; align-items: stretch; }
  .nav .tools .btn { margin-top: 0.8rem; justify-content: center; }
}

/* pulsanti */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.25rem; font-family: var(--sora); font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-mag { background: var(--mag); color: var(--white) !important; }
.btn-mag:hover { background: var(--mag-d); }
.btn-white { background: var(--white); color: var(--mag) !important; }
.btn-white:hover { background: var(--tint); }
.btn-out { border-color: currentColor; color: inherit; background: transparent; }
.btn-out:hover { background: rgba(255, 255, 255, 0.12); }
.btn-ink { border-color: var(--ink); color: var(--ink) !important; background: transparent; }
.btn-ink:hover { background: var(--ink); color: var(--white) !important; }
.btn svg { flex: 0 0 auto; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* griglie e schede */
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g4, .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .g4, .g3, .g2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--tint); padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.card p { font-size: 0.95rem; line-height: 1.5; }
.card-white { background: var(--white); }
.card-dark { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.16); }
.card-dark p { color: rgba(255, 255, 255, 0.84); }
.card-line { background: transparent; border: 1.5px solid var(--ink); }
.card-mag { background: var(--mag); color: var(--white); justify-content: center; }
.badge { width: 34px; height: 34px; background: var(--mag); color: var(--white); font-family: var(--sora); font-weight: 700; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.badge-white { background: var(--white); color: var(--mag); }
.row { display: flex; align-items: center; gap: 0.7rem; }
.num { font-family: var(--sora); font-weight: 700; letter-spacing: -0.03em; line-height: 0.95; color: var(--mag); }
.num-xl { font-size: clamp(2.6rem, 5vw, 3.8rem); }
.num-l { font-size: clamp(2.1rem, 3.6vw, 2.8rem); }
.band-mag .num, .band-magd .num, .band-ink .num, .card-mag .num { color: var(--white); }
.stat { display: flex; flex-direction: column; gap: 0.5rem; border-top: 3px solid var(--mag); padding-top: 0.9rem; min-width: 0; }
.band-magd .stat, .band-mag .stat { border-top-color: rgba(255, 255, 255, 0.35); }
.stat p { font-size: 0.92rem; line-height: 1.4; color: var(--text2); }
.band-magd .stat p, .band-mag .stat p { color: rgba(255, 255, 255, 0.9); }
.icon { width: 24px; height: 24px; flex: 0 0 auto; }
.disc { width: 46px; height: 46px; border-radius: 50%; background: var(--mag); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.3rem; }
.chip { font-size: 0.78rem; font-weight: 500; background: var(--white); color: var(--mag-d); padding: 0.2rem 0.55rem; }
.section-head { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1.8rem; }
.section-head .row { gap: 0.8rem; }
.section-head h2 { max-width: 20ch; }
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: start; }
.two-f { grid-template-columns: 300px minmax(0, 1fr); }
.two-eq { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
@media (max-width: 900px) { .two, .two-f, .two-eq { grid-template-columns: minmax(0, 1fr); } }

/* linea del tempo */
.timeline { border-top: 2px solid var(--mag); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1rem; margin-top: 1.5rem; }
.timeline > div { display: flex; flex-direction: column; gap: 0.4rem; padding-right: 0.5rem; min-width: 0; }
.timeline .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--mag); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--mag); margin-top: -9px; }
.band-tint .timeline .dot { border-color: var(--tint); }
.timeline .y { font-family: var(--sora); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; margin-top: 0.3rem; }
.timeline p { font-size: 0.92rem; color: var(--text2); line-height: 1.4; }
@media (max-width: 600px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }

/* percorsi numerati */
.paths { display: flex; flex-direction: column; border-bottom: 1px solid var(--rule); }
.path { display: grid; grid-template-columns: 3.2rem 1fr; gap: 0.8rem; padding: 0.9rem 0; border-top: 1px solid var(--rule); }
.path .num { font-size: 1.7rem; line-height: 1; }
.path p { font-size: 0.95rem; color: var(--text2); margin-top: 0.2rem; }

/* tabella "Cosa comprende" */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 1.5rem; }
table.f { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9rem; line-height: 1.3; color: var(--ink); table-layout: fixed; }
table.f th, table.f td { border-bottom: 1px solid var(--rule); padding: 0.4rem 0.5rem; vertical-align: middle; }
table.f th { text-align: left; font-weight: 600; padding-bottom: 0.6rem; border-bottom: 2px solid var(--ink); }
table.f th.c, table.f td.c { width: 110px; text-align: center; }
table.f td.on, table.f th.on { background: var(--tint); }
table.f td.lv, table.f th.lv { background: var(--mag); color: var(--white); border-bottom-color: rgba(255, 255, 255, 0.22); }
table.f td.g { padding: 0.8rem 0.5rem 0.3rem; border-bottom: 1px solid var(--ink); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--mag); }
table.f th small { display: block; font-size: 0.72rem; font-weight: 500; color: var(--muted); line-height: 1.25; }
table.f th.lv small { color: rgba(255, 255, 255, 0.85); }
.dash { color: #c9b8c1; }
.lv .dash { color: rgba(255, 255, 255, 0.5); }

/* barra di sezione (segnalibri), fissa sotto la testata */
.subnav { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: calc(var(--top-h, 72px) + env(safe-area-inset-top, 0px)); z-index: 15; }
.subnav-in { display: flex; gap: 0 1.5rem; font-size: 0.9rem; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav a { color: var(--text2); text-decoration: none; font-weight: 500; padding: 0.8rem 0 0.65rem; border-bottom: 3px solid transparent; flex: 0 0 auto; }
.subnav a:hover { color: var(--mag); }
.subnav a.active { color: var(--mag); border-bottom-color: var(--mag); font-weight: 600; }

/* brochure */
.brochure { display: flex; flex-direction: column; gap: 0.9rem; background: var(--white); padding: 1.2rem; min-width: 0; }
.brochure img { width: 100%; border: 1px solid var(--rule); }
.brochure .meta { font-size: 0.82rem; color: var(--muted); }

/* contatti */
.contact { display: flex; gap: 0.9rem; align-items: flex-start; min-width: 0; }
.contact .lbl { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; opacity: 0.85; }
.contact .big { font-family: var(--sora); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.6rem); letter-spacing: -0.01em; word-break: break-word; }
.form { display: grid; gap: 1rem; max-width: 40rem; }
.form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; font-weight: 500; }
.form input, .form textarea { font: inherit; padding: 0.7rem 0.8rem; border: 1.5px solid var(--rule); background: var(--white); color: var(--ink); }
.form input:focus, .form textarea:focus { border-color: var(--mag); outline: none; }
.form .note { font-size: 0.85rem; color: var(--muted); }

/* piè di pagina */
.foot { background: var(--grey); padding-block: 2.2rem; color: var(--muted); font-size: 0.85rem; }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 3rem; align-items: start; }
.foot img { width: 200px; }
.foot .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.foot h4 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.5rem; }
.foot a { color: var(--text2); text-decoration: none; }
.foot a:hover { color: var(--mag); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid #ddd8da; padding-top: 1rem; line-height: 1.5; }
@media (max-width: 900px) { .foot-in { grid-template-columns: minmax(0, 1fr); } .foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .foot .cols { grid-template-columns: minmax(0, 1fr); } }

/* varie */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero h1 .l1 { color: var(--pink); }
.hero h1 .l2 { font-weight: 500; opacity: 0.62; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 40rem; }
.hero-in { display: flex; flex-direction: column; gap: 1.6rem; position: relative; }
.iso { display: flex; align-items: center; gap: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.3); padding-top: 1.2rem; margin-top: 1.6rem; font-weight: 500; }
.pathcard { background: var(--tint); padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.pathcard ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.pathcard li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; }
.pathcard li .badge { width: 26px; height: 26px; font-size: 0.85rem; margin-top: 0.1rem; }
.sector { display: flex; flex-direction: column; gap: 0.6rem; border-top: 1.5px solid var(--ink); padding-top: 0.9rem; min-width: 0; }
.sector p { font-size: 0.95rem; color: var(--text2); }
.sector .links { display: flex; gap: 1rem; font-size: 0.88rem; font-weight: 600; flex-wrap: wrap; }
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; align-items: start; }
.logos img { max-height: 34px; width: auto; }
.logos p { font-size: 0.88rem; color: var(--text2); margin-top: 0.5rem; }
.logos a.lg { display: block; height: 36px; }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.reason { display: grid; grid-template-columns: 2.8rem 1fr; gap: 0.7rem; border-top: 1.5px solid var(--ink); padding-top: 0.8rem; min-width: 0; }
.reason .num { font-size: 1.5rem; line-height: 1; }
.reason p { font-size: 0.95rem; color: var(--text2); margin-top: 0.25rem; }
.callout { background: var(--tint); padding: 1rem 1.4rem; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; }
.callout .num { font-size: 2rem; }
.band-mag .callout, .band-ink .callout { background: rgba(255, 255, 255, 0.08); }
.fifty { background: var(--mag); color: var(--white); padding: 1.6rem 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; position: relative; overflow: hidden; }
.fifty .num { font-size: clamp(4rem, 8vw, 5.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 0.9; }
.fifty p { font-size: 0.92rem; opacity: 0.95; }
.hero-page { padding-block: clamp(2.4rem, 5vw, 3.8rem); }
.hero-page h1 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.06; max-width: 24ch; }
