:root {
  --navy: #063d71;
  --navy-900: #04284b;
  --navy-50: #eef3f9;
  --red: #e4022c;
  --red-700: #b80024;
  --ink: #12202f;
  --muted: #5a6877;
  --line: #dde4ec;
  --bg: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(6 61 113 / .06), 0 8px 24px -8px rgb(6 61 113 / .18);
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;
  --wrap: 1140px;
  --header-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font: 400 1.0625rem/1.65 var(--font-body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: .18em; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; color: var(--navy); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(2.75rem, 6vw, 4.75rem); }
.section.tint { background: var(--navy-50); }
.eyebrow { font: 600 .85rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: .9rem; display: block; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

.btn { display: inline-flex; align-items: center; gap: .5rem; font: 600 .95rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: .95rem 1.5rem; border-radius: 999px; background: var(--red); color: #fff; border: 2px solid var(--red); transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: var(--red-700); border-color: var(--red-700); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }
.btn.light { background: transparent; color: #fff; border-color: #fff; }
.btn.light:hover { background: #fff; color: var(--navy); }
.link-arrow { font-weight: 600; text-decoration: none; letter-spacing: .04em; }
.link-arrow::after { content: ' →'; transition: margin .2s; }
.link-arrow:hover::after { margin-left: .3rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; height: var(--header-h); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: #fff; }
.brand img { height: 52px; width: auto; }
.brand span { font: 700 1.25rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.brand:hover { color: #fff; }
.nav { display: flex; gap: .25rem; align-items: center; }
.nav > li { position: relative; list-style: none; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { color: #fff; text-decoration: none; font: 600 .92rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; padding: .9rem .85rem; display: block; border-radius: 8px; }
.nav > li > a:hover, .nav > li:focus-within > a { background: rgb(255 255 255 / .1); color: #fff; }
.nav [aria-current='page'] { box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav .cta { margin-left: .75rem; }
.nav .cta a { background: var(--red); border-radius: 8px; padding: .8rem 1.1rem; }
.nav .cta a:hover { background: var(--red-700); }
.sub { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.nav li:hover > .sub, .nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { color: var(--navy); text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 500; padding: .65rem .85rem; }
.sub a:hover { background: var(--navy-50); color: var(--red); }
.menu-toggle { display: none; background: none; border: 0; color: #fff; width: 44px; height: 44px; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 24px; height: 2px; background: #fff; position: relative; transition: .2s; margin: auto; }
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; } .menu-toggle span::after { top: 7px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 2rem; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; gap: 0; }
  .menu-open .nav { transform: none; visibility: visible; }
  .menu-open { overflow: hidden; }
  .nav .cta { margin: 1.5rem 0 0; }
  .nav .cta a { text-align: center; border-bottom: 0; padding: 1rem; }
  .nav a { font-size: 1.15rem; padding: 1rem .5rem; border-bottom: 1px solid rgb(255 255 255 / .12); border-radius: 0; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; box-shadow: none; padding: 0 0 .5rem 1rem; }
  .sub a { color: rgb(255 255 255 / .8); border: 0; padding: .5rem; font-size: 1rem; }
  .sub a:hover { background: transparent; color: #fff; }
}

/* footer */
.site-footer { background: var(--navy); color: #fff; padding-block: 4.5rem 4rem; font-size: .92rem; line-height: 1.7; }
.footer-in { display: flex; justify-content: space-between; gap: 2.5rem 4rem; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.f-left, .f-right { display: grid; gap: .9rem; align-content: start; }
.f-right { justify-items: end; text-align: right; }
.f-t { margin: 0; color: rgb(255 255 255 / .75); }
.site-footer address { font-style: normal; color: rgb(255 255 255 / .78); }
.site-footer p { margin: 0; }
.f-link { color: #ff8da0; font-weight: 500; letter-spacing: .02em; }
.f-link:hover { color: #fff; }
.f-right .f-link { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .04em; margin-bottom: .6rem; }
.btn.sm { padding: .55rem 1.1rem; font-size: .85rem; border-radius: 8px; margin-bottom: .6rem; }
.social { list-style: none; margin: .3rem 0 0; padding: 0; display: flex; gap: .7rem; }
.social a { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--red); color: #fff; transition: background .2s, transform .2s; }
.social a:hover { background: var(--red-700); transform: translateY(-2px); color: #fff; }
@media (max-width: 640px) { .f-right { justify-items: start; text-align: left; } }

/* card news */
.cards { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-4px); color: inherit; box-shadow: 0 2px 4px rgb(6 61 113 / .08), 0 16px 32px -10px rgb(6 61 113 / .28); }
.card-img { aspect-ratio: 16/10; background: var(--navy-900); overflow: hidden; position: relative; flex: none; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-img.contain::before { content: ''; position: absolute; inset: -24px; background: var(--bg) center / cover; filter: blur(18px) brightness(.7) saturate(1.1); }
.card-img.contain img { object-fit: contain; object-position: center; }
.card:hover .card-img.contain img { transform: none; }
.card-img.placeholder img { width: 64px; height: auto; object-fit: contain; opacity: .9; }
.card-body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card-date { font: 600 .8rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.card h3 { font-size: 1.45rem; margin: 0; line-height: 1.12; text-transform: none; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.36em; }
.card p { color: var(--muted); font-size: .98rem; line-height: 1.55; margin: 0; text-transform: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.card.nocover { border-top: 4px solid var(--red); }
.card.nocover h3 { font-size: 1.65rem; min-height: 0; -webkit-line-clamp: 4; }
.card.nocover p { -webkit-line-clamp: 5; }
.card .more { margin-top: auto; padding-top: .6rem; color: var(--red); font-weight: 600; font-size: .92rem; letter-spacing: .04em; }

/* page hero */
.page-hero { background: linear-gradient(120deg, var(--navy-900), var(--navy)); color: #fff; padding-block: clamp(3rem, 7vw, 5rem); position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero .eyebrow { color: #ff8da0; }
.page-hero::after { content: ''; position: absolute; right: -80px; top: -40px; bottom: -40px; width: 340px; background: var(--red); transform: skewX(-18deg); opacity: .9; }
.page-hero .wrap { position: relative; z-index: 1; }
@media (max-width: 700px) { .page-hero::after { width: 120px; right: -50px; } }

/* prose (articoli e pagine di testo) */
.prose { max-width: 720px; margin-inline: auto; }
.prose h2 { margin-top: 2.2em; font-size: 2rem; } .prose h3 { margin-top: 1.8em; }
.prose img { border-radius: 10px; margin-block: 1.8rem; }
.prose a { color: var(--red); } .prose a:hover { color: var(--red-700); }
.prose blockquote { margin: 1.8rem 0; padding: .5rem 0 .5rem 1.4rem; border-left: 4px solid var(--red); color: var(--navy); font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3rem; } .prose li { margin-bottom: .4em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .75rem; text-align: left; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* componenti condivisi */
.stack > * + * { margin-top: 1rem; }
.people { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.people.rosa { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .people.rosa { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .people.rosa { grid-template-columns: repeat(2, 1fr); } }
.people.cols3 { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 720px) { .people.rosa { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .people.rosa { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .people.rosa { grid-template-columns: repeat(2, 1fr); } }
.people.cols3 { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (max-width: 600px) { .people { grid-template-columns: repeat(2, 1fr); gap: 1rem; } .person-body { padding: .8rem .8rem 1rem; } .person h3 { font-size: 1.1rem; } }
.person { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.person-img { background: linear-gradient(160deg, var(--navy), var(--navy-900)); display: grid; place-items: center; overflow: hidden; }
.person-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.person-img .crest { width: 38%; height: auto; object-fit: contain; opacity: .9; }
.person-body { padding: 1rem 1.1rem 1.25rem; }
.person h3 { font-size: 1.3rem; margin: 0 0 .2rem; text-transform: none; line-height: 1.1; }
.person .role { color: var(--red); font: 600 .78rem/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.person .det { color: var(--muted); font-size: .88rem; margin: .5rem 0 0; line-height: 1.45; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .98rem; }
.data-table th { background: var(--navy); color: #fff; text-align: left; font: 600 .8rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; padding: 1rem 1.1rem; }
.data-table td { padding: .8rem 1.1rem; border-top: 1px solid var(--line); vertical-align: top; }
.data-table tr:hover td { background: var(--navy-50); }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }
.table-scroll .data-table { min-width: 560px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.chip { padding: .55rem 1.1rem; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--navy); }
.chip:hover { border-color: var(--red); color: var(--red); }

/* ===================== componenti (portati da Astro, con selettori espliciti) ===================== */
.embed { margin: 2rem 0; border-radius: 12px; overflow: hidden; background: #eef1f6; }
.embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.embed.widget iframe { height: 480px; }
.embed.yt { aspect-ratio: 16 / 9; } .embed.maps { aspect-ratio: 16 / 10; }

/* carosello albo d'oro */
.carousel { overflow-x: auto; overflow-y: hidden; cursor: grab; user-select: none; -webkit-user-select: none; scrollbar-width: none; -webkit-tap-highlight-color: transparent; border-radius: var(--radius); }
.carousel::-webkit-scrollbar { display: none; }
.carousel.grabbing { cursor: grabbing; }
.carousel:focus-visible { outline-offset: 6px; }
.carousel .track { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; width: max-content; }
.carousel .track li { flex: 0 0 200px; display: grid; gap: .8rem; align-content: start; color: rgb(255 255 255 / .85); font-size: .92rem; line-height: 1.35; }
.carousel img { width: 100%; height: auto; aspect-ratio: 212 / 300; object-fit: cover; border-radius: 10px; background: #fff; pointer-events: none; -webkit-user-drag: none; }

/* magazine */
.mag-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.25rem 1.75rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); align-items: start; }
.mag-item { all: unset; cursor: zoom-in; display: grid; gap: .7rem; width: 100%; color: var(--muted); font-weight: 500; }
.mag-item:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; border-radius: var(--radius); }
.mag-cover { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--navy-50); transition: transform .25s, box-shadow .25s; }
.mag-item:hover .mag-cover { transform: translateY(-4px); box-shadow: 0 2px 4px rgb(6 61 113 / .08), 0 16px 32px -10px rgb(6 61 113 / .28); }
.mag-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mag-badge { position: absolute; right: .6rem; bottom: .6rem; background: rgb(4 40 75 / .88); color: #fff; font: 600 .78rem/1 var(--font-body); padding: .4rem .7rem; border-radius: 999px; }
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(6 12 22 / .97); color: #fff; overflow: hidden; }
.viewer[open] { display: grid; grid-template-rows: auto 1fr; }
.viewer::backdrop { background: #000; }
.v-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; }
.v-info { margin: 0; font-size: .95rem; color: rgb(255 255 255 / .8); } .v-info b { color: #fff; }
.v-actions { display: flex; gap: .5rem; flex: none; }
.v-btn { font: 600 .9rem/1 var(--font-body); color: #fff; background: rgb(255 255 255 / .12); border: 0; border-radius: 999px; padding: .7rem 1.1rem; cursor: pointer; min-height: 2.75rem; }
.v-btn:hover { background: rgb(255 255 255 / .22); }
.v-stage { overflow: auto; display: grid; place-items: center; min-height: 0; padding: 0 3.5rem 1rem; }
.v-stage img { display: block; max-width: 100%; max-height: calc(100dvh - 5.5rem); width: auto; height: auto; cursor: zoom-in; border-radius: 4px; box-shadow: 0 10px 50px rgb(0 0 0 / .5); }
.v-stage.zoom { place-items: start center; }
.v-stage.zoom img { max-width: none; max-height: none; width: min(1500px, max(100%, 900px)); cursor: zoom-out; }
.v-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: rgb(255 255 255 / .14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: .25rem; }
.v-nav:hover { background: rgb(255 255 255 / .28); }
.v-nav.prev { left: .6rem; } .v-nav.next { right: .6rem; }
.viewer.single .v-nav { display: none; }
@media (max-width: 640px) { .v-stage { padding: 0 .5rem .75rem; } .v-nav { width: 2.6rem; height: 2.6rem; } .v-info { font-size: .85rem; } }

/* articolo in evidenza */
.feat { display: grid; grid-template-columns: 1.25fr 1fr; background: var(--navy); color: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); margin-bottom: 2.5rem; transition: transform .25s; }
.feat:hover { transform: translateY(-3px); color: #fff; }
.feat-img { position: relative; min-height: 340px; overflow: hidden; background: var(--navy-900); }
.feat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat-img.contain::before { content: ''; position: absolute; inset: -30px; background: var(--bg) center / cover; filter: blur(26px) brightness(.8); }
.feat-img.contain img { object-fit: contain; }
.feat-body { padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; gap: .8rem; }
.feat:not(:has(.feat-img)) { grid-template-columns: 1fr; }
.feat .card-date { color: #ff8da0; }
.feat h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); text-transform: none; letter-spacing: 0; margin: 0; }
.feat p { margin: 0; opacity: .85; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.feat .more { font-weight: 600; letter-spacing: .04em; color: #ff8da0; }
@media (max-width: 800px) { .feat { grid-template-columns: 1fr; } .feat-img { min-height: 240px; } }

/* filtri news e ricerca */
.filters { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
.search input { width: 100%; font: inherit; padding: .95rem 1.2rem .95rem 3rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23063d71' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 1.1rem center; }
.search input:focus { outline: 3px solid color-mix(in srgb, var(--red) 35%, transparent); border-color: var(--red); }
.years { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.chip { flex: none; padding: .5rem 1rem; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--navy); }
.chip small { color: var(--muted); font-weight: 500; margin-left: .15rem; }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; } .chip.on small { color: rgb(255 255 255 / .7); }
#risultati .n { color: var(--muted); font-weight: 500; }
#risultati ul { list-style: none; margin: 0; padding: 0; display: grid; }
#risultati li a { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 1rem .5rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); align-items: baseline; }
#risultati li a:hover { background: var(--navy-50); } #risultati li a:hover b { color: var(--red); }
#risultati time { color: var(--red); font: 600 .8rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
#risultati b { font: 600 1.1rem/1.3 var(--font-body); color: var(--navy); }
@media (max-width: 600px) { #risultati li a { grid-template-columns: 1fr; gap: .3rem; } }

/* paginazione */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3.5rem; flex-wrap: wrap; }
.pager ol { list-style: none; display: flex; gap: .35rem; margin: 0; padding: 0; }
.pg { display: grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding-inline: .8rem; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--navy); border: 1.5px solid transparent; }
a.pg:hover { border-color: var(--navy); }
.pg.on { background: var(--navy); color: #fff; }
.pg.arrow { border-color: var(--line); } .pg.arrow.off { opacity: .35; }
.pager .gap { display: grid; place-items: center; min-width: 1.5rem; height: 2.5rem; color: var(--muted); }
@media (max-width: 720px) { .pager ol { order: 3; width: 100%; justify-content: center; } .pager { justify-content: space-between; } }

/* intestazione squadra con foto */
.thero { position: relative; min-height: 400px; display: grid; place-items: center; text-align: center; background: var(--navy) center / cover no-repeat; color: #fff; isolation: isolate; }
.thero.basso { min-height: 220px; }
.thero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgb(4 40 75 / .35), rgb(4 40 75 / .78)); }
.thero h1 { color: #fff; margin: 0; font-size: clamp(2.6rem, 7vw, 4.5rem); text-shadow: 0 2px 14px rgb(0 0 0 / .35); }
.thero.basso h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.thero p { margin: .4rem 0 0; font: 700 clamp(1.3rem, 3vw, 1.9rem)/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: #ff9aab; text-shadow: 0 1px 8px rgb(0 0 0 / .4); }

/* widget Tuttocampo a schede */
.tablist { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.tablist button { font: 600 .95rem/1 var(--font-body); padding: .65rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
.tablist button:hover { border-color: var(--red); color: var(--red); }
.tablist button[aria-selected='true'] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tablist.big { margin-bottom: 1.8rem; }
.tablist.big button { font-size: 1.05rem; padding: .8rem 1.6rem; }
.tw-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 2.5rem; align-items: start; }
.tw-grid.solo { grid-template-columns: minmax(0, 560px); }
.tw-partite { display: grid; gap: 1.5rem; }
.tw h4 { font-size: 1rem; letter-spacing: .12em; color: var(--muted); margin: 0 0 .7rem; }
.tc { width: 100%; border: 0; display: block; background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
@media (max-width: 900px) { .tw-grid, .tw-grid.solo { grid-template-columns: minmax(0, 1fr); } .tw-partite { order: -1; } }
[hidden] { display: none !important; }

/* pagina articolo */
.art-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) 2rem; text-align: center; }
.narrow { max-width: 820px; }
.art-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .8rem; }
.art-head .eyebrow { text-decoration: none; }
.art-head time { color: var(--muted); font-weight: 500; letter-spacing: .04em; }
.cover { max-width: 960px; }
.cover-box { border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.cover-box img { display: block; width: 100%; height: auto; }
.cover-box.alta { display: grid; place-items: center; }
.cover-box.alta::before { content: ''; position: absolute; inset: -30px; background: var(--bg) center / cover; filter: blur(26px) brightness(.85); }
.cover-box.alta img { position: relative; width: auto; max-width: 100%; max-height: 640px; }
.tight { padding-block: 2.5rem 4.5rem; }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); max-width: 820px; margin-inline: auto; }
.adj { padding-block: 3rem; }

/* albo d'oro, trasparenza */
.tabella td { white-space: pre-line; }
.blocco { margin-top: 3.5rem; } .blocco:first-of-type { margin-top: 0; }
.blocco h2 { font-size: 2rem; } .blocco h2 small { display: block; font-size: 1.1rem; color: var(--red); letter-spacing: .08em; margin-top: .3rem; }
.pos.first { background: var(--red); color: #fff; padding: .2rem .6rem; border-radius: 6px; font-weight: 600; white-space: nowrap; }
.intro { margin-bottom: 2rem; font-size: 1.1rem; } .r { text-align: right; white-space: nowrap; }

/* chi siamo */
.mid { max-width: 960px; }
.gruppo { margin-top: 3rem; }
.gruppo h3 { font-size: 1.5rem; padding-bottom: .6rem; border-bottom: 2px solid var(--red); display: inline-block; margin-bottom: 1.5rem; }

/* contatti */
.contatti-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.sedi { padding-left: 1.2rem; margin: 0 0 1.5rem; display: grid; gap: .5rem; }
.tel { font: 700 2rem/1 var(--font-display); text-decoration: none; letter-spacing: .02em; }
.form { background: var(--navy-50); padding: 2rem; border-radius: var(--radius); display: grid; gap: 1rem; }
.form h2 { margin: 0; font-size: 2rem; }
.form label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .92rem; }
.form .required { color: var(--red); }
.form .form-label { margin: 0; }
.form .buttons, .form .button-wrapper { margin-top: .5rem; }
.form button[type=submit], .form .button { display: inline-flex; align-items: center; gap: .5rem; font: 600 .95rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: .95rem 1.8rem; border-radius: 999px; background: var(--red); color: #fff; border: 2px solid var(--red); cursor: pointer; transition: background .2s, transform .2s; }
.form button[type=submit]:hover, .form .button:hover { background: var(--red-700); border-color: var(--red-700); transform: translateY(-1px); }
.form .form-input-wrapper { display: block; }
.form input:not([type=submit]), .form textarea { font: inherit; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }
.form input:focus, .form textarea:focus { outline: 3px solid color-mix(in srgb, var(--red) 40%, transparent); border-color: var(--red); }
.form .btn { justify-self: start; cursor: pointer; }
.form .form-field { margin-bottom: 1rem; } .form .form-errors, .notices { color: var(--red-700); font-weight: 600; }
.notices.green { color: #1a7f37; }
@media (max-width: 800px) { .contatti-grid { grid-template-columns: 1fr; } }

/* impianti, partner, video */
.imp { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
@media (max-width: 800px) { .imp { grid-template-columns: 1fr; } }
.logos { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.logo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.5rem 1.5rem; display: grid; gap: 1.2rem; justify-items: center; align-content: space-between; text-decoration: none; color: var(--navy); font: 700 1.05rem/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .06em; text-align: center; transition: box-shadow .25s, transform .25s; }
a.logo:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.logo img { height: 110px; width: 100%; object-fit: contain; }
.vgrid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.vgrid h3 { text-transform: none; font-size: 1.5rem; } .vgrid .embed { margin: 0; }

/* home */
.hero { position: relative; color: #fff; background: linear-gradient(rgb(4 40 75 / .78), rgb(6 61 113 / .86)) , var(--navy) center / cover; min-height: min(78vh, 720px); display: grid; place-items: center; text-align: center; }
.hero-in { padding-block: 5rem; display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.hero .crest { filter: drop-shadow(0 10px 24px rgb(0 0 0 / .35)); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 8vw, 5.5rem); margin: 0; }
.mission { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.mission-sub { font: 600 1.15rem/1.3 var(--font-body); color: var(--red); margin: 0; }
.mission-text p { font-size: 1.1rem; } .mission-text strong, .mission-text b { color: var(--navy); }
@media (max-width: 800px) { .mission { grid-template-columns: 1fr; } }
.teams { display: grid; gap: 1.25rem; grid-template-columns: repeat(4, 1fr); }
.teams.index { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.team { position: relative; background: var(--navy) center / cover no-repeat; color: #fff; border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: .35rem; min-height: 240px; justify-content: end; text-decoration: none; overflow: hidden; isolation: isolate; box-shadow: inset 0 0 0 999px rgb(4 40 75 / 0); transition: transform .25s, box-shadow .35s; }
.teams.index .team { min-height: 320px; }
.team::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, transparent 40%, rgb(4 40 75 / .88)); }
.team:hover, .team:focus-visible { transform: translateY(-4px); color: #fff; box-shadow: inset 0 0 0 999px rgb(4 40 75 / .72); }
.team-sub { font: 600 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: #ff9aab; text-shadow: 0 1px 6px rgb(0 0 0 / .5); }
.team-name { font: 700 clamp(1.7rem, 3vw, 2.3rem)/1 var(--font-display); text-transform: uppercase; text-shadow: 0 2px 10px rgb(0 0 0 / .45); }
.team-desc, .team-go { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s, opacity .3s; }
.team-desc { font-size: .95rem; max-width: 36ch; }
.team-go { font-weight: 600; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.team:hover .team-desc, .team:focus-visible .team-desc { max-height: 8em; opacity: .92; margin-top: .3rem; }
.team:hover .team-go, .team:focus-visible .team-go { max-height: 3em; opacity: 1; margin-top: .2rem; }
@media (hover: none) { .team-desc, .team-go { max-height: none; opacity: 0; display: none; } }
.team.big { grid-column: span 2; grid-row: span 2; min-height: 420px; }
.team.big .team-name { font-size: clamp(2.4rem, 5vw, 3.6rem); }
@media (max-width: 900px) { .teams { grid-template-columns: repeat(2, 1fr); } .team.big { grid-column: span 2; grid-row: auto; min-height: 300px; } }
@media (max-width: 480px) { .teams { grid-template-columns: 1fr; } .team.big { grid-column: auto; } }
.albo { background: var(--navy-900); } .albo h2 { color: #fff; } .albo-cta { margin: 2rem 0 0; }

/* pagine squadra */
.news-sec .feat { margin-bottom: 0; } .news-sec .cards { margin-top: 2rem; }
.fascia { padding-block: 3rem; }
.fascia-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; max-width: 960px; }
.fascia-txt p { font-size: 1.08rem; }
.fascia-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 780px) { .fascia-in { grid-template-columns: 1fr; } }
.cta-box { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: start; }
.cta-box h3 { margin-bottom: .4rem; } .cta-box p { max-width: 520px; }
@media (max-width: 700px) { .cta-box { grid-template-columns: 1fr; } }

/* ===================== consenso contenuti di terzi, footer legale, installazione ===================== */
iframe[data-src]:not([src]) { display: none; }
.consenso { display: grid; gap: .9rem; align-content: center; justify-items: start; padding: 1.5rem; background: var(--navy-50); border: 1.5px dashed var(--line); border-radius: 12px; min-height: 220px; }
.consenso p { margin: 0; font-size: .95rem; }
.consenso .nota { font-size: .82rem; color: var(--muted); }
.consenso .azioni { display: flex; flex-wrap: wrap; gap: .6rem; }
.embed { position: relative; }
.embed .consenso { position: absolute; inset: 0; border: 0; border-radius: 0; overflow: auto; }
.embed.widget .consenso { position: static; }
.btn.sm.ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.sm.ghost:hover { background: var(--navy); color: #fff; }
button.btn { cursor: pointer; font-family: inherit; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgb(255 255 255 / .14); font-size: .85rem; }
.footer-legal a, .footer-legal button { color: rgb(255 255 255 / .72); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: none; }
.footer-legal a:hover, .footer-legal button:hover { color: #fff; text-decoration: underline; }
.footer-legal [hidden] { display: none !important; }
.form-nota { font-size: .85rem; color: var(--muted); margin: 0; }
dialog.pref { border: 0; border-radius: var(--radius); padding: 0; width: min(560px, calc(100vw - 2rem)); box-shadow: 0 20px 60px rgb(0 0 0 / .35); color: var(--ink); }
dialog.pref::backdrop { background: rgb(4 20 40 / .6); }
dialog.pref form { padding: 1.6rem; display: grid; gap: 1rem; }
dialog.pref h2 { font-size: 1.8rem; margin: 0; }
dialog.pref p { margin: 0; font-size: .95rem; }
dialog.pref label { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; }
dialog.pref label small { display: block; font-weight: 400; color: var(--muted); }
dialog.pref input[type=checkbox] { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--navy); }
dialog.pref .azioni { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
dialog.pref ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; font-size: .95rem; }
