/* Sito pubblico Trading & Tours — Concept A "Cinematic Authority" */
:root {
  --ink: #16191c;
  --anthracite: #1d2023;
  --anthracite-2: #2a2e32;
  --gold: #c69c6d;
  --gold-dark: #a87d4f;
  --gold-light: #d9b896;
  --sand: #f3efe9;
  --sand-2: #ece4d8;
  --line: #e2dbd0;
  --white: #fff;
  --text: #1d2023;
  --muted: #6f6a63;
  --danger: #b0412e;
  --ok: #2f7a4f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Helvetica Neue", Arial, system-ui, sans-serif;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(22, 25, 28, .10);
  --container: 1180px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(36px, 5.4vw, 64px); }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
button { font: inherit; }
.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--white); color: var(--ink); padding: 10px 14px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.kicker { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 18px; }
.section--dark .kicker, .hero .kicker, .aside-card--dark .kicker { color: var(--gold); }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 28px; border: 1px solid transparent; border-radius: var(--radius); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn--small { padding: 11px 20px; font-size: 12px; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-light); }
.btn--dark { background: var(--anthracite); color: var(--white); }
.btn--dark:hover { background: var(--ink); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { border-color: var(--white); }
.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }
.link-arrow { display: inline-block; color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.link-arrow:hover { color: var(--gold-light); }
.link-arrow--dark { color: var(--gold-dark); }
.link-arrow--dark:hover { color: var(--ink); }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 28px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--anthracite); color: var(--white); }
.site--home .header { position: absolute; left: 0; right: 0; background: linear-gradient(rgba(22,25,28,.75), rgba(22,25,28,0)); }
.header.is-scrolled, .site--home .header.is-scrolled { position: fixed; background: rgba(29,32,35,.97); box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1320px, 100% - 48px); margin-inline: auto; height: var(--header-h); }
.header__logo img { width: 96px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__list a { color: var(--white); text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav__list a:hover, .nav__list a[aria-current] { border-bottom-color: var(--gold); }
.nav__lang { color: var(--gold-light); text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .14em; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 5px 11px; }
.nav__lang:hover { border-color: var(--gold); }
.header__toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.header__toggle-bar, .header__toggle-bar::before, .header__toggle-bar::after { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--white); content: ""; transition: transform .2s; }
.header__toggle-bar { top: 21px; }
.header__toggle-bar::before { left: 0; right: 0; top: -7px; }
.header__toggle-bar::after { left: 0; right: 0; top: 7px; }
.header.is-open .header__toggle-bar { background: transparent; }
.header.is-open .header__toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.header.is-open .header__toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--anthracite); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media picture, .hero__img { width: 100%; height: 100%; }
.hero__img { object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,25,28,.92) 0%, rgba(22,25,28,.65) 45%, rgba(22,25,28,.25) 100%); }
.hero__content { position: relative; padding: 110px 0 100px; }
.hero h1 { max-width: 15ch; }
.hero__lead { max-width: 560px; font-size: 19px; color: rgba(255,255,255,.85); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 34px; }
.hero--home .hero__content { min-height: min(92vh, 860px); display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 60px) 0 90px; }
.hero--plain { background: radial-gradient(ellipse at 80% 0%, #2f3337, var(--anthracite) 60%); }
.hero--plain .hero__content { padding: 80px 0 70px; }
.hero--plain h1 { max-width: 22ch; font-size: clamp(34px, 4.4vw, 54px); }

/* Breadcrumb e avvisi */
main { position: relative; }
.breadcrumbs { position: absolute; z-index: 2; top: 0; left: 0; right: 0; font-size: 13px; color: rgba(255,255,255,.55); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs a { color: rgba(255,255,255,.7); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-light); }
.flash { padding: 14px 18px; border-radius: var(--radius); background: #e3f1e8; color: var(--ok); font-size: 15px; margin-bottom: 24px; }
.flash--error { background: #f8e6e2; color: var(--danger); }

/* Numeri chiave */
.stats { background: var(--ink); color: var(--white); border-top: 1px solid rgba(255,255,255,.06); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stats__grid > div { padding: 30px 28px; border-left: 1px solid rgba(255,255,255,.12); }
.stats__grid > div:first-child { border-left: 0; padding-left: 0; }
.stats strong { display: block; font-family: var(--serif); font-size: clamp(18px, 2vw, 24px); font-weight: 500; color: var(--gold-light); text-transform: uppercase; letter-spacing: .03em; line-height: 1.3; }
.stats span { font-size: 14px; color: rgba(255,255,255,.7); }

/* Sezioni */
.section { padding: 96px 0; }
.section--sand { background: var(--sand); }
.section--light { background: #f8f6f2; }
.section--dark { background: var(--anthracite); color: var(--white); }
.section__lead { max-width: 640px; color: rgba(255,255,255,.75); }
.section__lead--dark { color: var(--muted); margin-bottom: 36px; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.intro { max-width: 760px; margin-bottom: 48px; }
.intro h2 { margin-bottom: 18px; }
.intro p { color: var(--muted); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.split--top { align-items: start; grid-template-columns: 1.6fr 1fr; }

/* Card servizi */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card { display: block; background: var(--white); padding: 34px 30px; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(22,25,28,.14); }
.card__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-light); color: var(--ink); margin-bottom: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card__more { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }

/* Credits */
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 40px 0 34px; }
.chips li { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 72px; padding: 16px; border: 1px solid rgba(255,255,255,.28); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.chips li span { font-weight: 400; color: rgba(255,255,255,.6); font-size: 11px; margin-top: 4px; }
.chips__logo { max-height: 48px; width: auto; filter: grayscale(1) brightness(1.6); }
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.case { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.case__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.case__body { padding: 30px; }
.case dl { margin: 0; }
.case dt { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin-top: 16px; }
.case dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-bottom: 32px; }
.quote { margin: 0; padding: 34px; background: var(--sand); border-left: 3px solid var(--gold); }
.quote blockquote { margin: 0 0 18px; font-family: var(--serif); font-size: 20px; line-height: 1.5; }
.quote figcaption { font-size: 14px; }
.quote figcaption span { color: var(--muted); }

/* Anteprima area partner */
.partner-visual {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 16 / 11; min-height: 240px; color: var(--white); text-decoration: none;
  box-shadow: 0 24px 60px rgba(22,25,28,.18);
}
.partner-visual picture,
.partner-visual > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.partner-visual__img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  display: block; transition: transform .55s ease;
}
.partner-visual::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(22,25,28,.08) 35%, rgba(22,25,28,.78) 100%);
  pointer-events: none;
}
.partner-visual__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 28px 26px; display: grid; gap: 8px;
}
.partner-visual__kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light);
}
.partner-visual__title {
  font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; letter-spacing: -.01em; line-height: 1.2;
}
.partner-visual:hover .partner-visual__img { transform: scale(1.04); }
.partner-visual:focus-visible { outline-offset: 4px; }

/* Servizi */
.service-list { display: grid; gap: 34px; margin-top: 56px; }
.service-row { display: grid; grid-template-columns: 1fr 1.2fr; background: var(--sand); color: var(--text); text-decoration: none; border-radius: var(--radius); overflow: hidden; }
.service-row:nth-child(even) .service-row__media { order: 2; }
.service-row__media picture, .service-row__img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.service-row__body { padding: 48px; align-self: center; }
.service-row:hover h2 { color: var(--gold-dark); }

/* Testi lunghi */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; }
.prose figure { margin: 0 0 1.4em; }
.prose img { display: block; max-width: 100%; height: auto; border-radius: 12px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--gold); }
.prose--page { font-size: 18px; }
.article__img { margin-bottom: 36px; border-radius: var(--radius); }
.aside-card { background: var(--sand); padding: 36px; border-radius: var(--radius); position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.aside-card p { margin: 0; }
.aside-card--dark { background: var(--anthracite); color: var(--white); }
.aside-card--dark a { color: var(--gold-light); }
.aside-card--dark h3 { margin: 0; font-size: 20px; }
.aside-card--dark .btn--gold { color: var(--ink); }
.muted-light { color: rgba(255,255,255,.6); font-size: 14px; }

/* Mappa contatti */
.contact-map {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: stretch;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 18px 40px rgba(22,25,28,.08);
}
.contact-map__frame { position: relative; min-height: 360px; background: var(--sand-2); overflow: hidden; }
.contact-map__frame iframe {
  position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); border: 0; display: block;
  /* Palette sito: antracite / sabbia / oro al posto dei colori vivaci OSM */
  filter: grayscale(1) sepia(.38) contrast(1.08) brightness(1.04) saturate(.55);
}
.contact-map__frame::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(29,32,35,.08), transparent 28%, transparent 70%, rgba(29,32,35,.14)),
    rgba(243, 239, 233, .18);
  mix-blend-mode: multiply;
}
.contact-map__pin {
  position: absolute; left: 50%; top: 48%; z-index: 2; transform: translate(-50%, -100%);
  filter: drop-shadow(0 8px 14px rgba(22,25,28,.28));
  pointer-events: none;
}
.contact-map__card {
  padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.contact-map__card .kicker { margin-bottom: 4px; }
.contact-map__card h3 { margin: 0; font-size: 26px; }
.contact-map__card p { margin: 0; color: var(--muted); }
.contact-map__card .button-row { margin-top: 12px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.facts strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.steps li::marker { color: var(--gold); font-weight: 700; }

/* Insights */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.post a { display: block; height: 100%; background: var(--white); color: var(--text); text-decoration: none; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post__img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post__body { padding: 26px 28px 30px; }
.post__date { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.post p { color: var(--muted); font-size: 15px; }
.post a:hover h3 { color: var(--gold-dark); }

/* Moduli */
.form fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.form legend { font-family: var(--serif); font-size: 22px; margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-bottom: 22px; }
.span-2 { grid-column: span 2; }
.field label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; font: inherit; font-size: 16px; color: var(--text); background: var(--white); border: 1px solid #cfc6b8; border-radius: var(--radius); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(198,156,109,.25); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.field-error { font-size: 13px; color: var(--danger); margin: 6px 0 0; font-weight: 700; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--gold-dark); flex-shrink: 0; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-actions p { margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { background: var(--sand); border-left: 3px solid var(--gold); padding: 36px; }

/* Invito finale */
.cta { background: var(--gold-light); }
.cta__inner { padding: 72px 0; text-align: center; }
.cta__inner p { max-width: 560px; margin: 0 auto 28px; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.72); font-size: 15px; }
.footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer a:hover { color: var(--gold-light); }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 48px; padding: 72px 0 48px; align-items: start; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.footer__logo { width: 120px; height: auto; margin: 0 0 14px; display: block; }
.footer__tagline { margin: 0 0 22px; max-width: 28ch; line-height: 1.45; }
.footer__badges {
  display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap;
  width: 100%;
}

/* Accreditamento IATAN */
.iatan-badge {
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 0;
  border-radius: var(--radius); overflow: hidden;
  background: var(--white);
  box-shadow: 0 6px 16px rgba(22,25,28,.08);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.iatan-badge:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(22,25,28,.12); }
.iatan-badge img { display: block; width: 88px; height: auto; }
.iatan-badge--footer {
  flex: 0 0 auto;
  height: 68px; width: 68px;
  padding: 6px;
  margin: 0;
  box-shadow: none;
  border: 1px solid rgba(255,255,255,.14);
  background: #fff;
}
.iatan-badge--footer:hover { box-shadow: none; border-color: rgba(255,255,255,.35); transform: none; }
.iatan-badge--footer img { width: 100%; height: 100%; object-fit: contain; }
.iatan-badge--contact img { width: 96px; }
.contact-accreditation {
  display: grid; gap: 10px; margin-top: 8px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12); width: 100%;
}

/* Download company profile */
.profile-dl {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 4px;
  padding: 12px 16px 12px 12px; max-width: 100%;
  background: var(--white); color: var(--text); text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(22,25,28,.06);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.profile-dl:hover {
  transform: translateY(-2px); border-color: var(--gold);
  box-shadow: 0 14px 28px rgba(22,25,28,.1); color: var(--text);
}
.profile-dl__icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: var(--radius);
  display: grid; place-items: center;
  background: var(--gold-light); color: var(--ink);
}
.profile-dl__text { display: grid; gap: 2px; min-width: 0; }
.profile-dl__label {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.profile-dl__meta { font-size: 13px; color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 500; }
.profile-dl--footer {
  flex: 1 1 auto;
  margin: 0; min-height: 68px; box-sizing: border-box;
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.14); color: var(--white);
  box-shadow: none;
}
.profile-dl--footer:hover {
  border-color: var(--gold); color: var(--white);
  background: rgba(198,156,109,.12); box-shadow: none;
  transform: none;
}
.profile-dl--footer .profile-dl__icon { background: rgba(198,156,109,.22); color: var(--gold-light); }
.profile-dl--footer .profile-dl__meta { color: rgba(255,255,255,.55); }
.footer__links ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.footer__links li { margin-bottom: 10px; break-inside: avoid; }
.footer__title { color: var(--white); font-weight: 700; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 0 30px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
@media (max-width: 1400px) {
  .footer__bottom { padding-right: 72px; }
}
.footer__bottom p { margin: 0; }
.footer__lock { display: inline-flex; align-items: center; margin-left: 10px; color: rgba(255,255,255,.28) !important; vertical-align: middle; }
.footer__lock:hover { color: var(--gold) !important; }
.footer .link { color: rgba(255,255,255,.85); font-size: 13px; text-decoration: none; }
.footer .link:hover { color: var(--gold-light); }

/* Torna su */
.to-top {
  position: fixed; z-index: 90; right: 22px; bottom: 22px;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--anthracite); color: var(--white);
  box-shadow: 0 12px 28px rgba(22,25,28,.28);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s;
}
.to-top:not([hidden]) { opacity: 1; visibility: visible; transform: none; }
.to-top[hidden] { display: grid; pointer-events: none; }
.to-top:hover { background: var(--ink); color: var(--gold-light); }
.to-top:focus-visible { outline-offset: 3px; }

/* Popup homepage */
.home-popup { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; }
.home-popup[hidden] { display: none; }
.home-popup__backdrop { position: absolute; inset: 0; background: rgba(22, 25, 28, .72); }
.home-popup__dialog {
  position: relative; z-index: 1; width: min(520px, 100%);
  background: var(--white); color: var(--ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
  overflow: hidden;
  animation: home-popup-in .35s ease;
}
.home-popup__close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(22, 25, 28, .72); color: var(--white);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.home-popup__close:hover { background: var(--ink); }
.home-popup__media { aspect-ratio: 16 / 9; background: var(--anthracite); overflow: hidden; }
.home-popup__img { width: 100%; height: 100%; object-fit: cover; }
.home-popup__body { padding: 28px 28px 32px; text-align: center; }
.home-popup__text { margin: 0 0 22px; font-family: var(--serif); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35; }
.home-popup__body .btn { min-width: 180px; }
body.home-popup-open { overflow: hidden; }
@keyframes home-popup-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .home-popup__dialog { animation: none; }
}

/* Banner cookie */
.cookie { position: fixed; z-index: 100; left: 20px; right: 20px; bottom: 20px; max-width: 760px; margin-inline: auto; background: var(--anthracite); color: var(--white); padding: 22px 24px; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.4); display: flex; gap: 20px; align-items: center; font-size: 14px; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { color: var(--gold-light); }
.cookie__actions { display: flex; gap: 10px; flex-shrink: 0; }

@media (max-width: 1080px) {
  .nav__list { gap: 18px; }
  .nav__list a { font-size: 12px; letter-spacing: .1em; }
}
@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .header__toggle { display: block; }
  .header__logo img { width: 80px; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--anthracite); flex-direction: column; align-items: flex-start; gap: 26px; padding: 32px 24px; transform: translateX(100%); transition: transform .25s; overflow-y: auto; }
  .header.is-open .nav { transform: none; }
  .header.is-open { background: var(--anthracite); }
  .nav__list { flex-direction: column; gap: 4px; width: 100%; }
  .nav__list a { display: block; font-size: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .split, .split--top { grid-template-columns: 1fr; gap: 40px; }
  .aside-card { position: static; }
  .contact-map { grid-template-columns: 1fr; }
  .contact-map__frame { min-height: 300px; }
  .cards, .cards--2 { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-row__media { order: 0; }
  .service-row__media picture, .service-row__img { min-height: 220px; }
  .service-row__body { padding: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 36px); }
  .section { padding: 64px 0; }
  .hero__content { padding: 72px 0 64px; }
  .hero--home .hero__content { min-height: 88vh; padding-bottom: 60px; }
  .hero__lead { font-size: 17px; }
  .stats__grid { grid-template-columns: 1fr; }
  .stats__grid > div { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; }
  .stats__grid > div:first-child { border-top: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__brand { grid-column: auto; }
  .cookie { flex-direction: column; align-items: stretch; left: 12px; right: 12px; bottom: 12px; }
  .cookie__actions .btn { flex: 1; }
  .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}
/* Cataloghi pubblici */
.page-hero--plain { padding: 72px 0 28px; background: linear-gradient(180deg, #ece4d8 0%, var(--sand) 100%); }
.page-hero--plain .lead { max-width: 40rem; color: var(--muted); font-size: 18px; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.catalog-card {
  background: var(--white); border-radius: 8px; padding: 28px 26px; box-shadow: 0 10px 30px rgba(22,25,28,.06);
  display: flex; flex-direction: column; gap: 12px;
}
.catalog-card h2 { margin: 0; font-size: 22px; }
.catalog-card p { margin: 0; color: var(--muted); font-size: 15px; }
.catalog-card__meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark); }
.catalog-card .btn { align-self: flex-start; margin-top: auto; }

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