/* Font self-hosted: nessuna chiamata a CDN esterni.
   Instrument Serif e il font display del Visual Identity V2 (pag. 4).
   Figtree sostituisce Stack Sans Headline finche non arrivano i file
   licenziati: si aggiunge il suo @font-face e --font-body lo prende da solo. */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Tipografia Visual Identity V2 (pag. 4) */
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Stack Sans Headline", "Figtree", system-ui, -apple-system, Arial, sans-serif;

  /* Palette Visual Identity V2 (Cooee x ARB SB, pag. 3) */
  --clarity-cream: #f9edda;
  --balance-sand: #f3e0bd;
  --action-orange: #de5f33;
  --impact-forest: #354a3d;
  --governance-green: #0c332d;

  /* Derivate dall'arancio: stato hover e tinta chiara per i fondi scuri.
     Entrambe tengono il contrasto AA dove sono usate. */
  --action-orange-strong: #a43d1c;
  --action-orange-tint: #f0a184;
  --governance-green-deep: #061a17;

  /* Componenti separate: servono a rgb(... / alpha) per ombre e velature. */
  --governance-green-rgb: 12 51 45;
  --impact-forest-rgb: 53 74 61;
  --action-orange-rgb: 222 95 51;
  --balance-sand-rgb: 243 224 189;

  /* Alias di ruolo: il resto del foglio continua a ragionare per funzione. */
  --green: var(--governance-green);
  --green-2: var(--impact-forest);
  --green-dark: var(--governance-green);
  --orange: var(--action-orange);
  --on-action-orange: var(--governance-green-deep);
  --cream: var(--balance-sand);
  --paper: var(--clarity-cream);
  --ink: var(--governance-green);
  --muted: #556b60;
  --line: #e0ceae;
  --white: #ffffff;

  --max: 1180px;
  --card-shadow: 0 8px 24px rgb(var(--governance-green-rgb) / 8%);
  --card-shadow-hover: 0 26px 56px rgb(var(--governance-green-rgb) / 16%);
  --card-motion: 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  column-gap: 28px;
  min-height: 70px;
  padding: 0 8vw;
  background: var(--white);
  box-shadow: 0 1px 0 rgb(var(--governance-green-rgb) / 8%);
}

.brand img {
  width: 160px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  height: 70px;
  font-size: 15px;
  font-weight: 700;
}

.nav-group {
  position: relative;
}

.nav-trigger,
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 70px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.nav-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 220ms ease;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.nav-panel {
  position: absolute;
  top: 100%;
  left: -22px;
  display: grid;
  min-width: 250px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 44px rgb(var(--governance-green-rgb) / 14%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.98);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-panel[hidden] {
  display: none !important;
}

.nav-panel a {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.25;
}

.nav-group:hover .nav-panel,
.nav-group:focus-within .nav-panel,
.nav-group.is-open .nav-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.nav-group:hover .nav-trigger::after,
.nav-group:focus-within .nav-trigger::after,
.nav-group.is-open .nav-trigger::after {
  transform: translateY(2px) rotate(225deg);
}

.nav-group.is-active .nav-trigger {
  color: var(--action-orange-strong);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 18px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 180ms ease;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

.nav-group.is-active .nav-trigger {
  box-shadow: inset 0 -2px 0 var(--orange);
}

.language {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 12px 22px;
  color: var(--on-action-orange);
  background: var(--orange);
  font-weight: 700;
  border: 0;
  transition: transform 180ms ease, background 180ms ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.32) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.button:hover::before {
  transform: translateX(120%);
}

.button:hover {
  color: var(--white);
  transform: translateY(-3px);
  background: var(--action-orange-strong);
}

.button-small {
  min-height: 44px;
  padding: 12px 26px;
}

.button-dark {
  color: var(--white);
  background: var(--green-dark);
}

.button-dark:hover {
  background: var(--governance-green-deep);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 7px auto;
  background: var(--green);
}

.hero {
  position: relative;
  min-height: 670px;
  overflow: hidden;
  color: var(--white);
}

.hero-compact {
  min-height: 355px;
}

.hero-text-only {
  background: var(--governance-green);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  filter: saturate(1.04) contrast(1.03);
}

.hero-overlay {
  background: linear-gradient(90deg, rgb(var(--governance-green-rgb) / 64%), rgb(var(--governance-green-rgb) / 18%));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), 82vw);
  margin: 0 auto;
  padding-top: 145px;
}

.hero h1 {
  max-width: 860px;
  margin-bottom: 34px;
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 124px);
  font-weight: 400;
  letter-spacing: 0;
}

.hero-home .hero-content {
  display: grid;
  justify-items: center;
  padding-top: 165px;
  text-align: center;
}

.hero-home h1 {
  max-width: 1080px;
}

.hero-content h1,
.hero-content .eyebrow,
.hero-content .button {
  opacity: 0;
  transform: translateY(28px);
  animation: hero-rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-content .eyebrow {
  animation-delay: 80ms;
}

.hero-content h1 {
  animation-delay: 160ms;
}

.hero-content .button {
  animation-delay: 330ms;
}

.hero-subtitle {
  max-width: 720px;
  margin-top: -18px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 42px);
}

