/* GERMA — foglio di stile del sito (sopra Bootstrap 5.3)
 * Colori e caratteri ricavati dal sito originale. Per cambiarli modifica solo le variabili in :root.
 */
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/archivo-black-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/roboto-latin-wght-normal.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: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/roboto-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0;
}

:root {
  /* --- colori GERMA (dal sito originale) --- */
  --g-green: #5c9c3d;        /* header, pulsanti, logo */
  --g-green-dark: #4a8030;   /* hover pulsanti */
  --g-green-light: #4baf47;  /* etichette, link, icone */
  --g-green-ink: #2f7a2c;    /* verde leggibile per testo piccolo su bianco */
  --g-forest: #2e4e1f;       /* fondo newsletter */
  --g-mint: #edf7ed;         /* cerchi icone servizi */
  --g-cream: #f8f7f0;        /* cerchi fasi del progetto */
  --g-heading: #24231d;      /* titoli */
  --g-text: #6f6f6f;         /* testo (l'originale usa #838383, scurito per il contrasto WCAG) */
  --g-line: #e3e3e3;         /* bordi card */
  --g-footer: #1a1a1a;
  --g-white: #fff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 6px rgba(36, 35, 29, .05), 0 8px 24px rgba(36, 35, 29, .06);
  --shadow-lg: 0 6px 16px rgba(46, 78, 31, .08), 0 24px 48px rgba(46, 78, 31, .12);

  --font-heading: 'Archivo Black', 'Arial Black', 'Arial Bold', Gadget, sans-serif;
  --bs-body-font-family: 'Roboto', Arial, Helvetica, sans-serif;
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.75;
  --bs-body-color: var(--g-text);
  --bs-link-color: var(--g-green-ink);
  --bs-link-color-rgb: 47, 122, 44;
  --bs-link-hover-color: var(--g-green);
  --bs-link-hover-color-rgb: 92, 156, 61;
  --bs-border-color: var(--g-line);
  --bs-focus-ring-color: rgba(92, 156, 61, .4);
}

h1, h2, .h1, .h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--g-heading);
  line-height: 1.15;
  letter-spacing: .005em;
}
h3, h4, .h3 { font-family: var(--bs-body-font-family); font-weight: 600; color: var(--g-heading); line-height: 1.35; }
h1 { font-size: clamp(2.1rem, 2.6vw + 1.2rem, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.3vw + 1.15rem, 2.25rem); margin-top: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; }
.prose > h2:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.45rem, 1vw + 1.1rem, 1.9rem); }
.prose p, .prose li, .prose dd { max-width: 72ch; }
strong { color: var(--g-heading); font-weight: 600; }

a { text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--g-green-light); outline-offset: 2px; }
.skip { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: var(--g-white); padding: .5rem 1rem; }
.bi { display: inline-block; vertical-align: -.125em; flex: none; }

/* ---------- etichette (kicker) ---------- */
.kicker {
  display: flex; align-items: center;
  font-size: .8rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--g-green-ink); margin-bottom: .9rem;
}
.text-center .kicker { justify-content: center; }
.kicker-light { color: var(--g-white); }