.hero-compact .hero-content {
  padding-top: 125px;
}

.hero-compact h1 {
  font-size: clamp(62px, 7vw, 96px);
}

.hero-rating h1 {
  font-size: clamp(46px, 6vw, 82px);
}

.hero-rating h1 span {
  font-style: normal;
  font-size: 0.78em;
}

.section {
  width: min(var(--max), 86vw);
  margin: 0 auto;
  padding: 92px 0;
}

.why-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 58px;
  align-items: start;
}

.section-heading {
  padding-top: 0;
  text-align: center;
}

.section-heading h2,
.clients h2,
.levels h2 {
  color: var(--orange);
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 74px);
  font-weight: 400;
  letter-spacing: 0;
}

.feature-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(240px, auto);
  width: min(1100px, 100%);
  margin: 0 auto;
}

.feature-panel,
.info-panel,
.demo-panel {
  padding: 54px;
}

.feature-panel h3,
.info-panel h2,
.demo-panel h2 {
  margin-bottom: 22px;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
}

.feature-photo img,
.rating-block figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-large {
  grid-row: span 2;
}

.panel-light {
  background: var(--cream);
}

.panel-orange {
  color: var(--on-action-orange);
  background: var(--orange);
}

.panel-orange h3 {
  color: var(--white);
}

.panel-green {
  color: var(--white);
  background: var(--green-2);
}

.panel-tall {
  min-height: 380px;
}

.clients {
  text-align: center;
}

.clients h2 {
  margin-bottom: 62px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px 120px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto 34px;
}

.logo-grid img {
  max-height: 152px;
  width: min(100%, 230px);
  margin: 0 auto;
  object-fit: contain;
}

.text-link {
  display: inline-block;
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section-title-small {
  margin-bottom: 62px;
  color: var(--orange);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  text-transform: uppercase;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 34px;
}

.news-card {
  display: grid;
  grid-template-rows: 250px 1fr auto;
  background: var(--cream);
  overflow: hidden;
}

.news-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 650ms ease;
}

.news-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.12) contrast(1.04);
}

.news-card-body {
  padding: 32px;
}

.news-card h3 {
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 700;
}

.news-card a {
  font-weight: 700;
}

.news-card time {
  display: block;
  padding: 14px 32px;
  border-top: 1px solid rgb(var(--governance-green-rgb) / 18%);
  font-size: 12px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 58px;
  font-size: 22px;
  font-weight: 700;
}

.pagination .active {
  color: var(--orange);
}

.intro-two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  align-items: center;
}

.intro-two-col h2 {
  margin-bottom: 22px;
  color: var(--orange);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
}

.intro-two-col p {
  max-width: 680px;
  font-size: 20px;
}

.partner-logos {
  display: grid;
  justify-items: center;
  gap: 34px;
}

.partner-logos img:first-child {
  width: 220px;
}

.partner-logos img:last-child {
  width: 130px;
}

.rating-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  padding-top: 48px;
  padding-bottom: 48px;
}

.rating-block-reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.rating-block figure {
  min-height: 480px;
  margin: 0;
}

.accent-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.accent-list li {
  position: relative;
  padding-left: 20px;
}

.accent-list li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--orange);
}

.ordered-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding-left: 1.5em;
  text-align: left;
}

.ordered-list li {
  padding-left: 6px;
}

.ordered-list li::marker {
  color: var(--action-orange-strong);
  font-weight: 700;
}

.levels {
  text-align: center;
}

.levels h2 {
  margin-bottom: 28px;
}

.levels-copy {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.demo-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 42px;
}

.demo-panel {
  color: var(--white);
  background: var(--green-2);
}

.demo-panel h2 {
  max-width: 360px;
}

.demo-cta img {
  width: 420px;
  margin: 0 auto;
}

.site-footer {
  color: var(--white);
  background: var(--green-dark);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: min(var(--max), 86vw);
  margin: 0 auto;
  padding: 70px 0 60px;
}

.footer-logo {
  width: 170px;
  margin-bottom: 30px;
}

.footer-main p {
  font-size: 14px;
}

.footer-cta {
  justify-self: end;
  text-align: right;
}

.footer-cta h2 {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--green-dark);
  background: var(--white);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.social-links svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 7vw;
  background: rgba(255, 255, 255, 0.09);
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--action-orange-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro-band {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 70px;
  align-items: start;
}

.intro-band h2,
.content-row h2,
.service-panel h2,
.contact-panel h2,
.utility-page h1 {
  color: var(--orange);
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: 0;
}

.intro-band > p {
  max-width: 760px;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
}

.content-sections {
  display: grid;
  gap: 28px;
  padding-top: 20px;
}

.content-row {
  padding: 52px 0;
  border-top: 1px solid var(--line);
}

.content-row p {
  max-width: 760px;
  margin-top: 24px;
  font-size: 20px;
}

.story-lead,
.story-core,
.story-founder,
.team-intro {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 72px;
  align-items: start;
}

.story-lead h2,
.story-report h2,
.story-founder h2,
.timeline-heading h2,
.team-intro h2,
.team-section-heading {
  color: var(--orange);
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: 0;
}

.story-copy {
  display: grid;
  gap: 22px;
}

.story-copy p,
.story-founder p,
.team-intro p {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.48;
}

.story-copy .lead-text {
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.22;
}

.story-quote {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 64px;
  align-items: center;
  color: var(--white);
  background: var(--green-dark);
}

.story-quote figure,
.story-founder figure {
  min-height: 460px;
  margin: 0;
  overflow: hidden;
}

.story-quote img,
.story-founder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-quote h2 {
  max-width: 520px;
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 400;
}

.story-quote .eyebrow,
.story-report h2 {
  color: var(--action-orange-tint);
}

.story-quote blockquote {
  max-width: 680px;
  margin: 0;
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.14;
}

.story-report {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  padding: 44px;
  color: var(--white);
  background: var(--green-2);
}

.story-founder {
  align-items: center;
}

.story-founder > div {
  display: grid;
  gap: 18px;
}

.credential-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  align-items: center;
  justify-items: center;
  padding-top: 44px;
  padding-bottom: 44px;
}

.credential-strip img {
  width: min(100%, 150px);
  transition: transform 240ms ease, filter 240ms ease;
}

.credential-strip img:hover {
  transform: translateY(-6px) scale(1.04);
  filter: saturate(1.12);
}

.timeline {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 72px;
  background: var(--cream);
}

.timeline-heading {
  display: grid;
  align-content: start;
  gap: 24px;
}

.timeline-heading h2 {
  color: var(--action-orange-strong);
}

.timeline-list {
  display: grid;
  gap: 18px;
  position: relative;
  padding-left: 44px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 13px;
  width: 3px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.timeline-list.is-visible::before {
  transform: scaleY(1);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 28px 0;
  border-top: 1px solid rgb(var(--governance-green-rgb) / 16%);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 32px;
  left: -38px;
  width: 17px;
  height: 17px;
  background: var(--cream);
  border: 4px solid var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 7px var(--cream);
}

.timeline-item span {
  color: var(--action-orange-strong);
  font-weight: 700;
  text-transform: uppercase;
}

.timeline-item p {
  max-width: 820px;
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
}

.story-final-cta {
  display: grid;
  justify-items: center;
  padding-top: 28px;
}

.snapshot-page {
  display: grid;
  gap: 24px;
  max-width: 980px;
}

.snapshot-heading {
  margin-top: 26px;
  color: var(--orange);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 400;
}

.snapshot-page p,
.article-content p {
  margin: 0;
  font-size: 20px;
  line-height: 1.55;
}

.snapshot-image {
  margin: 18px 0;
  overflow: hidden;
}

.snapshot-image img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.snapshot-image-icon img {
  width: min(170px, 50vw);
  max-height: 170px;
  object-fit: contain;
}

.snapshot-button {
  justify-self: start;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.value-card {
  min-height: 260px;
  padding: 36px;
  background: var(--cream);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.value-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 26px;
  color: var(--action-orange-strong);
  background: rgb(var(--action-orange-rgb) / 12%);
}

.value-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3 {
  margin-bottom: 16px;
  font-size: 24px;
}

.value-card:hover,
.value-card:focus {
  transform: translateY(-8px);
  box-shadow: 0 28px 58px rgb(var(--governance-green-rgb) / 15%);
}

.article-page {
  max-width: 940px;
}

.article-page h2 {
  margin-bottom: 24px;
  color: var(--orange);
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 400;
}

.article-lead {
  margin-bottom: 42px;
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1.35;
}

.article-content {
  display: grid;
  gap: 24px;
  margin-bottom: 42px;
}

.team-intro {
  align-items: end;
}

.team-intro > div {
  display: grid;
  gap: 16px;
}

.team-featured {
  padding-top: 30px;
}

.team-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 34px;
  margin-top: 34px;
}

.team-grid .team-section-heading {
  grid-column: 1 / -1;
}

.person-card-featured {
  min-height: 720px;
}

.person-card-featured img {
  height: 590px;
  object-position: center top;
}

.service-detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
}

.service-panel {
  padding: 64px;
  background: var(--cream);
}

.service-detail figure {
  min-height: 460px;
  margin: 0;
}