/* ---------- pulsanti ---------- */
.btn { font-weight: 700; text-transform: uppercase; border-radius: var(--radius-sm); padding: .75rem 1.5rem; transition: background-color .2s, color .2s, box-shadow .2s, transform .2s; display: inline-flex; align-items: center; gap: .55rem; letter-spacing: .01em; }
.btn-lg { padding: .95rem 2rem; font-size: 1rem; }
.btn .bi { font-size: .85em; transition: transform .2s; }
.btn:hover .bi { transform: translateX(3px); }
.btn-green:hover { box-shadow: 0 8px 20px rgba(92, 156, 61, .35); }
.btn-ghost { --bs-btn-color: var(--g-heading); --bs-btn-border-color: #d7d7d0; --bs-btn-hover-color: var(--g-green-ink); --bs-btn-hover-border-color: var(--g-green); --bs-btn-hover-bg: transparent; --bs-btn-active-color: var(--g-green-ink); --bs-btn-active-border-color: var(--g-green); }
.btn-green { --bs-btn-color: #fff; --bs-btn-bg: var(--g-green); --bs-btn-border-color: var(--g-green);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--g-green-dark); --bs-btn-hover-border-color: var(--g-green-dark);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--g-green-dark); --bs-btn-active-border-color: var(--g-green-dark); }
.btn-white { --bs-btn-color: var(--g-green); --bs-btn-bg: #fff; --bs-btn-border-color: #fff;
  --bs-btn-hover-color: var(--g-green-dark); --bs-btn-hover-bg: #f1f7ee; --bs-btn-hover-border-color: #f1f7ee;
  --bs-btn-active-color: var(--g-green-dark); --bs-btn-active-bg: #e6f0e1; font-weight: 500; }
.link-more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--g-green-ink); }
.link-more .bi { font-size: .8em; }

/* ---------- header ---------- */
.site-header { background: var(--g-green); color: #fff; transition: box-shadow .25s; }
.site-header.is-compact { box-shadow: 0 6px 24px rgba(0, 0, 0, .15); }
.site-header.is-compact .header-top { padding: .35rem 0; }
.site-header.is-compact .brand img { height: 40px; }
.site-header.is-compact .site-header .nav-link, .site-header.is-compact .nav-link { padding-top: .75rem !important; padding-bottom: .75rem !important; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; transition: padding .25s; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.brand img { display: block; height: 52px; width: auto; transition: height .25s; }
.header-contacts { gap: 2.5rem; margin: 0; font-size: .875rem; }
.header-contacts a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .6rem; }
.header-contacts a:hover { text-decoration: underline; }
.header-contacts .bi { font-size: 1.15rem; opacity: .9; }
.navbar { padding: 0; }
.navbar-collapse { justify-content: space-between; }
.site-header .nav-link { position: relative; color: #fff; text-transform: uppercase; font-size: .95rem; padding: 1.05rem 0 !important; margin-right: 1.6rem; letter-spacing: .01em; transition: padding .25s, color .2s; }
@media (min-width: 992px) {
  .site-header .nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: .55rem; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
  .site-header .nav-link:hover::after, .site-header .nav-link.active::after, .site-header .nav-link[aria-current="page"]::after { transform: scaleX(1); }
}
.site-header .nav-link:hover, .site-header .nav-link:focus-visible { color: var(--g-footer); }
.site-header .nav-link.active, .site-header .nav-link[aria-current="page"] { color: var(--g-footer); }
.site-header .dropdown-toggle::after { display: none; }
.nav-extra { display: flex; align-items: center; gap: 1.5rem; }
.nav-social { color: #fff; font-size: 1.35rem; line-height: 1; }
.nav-social:hover { color: var(--g-footer); }
.dropdown-menu { border: 0; border-top: 3px solid var(--g-green-light); border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow-lg); padding: .6rem; margin-top: 0 !important; }
.dropdown-item { padding: .5rem .85rem; color: var(--g-heading); border-radius: 3px; white-space: normal; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--g-mint); color: var(--g-green-ink); }
.dropdown-item[aria-current="page"] { background: var(--g-mint); color: var(--g-green-ink); font-weight: 600; }
.dropdown-menu.mega { width: 100%; left: 0; right: 0; padding: 1.5rem 1.25rem; }
.mega-title { font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--g-green-ink); padding: 0 .85rem; margin-bottom: .35rem; }
.navbar-toggler { border: 1px solid rgba(255, 255, 255, .6); padding: .55rem .6rem; display: flex; flex-direction: column; gap: 5px; border-radius: 3px; }
.toggler-bar { display: block; width: 24px; height: 2px; background: #fff; }
@media (min-width: 992px) { .site-header .dropdown:hover > .dropdown-menu { display: block; } }
@media (max-width: 991.98px) {
  .brand img { height: 44px; }
  .site-header .nav-link { padding: .7rem 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .15); }
  .dropdown-menu, .dropdown-menu.mega { box-shadow: none; border-top: 0; margin-bottom: .5rem !important; }
  .nav-extra { padding: 1rem 0 1.25rem; }
}

/* ---------- sezioni ---------- */
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-tight { padding-top: 3.5rem; padding-bottom: clamp(3.5rem, 6vw, 5.5rem); }
.section-title { margin-top: 0; max-width: 20ch; }
.text-center > .section-title { max-width: 26ch; }

/* card con bordo arrotondato (servizi, in evidenza, news) */
.card-germa { display: flex; flex-direction: column; height: 100%; padding: 2rem 1.75rem; background: var(--g-white); border: 1px solid #ecece6; border-radius: var(--radius); color: inherit; text-decoration: none; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s, border-color .25s; }
a.card-germa:hover { border-color: #d6e8cc; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-germa h2, .card-germa h3 { margin-top: 0; }

/* hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #fbfcf8 100%); min-height: 680px; display: flex; align-items: center; padding: 5rem 0 8rem; }
.hero-lines { position: absolute; left: 0; bottom: 0; width: 540px; height: auto; pointer-events: none; opacity: .55; }
.hero-visual { position: absolute; right: 0; top: 10px; height: calc(100% - 90px); width: auto; max-width: 42%; object-fit: cover; object-position: left center; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }
.hero-text { position: relative; z-index: 1; }
.display-hero { font-size: clamp(2.8rem, 5vw + 1rem, 5.4rem); line-height: 1.12; margin-bottom: 2rem; }
.hero .lead { font-size: 1.15rem; color: var(--g-text); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2.25rem 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: .08s; }
  .hero-text > :nth-child(3) { animation-delay: .16s; }
  .hero-text > :nth-child(4) { animation-delay: .24s; }
  .hero-visual { animation: fade 1s .1s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}
@media (max-width: 991.98px) {
  .hero { min-height: 0; padding: 3.5rem 0 5rem; flex-direction: column; align-items: stretch; }
  .hero-visual { position: static; max-width: 100%; width: 100%; height: 320px; margin-top: 2.5rem; object-position: center 70%; }
  .hero-lines { width: 320px; opacity: .6; }
}

/* in evidenza */
.highlights { position: relative; z-index: 2; margin-top: -5.5rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
.highlights .card-germa { box-shadow: var(--shadow-lg); }
.highlight h2 { font-size: 1.4rem; margin-bottom: .75rem; }
.highlight p:not(.kicker) { flex: 1; }
.highlight .kicker { font-size: .72rem; }

/* chi siamo */
.about-media { position: relative; background: radial-gradient(circle at 30% 20%, #ffffff 0%, var(--g-mint) 70%); border-radius: 28px; padding: 3rem 2rem 4.5rem; text-align: center; }
.about-logo { width: 100%; max-width: 300px; height: auto; }
.about-badge { position: absolute; right: -1rem; bottom: -2rem; margin: 0; background: var(--g-green); color: #fff; border-radius: var(--radius); padding: 1rem 1.4rem; box-shadow: var(--shadow-lg); font-size: .85rem; line-height: 1.3; text-align: left; }
.about-badge strong { display: block; color: #fff; font-family: var(--font-heading); font-weight: 400; font-size: 2rem; line-height: 1.1; }
@media (max-width: 575.98px) { .about-badge { right: 1rem; } }
.check-items { list-style: none; padding: 0; margin: 2rem 0 0; }
.check-items li { display: flex; gap: 1.1rem; padding: 1.1rem 1.25rem; margin-bottom: .9rem; border-radius: var(--radius); background: #fff; border: 1px solid #ecece6; box-shadow: var(--shadow-sm); }
.check-items h3 { font-size: 1.2rem; margin: 0 0 .2rem; }
.check-items p { margin: 0; }
.check { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--g-green); color: #fff; display: grid; place-items: center; font-size: .95rem; margin-top: .2rem; }

/* servizi */
.service { text-align: center; align-items: center; padding: 2rem 1.5rem; }
.icon-circle { width: 96px; height: 96px; border-radius: 50%; background: var(--g-mint); color: var(--g-green-light); display: grid; place-items: center; font-size: 2.5rem; margin-bottom: 1.5rem; transition: background-color .25s, color .25s, transform .25s; }
a.service:hover .icon-circle { background: var(--g-green); color: #fff; transform: scale(1.05); }
.service h3 { font-size: 1.4rem; margin-bottom: .35rem; }
.service p { flex: 1; margin-bottom: 1.25rem; line-height: 1.85; }

/* sostenibilità */
.sustain { position: relative; overflow: hidden; }
.sustain-item { display: block; color: inherit; text-decoration: none; }
.sustain-item h3 { font-size: 1.2rem; margin: .75rem 0 .35rem; }
.sustain-item:hover h3 { color: var(--g-green-ink); }
.sustain-item p { margin: 0; }
.sustain-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--g-mint); display: grid; place-items: center; font-size: 1.9rem; color: var(--g-green-light); line-height: 1; transition: background-color .25s, color .25s; }
.sustain-item:hover .sustain-icon { background: var(--g-green); color: #fff; }
.sustain-img { width: 100%; height: auto; -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent); mask-image: linear-gradient(180deg, #000 75%, transparent); }

/* fasi del progetto */
.phase-list { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.phase-list a { display: flex; flex-direction: column; align-items: center; color: inherit; text-decoration: none; }
.phase-list li { position: relative; }
.phase-list li:not(:last-child)::after { content: ''; position: absolute; top: 95px; right: -1.6rem; width: 3.2rem; height: 12px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 12'%3E%3Cpath d='M0 6h62M56 1l6 5-6 5' fill='none' stroke='%234baf47' stroke-width='1.6'/%3E%3C/svg%3E"); }
.phase-circle { position: relative; width: 190px; height: 190px; border-radius: 50%; background: var(--g-cream); box-shadow: inset 0 0 0 10px #fff, 0 0 0 1px #ecebe0; transition: transform .25s, box-shadow .25s; color: var(--g-green-light); display: grid; place-items: center; font-size: 4.4rem; }
.phase-num { position: absolute; top: 4px; left: 4px; box-shadow: 0 6px 14px rgba(92, 156, 61, .35); width: 50px; height: 50px; border-radius: 50%; background: var(--g-green); color: #fff; font-size: 1.1rem; font-weight: 700; display: grid; place-items: center; }
.phase-label { margin-top: 2.2rem; font-size: 1.2rem; font-weight: 600; color: var(--g-heading); }
.phase-list a:hover .phase-label { color: var(--g-green-ink); }
.phase-list a:hover .phase-circle { transform: translateY(-4px); box-shadow: inset 0 0 0 10px #fff, 0 0 0 1px #d6e8cc, var(--shadow-lg); }
@media (max-width: 991.98px) {
  .phase-list { grid-template-columns: repeat(2, 1fr); }
  .phase-list li::after { display: none; }
  .phase-circle { width: 150px; height: 150px; font-size: 3.4rem; }
}

/* fascia contatti con foto */
.cta-wrap { padding: 0 0 clamp(3.5rem, 7vw, 6.5rem); }
.cta-band { position: relative; overflow: hidden; padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem); color: #fff; border-radius: 28px; background: #2e4e1f url(../img/contatti-sfondo.webp) center / cover no-repeat; box-shadow: var(--shadow-lg); }
.cta-band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20, 38, 12, .75) 0%, rgba(20, 38, 12, .35) 60%, rgba(20, 38, 12, .15) 100%); }
.cta-band .row { position: relative; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(2rem, 2.5vw + 1rem, 3rem); max-width: 14ch; }
.cta-buttons { display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; }
.cta-buttons .btn { min-width: 15rem; justify-content: center; }
@media (max-width: 991.98px) { .cta-buttons { align-items: flex-start; flex-direction: row; flex-wrap: wrap; } }

/* newsletter */
.newsletter { background: var(--g-forest); color: #fff; }
.newsletter .section-title { color: #fff; max-width: none; font-size: clamp(1.6rem, 1.6vw + 1rem, 2.4rem); margin-bottom: 2.5rem; }
.form-newsletter { max-width: 1290px; margin: 0 auto; }
.form-newsletter .form-label { color: #fff; font-weight: 400; }
.form-newsletter p { color: #fff; }
.form-newsletter a { color: #c5e8b4; }
.form-newsletter { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 28px; padding: clamp(1.5rem, 4vw, 3rem); }
.form-newsletter .form-control { border-radius: var(--radius-sm); border: 1px solid #fff; min-height: 56px; }
.form-germa .form-label { margin-bottom: .3rem; }
.form-germa .form-control { border-radius: var(--radius-sm); padding: .75rem .9rem; }
.form-germa .form-control:focus { border-color: var(--g-green); box-shadow: 0 0 0 .2rem rgba(92, 156, 61, .3); }
.form-check-input:checked { background-color: var(--g-green); border-color: var(--g-green); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* news */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.6rem; align-items: start; }
.news-card-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; border: 1px solid #ecece6; border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s; }
.news-card-link:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.news-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.news-card-body { padding: 2rem 1.6rem 1.4rem; }
.news-meta { display: flex; flex-wrap: wrap; gap: .4rem 2rem; font-size: .875rem; margin: 0 0 .9rem; color: var(--g-text); }
.news-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.news-card .news-meta span:first-child { background: var(--g-mint); color: var(--g-green-ink); padding: .2rem .7rem; border-radius: 30px; font-weight: 500; }
.news-meta .bi { color: var(--g-green-light); }
.news-card h3 { font-size: 1.35rem; margin: 0 0 .9rem; }
.news-card-link:hover h3 { color: var(--g-green-ink); }
.news-excerpt { margin: 0; font-size: .95rem; }
.news-card-foot { display: flex; align-items: center; gap: .75rem; padding: .9rem 1.5rem; border-top: 1px solid var(--g-line); color: var(--g-heading); }
.news-card-foot .bi { font-size: 2rem; color: #c4c4c4; }
.news-empty { color: var(--g-text); }

/* intestazione pagine interne */
.page-hero { position: relative; background: linear-gradient(120deg, var(--g-forest) 0%, #3b6528 100%); color: #e7f0e2; padding: 4rem 0 3rem; overflow: hidden; border-radius: 0 0 28px 28px; }
.page-hero::after { content: ''; position: absolute; right: -60px; top: -40px; width: 420px; height: 420px; background: url(../img/hero-linee.svg) center / contain no-repeat; opacity: .25; transform: scaleX(-1); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .kicker { color: #b9e2a4; }
.page-hero h1 { color: #fff; max-width: 24ch; margin-bottom: .9rem; }
.page-hero .lead { color: #e7f0e2; max-width: 62ch; font-size: 1.1rem; }
.page-hero-article h1 { max-width: 32ch; }
.page-hero-article .news-meta { color: #e7f0e2; }
.page-hero-article .news-meta .bi { color: #b9e2a4; }
.breadcrumb { font-size: .875rem; margin: 1.5rem 0 0; --bs-breadcrumb-divider-color: #b9cdb0; --bs-breadcrumb-item-active-color: #b9cdb0; }
.breadcrumb a { color: #fff; }
.page-hero-article .breadcrumb { margin: 0 0 1.25rem; }
.breadcrumb-item.active { max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* contenuto */
.content-figure, .article-figure { margin: 2rem 0; }
.content-figure img, .article-figure img { width: 100%; height: auto; border-radius: var(--radius); }
.panel { display: block; padding: 1.6rem; background: #f6f9f4; border: 1px solid #e3eddd; border-radius: var(--radius); color: inherit; transition: box-shadow .25s, transform .25s, border-color .25s; }
.panel h3 { margin-top: 0; font-size: 1.2rem; }
.panel ol { padding-left: 1.2rem; margin-bottom: 0; }
.panel-link { text-decoration: none; }
.panel-link:hover { border-color: #cfe3c5; box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.panel-cta { display: inline-block; margin-top: .9rem; font-weight: 700; color: var(--g-green-ink); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0 2rem; }
.steps > li { counter-increment: step; position: relative; padding: .65rem 0 .65rem 4rem; min-height: 3.2rem; margin-bottom: .75rem; }
.steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: .2rem; width: 46px; height: 46px; border-radius: 50%; background: var(--g-green); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps h3 { font-size: 1.15rem; margin: .45rem 0 .2rem; }
.steps p { margin: 0; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding: .35rem 0 .35rem 2.2rem; }
.check-list li::before { content: ''; position: absolute; left: 0; top: .6rem; width: 22px; height: 22px; border-radius: 50%; background: var(--g-green) no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M13.485 1.431a1.473 1.473 0 0 1 2.104 2.062l-7.84 9.801a1.473 1.473 0 0 1-2.12.04L.431 8.138a1.473 1.473 0 0 1 2.084-2.083l4.111 4.112 6.82-8.69a.486.486 0 0 1 .04-.045z'/%3E%3C/svg%3E"); }
.entity-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.entity-list li { padding: .5rem 1rem; background: var(--g-mint); color: var(--g-heading); border-radius: 30px; font-weight: 600; font-size: .95rem; }
.entity-list abbr { text-decoration: none; cursor: help; }
.def-list dt { font-size: 1.15rem; font-weight: 600; color: var(--g-heading); padding-top: 1.1rem; border-top: 1px solid var(--g-line); }
.def-list dd { margin: .4rem 0 1.1rem; }
.badge-note { display: inline-block; padding: .45rem 1rem; background: var(--g-green); color: #fff; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; border-radius: 3px; margin-top: 1rem; }
.prose blockquote { border-left: 3px solid var(--g-green-light); padding-left: 1rem; }
.source { font-size: .95rem; border-top: 1px solid var(--g-line); padding-top: 1rem; margin-top: 2rem; }
.link-arrow, .link-back { font-weight: 700; color: var(--g-green-ink); }

/* barra laterale */
.aside-sticky { position: sticky; top: 9.5rem; }
.aside-box { border: 1px solid #ecece6; border-radius: var(--radius); padding: 1.5rem; background: #fff; box-shadow: var(--shadow-sm); }
.aside-box + .aside-box { margin-top: 1.25rem; }
.aside-title { font-family: var(--bs-body-font-family); font-size: .78rem; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: var(--g-green-ink); margin: 0 0 .9rem; }
.aside-box .aside-title:not(:first-child) { margin-top: 1.4rem; }
.aside-nav li a { display: flex; justify-content: space-between; padding: .7rem 1rem; margin-bottom: .4rem; border-radius: var(--radius-sm); transition: background-color .2s, color .2s; background: #f6f9f4; text-decoration: none; color: var(--g-heading); font-weight: 500; }
.aside-nav li a:hover { background: var(--g-mint); color: var(--g-green-ink); }
.aside-nav li a[aria-current="page"] { background: var(--g-green); color: #fff; }
.aside-contact { background: var(--g-forest); border-color: var(--g-forest); color: #e7f0e2; }
.aside-contact .aside-title { color: #b9e2a4; }
.aside-phone a { color: #fff; font-size: 1.3rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .6rem; }
.aside-news li { padding: .7rem 0; border-top: 1px solid var(--g-line); }
.aside-news li:first-child { border-top: 0; padding-top: 0; }
.aside-news a { display: block; font-weight: 600; line-height: 1.35; color: var(--g-heading); text-decoration: none; }
.aside-news a:hover { color: var(--g-green-ink); }
.aside-news time { font-size: .85rem; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; }
.hours dt { font-weight: 500; color: var(--g-heading); }
.hours dd { margin: 0; }

/* footer */
.site-footer { background: var(--g-footer); color: #fff; padding: 4rem 0 0; font-size: 1rem; border-top: 4px solid var(--g-green); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-logo img { width: 205px; height: auto; }
.footer-block { display: flex; gap: 1.25rem; }
.footer-icon { font-size: 1.75rem; color: var(--g-green); line-height: 1; padding-top: .35rem; }
.footer-title { font-family: var(--bs-body-font-family); font-weight: 600; font-size: 1.35rem; color: #fff; margin: .2rem 0 1rem; }
.footer-label { color: #7cc35a; }
.site-footer address { line-height: 1.75; }
.footer-links li { padding: .35rem 0; }
.footer-links a { color: #7cc35a; }
.footer-bottom { margin-top: 3rem; padding: 1.25rem 0; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; font-size: .875rem; color: #b5b5b5; }
.footer-bottom .list-inline-item:not(:last-child) { margin-right: 1.25rem; }
.to-top { position: fixed; right: 2rem; bottom: 1.5rem; z-index: 1030; width: 46px; height: 46px; display: grid; place-items: center; background: var(--g-green); color: #fff; border-radius: 50%; box-shadow: var(--shadow-lg); font-size: 1.1rem; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--g-green-dark); color: #fff; }


/* ---------- team ---------- */
.draft-note { background: #fff8e1; border: 1px solid #f0d88a; color: #6b5300; border-radius: var(--radius-sm); padding: .8rem 1.1rem; font-size: .95rem; margin-bottom: 2rem; }
.draft-note code { color: inherit; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.75rem; }
.team-card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; background: #fff; border: 1px solid #ecece6; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s; }
.team-card a:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.team-photo { aspect-ratio: 4 / 5; background: radial-gradient(circle at 30% 20%, #fff 0%, var(--g-mint) 75%); overflow: hidden; }
.team-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.team-card a:hover .team-img { transform: scale(1.03); }
.ritratto-iniziali { display: grid; place-items: center; font-family: var(--font-heading); color: var(--g-green); letter-spacing: .02em; }
.team-img.ritratto-iniziali { font-size: 4.5rem; }
.team-card-body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.team-card h2 { font-size: 1.4rem; margin: 0 0 .25rem; }
.team-role { color: var(--g-green-ink); font-weight: 600; margin: 0 0 .6rem; line-height: 1.4; }
.team-summary { flex: 1; margin-bottom: 1rem; font-size: .95rem; }
.team-cta { margin-top: 3.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2rem 2.25rem; border-radius: var(--radius); background: var(--g-mint); }
.team-cta h2 { font-size: 1.6rem; margin: 0 0 .3rem; }

.profile-hero { position: relative; background: linear-gradient(120deg, var(--g-forest) 0%, #3b6528 100%); color: #e7f0e2; padding: 2.25rem 0 3rem; border-radius: 0 0 28px 28px; overflow: hidden; }
.profile-hero::after { content: ''; position: absolute; right: -60px; top: -40px; width: 420px; height: 420px; background: url(../img/hero-linee.svg) center / contain no-repeat; opacity: .25; transform: scaleX(-1); pointer-events: none; }
.profile-hero .container { position: relative; z-index: 1; }
.profile-hero .breadcrumb { margin: 0 0 2rem; }
.profile-head { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: center; }
.profile-photo { width: 220px; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: radial-gradient(circle at 30% 20%, #fff 0%, var(--g-mint) 75%); box-shadow: 0 0 0 6px rgba(255, 255, 255, .12), var(--shadow-lg); }
.profile-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-img.ritratto-iniziali { font-size: 4rem; }
.team-img.ritratto-iniziali, .profile-img.ritratto-iniziali, .mini-img.ritratto-iniziali { display: grid; place-items: center; }
.profile-hero .kicker { color: #b9e2a4; }
.profile-hero h1 { color: #fff; margin-bottom: .6rem; }
.profile-hero .lead { color: #e7f0e2; max-width: 56ch; font-size: 1.1rem; }
.profile-links { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 0; }
.profile-links:empty { display: none; }
.btn-ghost-light { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .5); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255, 255, 255, .1); --bs-btn-hover-border-color: #fff; }
@media (max-width: 767.98px) { .profile-head { grid-template-columns: 1fr; gap: 1.5rem; } .profile-photo { width: 160px; } }

.skills { display: grid; gap: 1.25rem; }
.skill-group { padding: 1.4rem 1.5rem; border: 1px solid #ecece6; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.skill-group h3 { font-size: 1.1rem; margin: 0 0 .8rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { padding: .4rem .9rem; border-radius: 30px; background: var(--g-mint); color: var(--g-heading); font-size: .92rem; font-weight: 500; max-width: none; }

.timeline { list-style: none; padding: 0; margin: 1.25rem 0 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 9px; top: .5rem; bottom: .5rem; width: 2px; background: #dfe9d8; }
.timeline > li { position: relative; padding: 0 0 1.75rem 2.6rem; max-width: none; }
.timeline > li::before { content: ''; position: absolute; left: 0; top: .3rem; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 5px solid var(--g-green); }
.timeline > li:first-child::before { background: var(--g-green); box-shadow: 0 0 0 5px var(--g-mint); }
.tl-period { display: inline-block; margin: 0 0 .35rem; padding: .1rem .7rem; border-radius: 30px; background: var(--g-mint); color: var(--g-green-ink); font-size: .85rem; font-weight: 600; }
.timeline h3 { font-size: 1.15rem; margin: 0 0 .1rem; }
.tl-org { margin: 0 0 .4rem; color: var(--g-text); }
.timeline p:last-child { margin-bottom: 0; }

.aside-team li + li { margin-top: .5rem; }
.aside-team a { display: flex; align-items: center; gap: .85rem; padding: .5rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--g-heading); transition: background-color .2s; }
.aside-team a:hover { background: var(--g-mint); }
.aside-team strong { display: block; font-weight: 600; line-height: 1.3; }
.aside-team small { display: block; color: var(--g-text); line-height: 1.35; }
.mini-img { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--g-mint); }
.mini-img.ritratto-iniziali { font-size: 1.05rem; }

html { scroll-behavior: smooth; scroll-padding-top: 8rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