.service-detail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cards-grid,
.team-grid,
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.info-card,
.glossary-card,
.person-card {
  background: var(--cream);
  transition: transform 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.info-card,
.glossary-card {
  min-height: 230px;
  padding: 36px;
}

.glossary-grid {
  align-items: start;
}

.glossary-card {
  position: relative;
  max-height: 245px;
  overflow: hidden;
  transition: max-height 360ms ease, transform 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.glossary-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 74px;
  background: linear-gradient(180deg, rgb(var(--balance-sand-rgb) / 0%), var(--cream));
  pointer-events: none;
  transition: opacity 220ms ease;
}

.glossary-card:hover,
.glossary-card:focus,
.glossary-card:focus-within {
  z-index: 2;
  max-height: 620px;
  background: var(--white);
}

.glossary-card:hover::after,
.glossary-card:focus::after,
.glossary-card:focus-within::after {
  opacity: 0;
}

.info-card h3,
.glossary-card h3,
.person-card h3 {
  margin-bottom: 16px;
  font-size: 25px;
  font-weight: 700;
}

.info-card:hover,
.glossary-card:hover,
.person-card:hover,
.news-card:hover,
.feature-panel:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 58px rgb(var(--governance-green-rgb) / 15%);
}

.person-card {
  overflow: hidden;
}

.person-card img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 420ms ease, filter 420ms ease;
}

.person-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.08);
}

.person-card div {
  padding: 28px;
}

.logo-grid-large {
  max-width: 1120px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 64px;
  color: var(--white);
  background: var(--green-2);
}

.interactive-card {
  box-shadow: var(--card-shadow);
  transition: transform var(--card-motion), box-shadow var(--card-motion), background-color var(--card-motion);
}

.interactive-card:hover,
.interactive-card:focus,
.interactive-card:focus-within {
  transform: translateY(-7px);
  box-shadow: var(--card-shadow-hover);
}

.interactive-card:focus-visible,
.partner-card:focus-visible,
.value-card:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.values-heading,
.section-heading-inline {
  margin-bottom: 52px;
}

.values-heading h2,
.section-heading-inline h2 {
  color: var(--orange);
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 400;
}

.editorial-flow {
  display: grid;
}

.editorial-section {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 72px;
  border-top: 1px solid var(--line);
}

.editorial-section.is-reverse {
  grid-template-columns: 1fr 0.72fr;
}

.editorial-section.is-reverse .editorial-heading {
  order: 2;
}

.editorial-section.has-maps,
.editorial-section.has-maps.is-reverse {
  grid-template-columns: 1fr;
  gap: 32px;
}

.editorial-section.has-maps.is-reverse .editorial-heading {
  order: initial;
}

.editorial-heading h2 {
  color: var(--orange);
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 62px);
  font-weight: 400;
}

.editorial-content {
  display: grid;
  align-content: start;
  gap: 20px;
}

.editorial-content .snapshot-heading {
  font-family: var(--font-body);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
}

.snapshot-map-grid {
  grid-template-columns: 1fr;
  gap: 24px;
}

.snapshot-map-grid.is-multiple {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.snapshot-map {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream);
}

.snapshot-map-placeholder {
  display: flex;
  min-height: clamp(300px, 32vw, 420px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
}

.snapshot-map-placeholder strong {
  font-size: 20px;
}

.snapshot-map-placeholder p {
  max-width: 560px;
  margin: 0;
}

.snapshot-map-placeholder[hidden],
.snapshot-map iframe[hidden] {
  display: none;
}

.snapshot-map iframe {
  display: block;
  width: 100%;
  height: clamp(300px, 32vw, 420px);
  border: 0;
}

.team-featured-grid,
.team-grid {
  align-items: stretch;
}

.person-card-featured {
  min-height: 0;
}

.person-card img,
.person-card-featured img {
  height: 320px;
  object-fit: contain;
  object-position: center;
  background: var(--paper);
}

.team-featured-grid .person-card {
  width: min(100%, 360px);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.partner-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: var(--paper);
}

.partner-card-front {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 26px;
  min-height: 430px;
  padding: 38px;
  text-align: center;
}

.partner-card-front img {
  width: min(100%, 190px);
  height: 145px;
  object-fit: contain;
}

.partner-card-front h3,
.partner-card-detail h4 {
  font-size: 23px;
}

.partner-card-detail {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 34px;
  color: var(--white);
  background: rgb(var(--governance-green-rgb) / 97%);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--card-motion), transform var(--card-motion);
}

.partner-card-detail p {
  margin: 0;
}

.partner-card-detail h4 {
  margin: 8px 0 0;
  color: var(--action-orange-tint);
}

.partner-card-detail a {
  color: var(--action-orange-tint);
  font-weight: 700;
}

.partner-card:hover .partner-card-detail,
.partner-card:focus .partner-card-detail,
.partner-card:focus-within .partner-card-detail {
  opacity: 1;
  transform: translateY(0);
}

.press-section + .press-section {
  padding-top: 30px;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.press-card {
  display: grid;
  grid-template-rows: auto 130px 1fr;
  min-height: 470px;
  background: var(--cream);
}

.press-card[hidden] {
  display: none;
}

.press-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid rgb(var(--governance-green-rgb) / 16%);
  font-size: 12px;
  font-weight: 700;
}

.press-logo {
  display: grid;
  place-items: center;
  padding: 22px;
  background: var(--white);
}

.press-logo img {
  width: min(100%, 200px);
  height: 82px;
  object-fit: contain;
}

.press-card-body {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 26px;
}

.press-card-body h3 {
  font-size: 23px;
}

.press-card-body p {
  margin: 0;
}

.press-more {
  display: flex;
  margin: 44px auto 0;
}

.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.client-logo-card {
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: 24px;
  background: var(--paper);
}

.client-logo-card img {
  width: 100%;
  height: 105px;
  object-fit: contain;
}

.testimonials {
  display: grid;
  gap: 42px;
}

.testimonials-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 0.75fr);
  gap: 26px;
  overflow-x: auto;
  padding: 8px 8px 28px;
  scroll-snap-type: x mandatory;
}

.testimonial-card {
  display: grid;
  align-content: space-between;
  gap: 30px;
  min-height: 330px;
  margin: 0;
  padding: 38px;
  background: var(--cream);
  scroll-snap-align: start;
}

.testimonial-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.35;
}

.testimonial-card figcaption {
  display: grid;
  gap: 3px;
}

.case-studies {
  display: grid;
}

.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  padding-top: 44px;
  padding-bottom: 44px;
}

.case-study.is-reverse figure {
  order: 2;
}

.case-study figure {
  min-height: 480px;
  margin: 0;
  overflow: hidden;
}

.case-study figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study-panel {
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 58px;
  background: var(--cream);
}

.case-study-panel h2 {
  color: var(--action-orange-strong);
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 62px);
  font-weight: 400;
}

.case-study-panel blockquote {
  margin: 10px 0 0;
  padding-left: 22px;
  border-left: 4px solid var(--orange);
  font-family: var(--font-display);
  font-size: 21px;
}

.case-study-panel cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.contact-panel h2 {
  color: var(--white);
}

.contact-panel p {
  max-width: 680px;
  margin-top: 20px;
}

.source-note {
  width: min(var(--max), 86vw);
  margin: 0 auto 70px;
  color: var(--muted);
  font-size: 12px;
}

.source-note span {
  color: var(--green);
  font-weight: 700;
}

.local-sitemap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 28px;
  margin-top: 38px;
  padding: 0;
  list-style: none;
}

.local-sitemap a {
  display: block;
  padding: 14px 16px;
  background: var(--cream);
  font-weight: 700;
}

.site-header {
  transition: min-height 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.site-header.is-scrolled {
  min-height: 60px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgb(var(--governance-green-rgb) / 10%);
  backdrop-filter: blur(14px);
}

[data-animate] {
  opacity: 0;
  transform: translateY(62px) scale(0.96);
  filter: blur(8px);
  transition: opacity 760ms ease, transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 900ms ease;
  transition-delay: var(--delay, 0ms);
}

[data-animate="hero"] {
  transform: translateY(80px) scale(0.94);
  transition-duration: 1000ms;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.interactive-card[data-animate] {
  transition: opacity 760ms ease, transform var(--card-motion), filter 900ms ease, box-shadow var(--card-motion), background-color var(--card-motion);
  transition-delay: var(--delay, 0ms), 0ms, var(--delay, 0ms), 0ms, 0ms;
}

.interactive-card[data-animate].is-visible:hover,
.interactive-card[data-animate].is-visible:focus,
.interactive-card[data-animate].is-visible:focus-within {
  transform: translateY(-7px) scale(1);
}

[data-parallax] {
  transform: scale(1.08) translateY(var(--parallax-y, 0));
  transition: transform 120ms linear;
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.button,
.text-link,
.news-card,
.feature-panel,
.info-card,
.glossary-card,
.person-card,
.logo-grid img {
  will-change: transform;
}

.logo-grid img {
  transition: transform 240ms ease, filter 240ms ease;
}

.logo-grid img:hover {
  transform: translateY(-5px) scale(1.04);
  filter: saturate(1.12);
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(34px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Pagine Servizi ---------------------------------------------------------
   Fasce alternate e liste fedeli al contenuto importato. Le bande a fondo
   sabbia restano contenute nella colonna editoriale. */
.service-band {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

/* Pannello sabbia contenuto, come le bande di SI Rating: niente full-bleed,
   che richiede z-index negativi o ombre da 100vmax e costa in composizione. */
.service-band-sand {
  padding: 56px;
  background: var(--cream);
  border-top-color: transparent;
}

.service-band-sand .editorial-heading h2,
.service-band-sand .snapshot-heading {
  color: var(--action-orange-strong);
}

.editorial-section-body-only {
  border-top: 1px solid var(--line);
}

.editorial-section-body-only .editorial-content {
  max-width: 760px;
}

.service-cta .demo-panel {
  display: grid;
  justify-items: start;
  gap: 8px;
  color: var(--white);
  background: var(--green-2);
}

.not-found h2 {
  max-width: 700px;
  margin-bottom: 18px;
  color: var(--orange);
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 66px);
  font-weight: 400;
}

.not-found > p {
  max-width: 620px;
  color: var(--muted);
}

.not-found-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px 0 56px;
}

.related-services {
  padding-top: 24px;
}

.related-services h2 {
  margin-bottom: 34px;
  color: var(--orange);
  font-family: var(--font-display);
  font-size: clamp(34px, 3.5vw, 52px);
  font-weight: 400;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.related-card {
  display: flex;
  align-items: center;
  min-height: 84px;
  padding: 20px 24px;
  background: var(--paper);
  border-left: 3px solid var(--orange);
  font-weight: 700;
  line-height: 1.3;
}

.related-card:hover {
  color: var(--white);
  background: var(--green-2);
}

@media (max-width: 1024px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    padding: 0 5vw;
  }

  /* backdrop-filter crea un containing block per i discendenti fixed: quando
     l'header era scrolled, il drawer veniva quindi ritagliato sui suoi 60px. */
  .site-header.is-scrolled {
    min-height: 70px;
    background: var(--white);
    backdrop-filter: none;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    gap: 14px;
  }

  .menu-toggle {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: block;
  }

  .main-nav {
    grid-column: 1 / -1;
    position: fixed;
    top: 70px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
    padding: 18px 5vw 34px;
    background: var(--white);
    box-shadow: 0 18px 30px rgb(var(--governance-green-rgb) / 12%);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
  }

  .main-nav .nav-link {
    height: auto;
    padding: 14px 0;
  }

  .nav-link::after {
    bottom: 8px;
  }

  .nav-group {
    border-bottom: 1px solid var(--line);
  }

  .nav-trigger {
    width: 100%;
    height: auto;
    justify-content: space-between;
    padding: 14px 0;
  }

  .nav-panel {
    position: static;
    display: none;
    min-width: 0;
    margin: 0 0 12px;
    padding: 4px 16px 8px;
    background: var(--paper);
    border-left: 2px solid var(--orange);
    box-shadow: none;
    opacity: 1;
    pointer-events: none;
    transform: none;
  }

  .nav-group.is-open .nav-panel {
    display: grid;
    pointer-events: auto;
  }

  .nav-panel a {
    padding: 10px 0;
  }

  .language {
    min-height: 38px;
  }

  .why-section,
  .intro-two-col,
  .rating-block,
  .rating-block-reverse,
  .demo-cta,
  .intro-band,
  .story-lead,
  .story-core,
  .story-quote,
  .story-founder,
  .timeline,
  .team-intro,
  .service-detail,
  .contact-panel,
  .editorial-section,
  .editorial-section.is-reverse,
  .case-study,
  .footer-main,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .why-section {
    gap: 24px;
  }

  .section-heading {
    padding-top: 0;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid,
  .values-grid,
  .team-grid,
  .glossary-grid,
  .local-sitemap {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-grid,
  .press-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .client-logo-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .editorial-section.is-reverse .editorial-heading,
  .case-study.is-reverse figure {
    order: 0;
  }

  .feature-panel,
  .info-panel,
  .demo-panel,
  .service-panel,
  .contact-panel,
  .service-band-sand {
    padding: 34px;
  }

  .credential-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .story-quote figure,
  .story-founder figure {
    min-height: 360px;
  }

  .footer-cta {
    justify-self: start;
    text-align: left;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 680px) {
  .snapshot-map-grid.is-multiple {
    grid-template-columns: 1fr;
  }

  .site-header {
    grid-template-columns: 118px minmax(0, 1fr) 44px;
    column-gap: 10px;
    padding: 0 16px;
  }

  .brand img {
    width: 118px;
  }

  .header-actions {
    min-width: 0;
    gap: 8px;
  }

  .language {
    min-height: 38px;
    font-size: 14px;
  }

  .header-actions .button-small {
    min-height: 38px;
    padding: 9px 13px;
    font-size: 13px;
    white-space: nowrap;
  }

  .hero,
  .hero-compact {
    min-height: 520px;
  }

  .hero-content {
    width: min(88vw, var(--max));
    padding-top: 120px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .section {
    width: min(90vw, var(--max));
    padding: 62px 0;
  }

  .hero-home .hero-content {
    padding-top: 130px;
  }

  .story-copy p,
  .story-founder p,
  .snapshot-page p,
  .article-content p,
  .team-intro p {
    font-size: 18px;
  }

  .values-grid,
  .credential-strip {
    grid-template-columns: 1fr;
  }

  .timeline-list {
    padding-left: 34px;
  }

  .timeline-item::before {
    left: -34px;
  }

  .person-card-featured {
    min-height: 0;
  }

  .person-card-featured img,
  .person-card img {
    height: 300px;
  }

  .glossary-card {
    max-height: none;
  }

  .glossary-card::after {
    display: none;
  }

  .feature-mosaic,
  .news-grid,
  .logo-grid,
  .levels-grid,
  .levels-copy,
  .cards-grid,
  .team-grid,
  .glossary-grid,
  .local-sitemap {
    grid-template-columns: 1fr;
  }

  .partners-grid,
  .press-grid {
    grid-template-columns: 1fr;
  }

  .client-logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .client-logo-card {
    min-height: 130px;
    padding: 18px;
  }

  .client-logo-card img {
    height: 82px;
  }

  .partner-card,
  .partner-card-front {
    min-height: 0;
  }

  .partner-card-detail {
    position: static;
    opacity: 1;
    transform: none;
  }

  .press-card {
    min-height: 0;
  }

  .testimonials-track {
    grid-auto-columns: 88%;
  }

  .case-study figure {
    min-height: 320px;
  }

  .case-study-panel {
    padding: 36px;
  }

  .logo-grid img {
    max-height: 96px;
    width: min(100%, 210px);
  }

  .feature-panel,
  .info-panel,
  .demo-panel,
  .service-panel,
  .contact-panel,
  .service-band-sand {
    padding: 34px;
  }

  .feature-photo,
  .rating-block figure {
    min-height: 340px;
  }

  .news-card {
    grid-template-rows: 220px 1fr auto;
  }

  .news-card img {
    height: 220px;
  }

  .pagination {
    flex-wrap: wrap;
    font-size: 18px;
  }
}

@media (hover: none) {
  .partner-card,
  .partner-card-front {
    min-height: 0;
  }

  .partner-card-detail {
    position: static;
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
    filter: none;
  }

  [data-parallax] {
    transform: none;
  }

  .hero-content h1,
  .hero-content .eyebrow,
  .hero-content .button {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
}

/* Accessibilità di base e strumenti persistenti. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 2147483647;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: #fff;
  background: #0c332d;
  border: 3px solid #fff;
  border-radius: 4px;
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #006bb6;
  outline-offset: 3px;
}

main:focus {
  outline: 0;
}

html[data-a11y-text-scale="1"] {
  font-size: 112.5%;
}

html[data-a11y-text-scale="2"] {
  font-size: 125%;
}

body {
  font-size: 1rem;
}

.footer-bottom {
  align-items: start;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 14px;
  max-width: 720px;
}

.footer-legal button {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.legal-page {
  max-width: 920px;
  overflow-wrap: anywhere;
}

.legal-page .legal-intro {
  margin-bottom: 42px;
  font-size: 1.25rem;
}

.legal-page h2 {
  margin: 52px 0 18px;
  color: var(--orange);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
}

.legal-page h3 {
  margin: 34px 0 14px;
  font-size: 1.3rem;
}

.legal-page p,
.legal-page li {
  font-size: 1.05rem;
  line-height: 1.75;
}

.legal-page a:not(.legal-download) {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal-downloads {
  display: grid;
  gap: 14px;
  margin-top: 38px;
}

.legal-download {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  background: var(--paper);
  border-left: 4px solid var(--orange);
}

.legal-download span {
  flex: 0 0 auto;
  color: var(--action-orange-strong);
  font-weight: 700;
}

.accessibility-tools {
  position: fixed;
  z-index: 2147483000;
  bottom: 20px;
  left: 20px;
}

.accessibility-trigger {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  color: #fff;
  background: #0c332d;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 28px rgb(0 0 0 / 28%);
  font: 700 18px/1 var(--font-body);
  cursor: pointer;
}

.accessibility-panel {
  position: absolute;
  bottom: 72px;
  left: 0;
  width: min(380px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 112px));
  padding: 24px;
  color: #0c332d;
  background: #fff;
  border: 2px solid #0c332d;
  border-radius: 12px;
  box-shadow: 0 18px 54px rgb(0 0 0 / 28%);
  overflow-y: auto;
}

.accessibility-panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.accessibility-panel h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
}

.accessibility-panel p {
  margin: 10px 0 20px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: inherit;
  background: #f9edda;
  border: 1px solid #0c332d;
  border-radius: 50%;
  font: 700 26px/1 sans-serif;
  cursor: pointer;
}

.accessibility-control,
.accessibility-toggle {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  color: inherit;
  background: #f9edda;
  border: 1px solid #b99f74;
  border-radius: 6px;
  font: 700 1rem/1.25 var(--font-body);
}

.accessibility-text-control,
.accessibility-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.accessibility-text-control div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.accessibility-text-control button {
  min-width: 42px;
  min-height: 42px;
  color: #fff;
  background: #0c332d;
  border: 0;
  border-radius: 4px;
  font: 700 1rem/1 var(--font-body);
  cursor: pointer;
}

.accessibility-text-control button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.accessibility-text-control output {
  min-width: 52px;
  text-align: center;
}

.accessibility-toggle {
  text-align: left;
  cursor: pointer;
}

.accessibility-toggle[aria-pressed="true"] {
  color: #fff;
  background: #0c332d;
  border-color: #0c332d;
}

.accessibility-reset,
.accessibility-statement-link {
  display: block;
  margin-top: 18px;
  color: inherit;
  background: transparent;
  border: 0;
  font: 700 0.95rem/1.4 var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.accessibility-statement-link {
  margin-top: 10px;
}

.a11y-highlight-links a {
  text-decoration: underline !important;
  text-decoration-thickness: 3px !important;
  text-underline-offset: 4px !important;
}

.a11y-high-contrast {
  --green: #000;
  --green-2: #000;
  --green-dark: #000;
  --orange: #8b2d00;
  --action-orange: #8b2d00;
  --action-orange-strong: #6f2400;
  --on-action-orange: #fff;
  --paper: #fff;
  --cream: #fff;
  --ink: #000;
  --muted: #222;
  --line: #222;
  --card-shadow: 0 0 0 2px #000;
  --card-shadow-hover: 0 0 0 4px #000;
}

.a11y-high-contrast .site-header,
.a11y-high-contrast .nav-panel,
.a11y-high-contrast .main-nav,
.a11y-high-contrast .interactive-card,
.a11y-high-contrast .legal-download {
  border-color: #000;
}

.a11y-high-contrast .hero-overlay {
  background: rgb(0 0 0 / 72%);
}

.a11y-high-contrast .hero-content,
.a11y-high-contrast .site-footer,
.a11y-high-contrast .demo-panel,
.a11y-high-contrast .info-panel.panel-green {
  color: #fff;
}

.a11y-reduce-motion *,
.a11y-reduce-motion *::before,
.a11y-reduce-motion *::after,
.energy-saving *,
.energy-saving *::before,
.energy-saving *::after {
  scroll-behavior: auto !important;
  transition-duration: 0.001ms !important;
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
}

.a11y-reduce-motion [data-animate],
.energy-saving [data-animate] {
  opacity: 1;
  transform: none;
  filter: none;
}

.a11y-reduce-motion [data-parallax],
.energy-saving [data-parallax] {
  transform: none;
}

.energy-overlay {
  position: fixed;
  z-index: 2147483500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  color: #fff;
  background: #061a17;
  text-align: center;
  cursor: pointer;
}

.energy-overlay[hidden],
.accessibility-panel[hidden] {
  display: none !important;
}

.energy-overlay-content {
  max-width: 580px;
}

.energy-overlay img {
  width: min(230px, 58vw);
  margin: 0 auto 34px;
}

.energy-overlay p {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 1;
}

.energy-overlay span {
  font-size: 1rem;
}

/* CookieConsent v3: variabili di brand e controlli con focus ben visibile. */
#cc-main {
  --cc-font-family: var(--font-body);
  --cc-bg: #fff;
  --cc-primary-color: #0c332d;
  --cc-secondary-color: #354a3d;
  --cc-btn-primary-bg: #0c332d;
  --cc-btn-primary-color: #fff;
  --cc-btn-primary-hover-bg: #354a3d;
  --cc-btn-secondary-bg: #f3e0bd;
  --cc-btn-secondary-color: #0c332d;
  --cc-btn-secondary-hover-bg: #f9edda;
  --cc-toggle-on-bg: #0c332d;
  --cc-cookie-category-block-bg: #f9edda;
  --cc-cookie-category-block-hover-bg: #f3e0bd;
  --cc-footer-bg: #f9edda;
  --cc-footer-color: #0c332d;
  --cc-footer-border-color: #d9c49f;
}

#cc-main .cm,
#cc-main .pm {
  border: 2px solid #0c332d;
}

/* Accetta, rifiuta e personalizza hanno la stessa evidenza visiva. */
#cc-main .cm__btn,
#cc-main .cm__btn.cm__btn--secondary {
  color: #fff;
  background: #0c332d;
  border: 2px solid #0c332d;
}

#cc-main .cm__btn:hover,
#cc-main .cm__btn.cm__btn--secondary:hover {
  color: #fff;
  background: #354a3d;
  border-color: #354a3d;
}

#cc-main button:focus-visible,
#cc-main a:focus-visible {
  outline: 3px solid #006bb6;
  outline-offset: 3px;
}

@media (max-width: 680px) {
  /* Mantiene il banner iniziale centrato nell'area utile anche sui device con safe area. */
  #cc-main .cm.cm--center {
    right: calc(max(12px, env(safe-area-inset-right)) + var(--arb-scrollbar-width, 0px)) !important;
    left: max(12px, env(safe-area-inset-left)) !important;
    width: auto !important;
    max-width: none !important;
    margin-inline: auto !important;
  }

  .footer-legal {
    justify-content: flex-start;
  }

  .legal-download {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .accessibility-tools {
    bottom: 12px;
    left: 12px;
  }

  .accessibility-panel {
    bottom: 66px;
    padding: 20px;
  }

  .hero h1 {
    overflow-wrap: anywhere;
    font-size: clamp(2.4rem, 14vw, 54px);
  }
}

@media (max-width: 680px) and (max-height: 360px) {
  #cc-main .cm__texts {
    padding-top: 0.625rem !important;
  }

  #cc-main .cm__title + .cm__desc {
    margin-top: 0.75em;
  }

  #cc-main .cm__desc {
    padding-bottom: 0.625em;
  }
}

@media (max-width: 420px) {
  .header-actions .button-small {
    display: none;
  }
}
