/* Geminass – foglio di stile principale */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-950: #142a22;
  --green-900: #1f3f33;
  --green: #2a5342;
  --sage: #619e85;
  --olive: #b2af13;
  --olive-700: #7c7a0b;
  --ink: #1b2320;
  --muted: #5a6560;
  --line: #e2e5df;
  --tint: #f5f6f1;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 42, 34, .06), 0 8px 24px rgba(20, 42, 34, .07);
  --container: 1180px;
  --header-h: 76px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .6em; color: var(--green-950); }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .4em; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.17em; }
.icon--lg { width: 40px; height: 40px; color: var(--green); margin-bottom: 14px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-700); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--olive); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }

/* Bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-900); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--ghost:hover { border-color: var(--olive); color: #fff; background: rgba(255,255,255,.06); }
.btn--light { background: #fff; color: var(--green-900); }
.btn--light:hover { background: var(--tint); color: var(--green-950); }
.btn--sm { padding: 9px 18px; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green); text-decoration: none; }
.more .icon { transition: transform .2s; }
a:hover .more .icon, .more:hover .icon { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(20,42,34,.06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { width: 150px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--green); background: var(--tint); }
.nav a.nav__cta { background: var(--green); color: #fff; padding: 9px 18px; border-radius: 999px; margin-left: 8px; }
.nav a.nav__cta:hover { background: var(--green-900); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; position: relative; }
.nav-toggle span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--green-950); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle span:nth-child(1) { top: 15px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(20,42,34,.1); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a.nav__cta { margin: 14px 0 0; text-align: center; border-bottom: 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; padding: 72px 0 40px; background:
  radial-gradient(900px 500px at 85% 20%, rgba(178,175,19,.22), transparent 60%),
  linear-gradient(140deg, var(--green-950) 0%, var(--green-900) 45%, var(--green) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16zM28 64v33' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E"); background-size: 56px 97px; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--olive); }
.hero .lead { color: rgba(255,255,255,.82); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__figure { position: relative; justify-self: center; max-width: 380px; }
.hero__figure::before { content: ""; position: absolute; inset: 12% -6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.18), transparent); }
.hero__figure img { position: relative; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); max-height: 520px; width: auto; }
.stats { position: relative; list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.14); border-radius: var(--radius); overflow: hidden; }
.stats li { margin: 0; padding: 22px 24px; background: rgba(20,42,34,.55); }
.stats strong { display: block; font-size: 1.45rem; color: var(--olive); font-weight: 800; }
.stats span { font-size: .92rem; color: rgba(255,255,255,.78); }
@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } .hero__cta .btn { width: 100%; } }

/* Sezioni */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--green-900); color: rgba(255,255,255,.86); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--olive); }
.section--page { padding: 56px 0 96px; }
.section__head { max-width: 760px; margin-bottom: 40px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--wide { grid-template-columns: 1.2fr .8fr; align-items: start; }
.figure { margin: 0; }
@media (max-width: 900px) { .section { padding: 64px 0; } .split, .split--wide { grid-template-columns: 1fr; gap: 36px; } }

/* Card */
.cards { display: grid; gap: 20px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin-bottom: 0; }
.card--link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s, border-color .2s; }
.card--link:hover { transform: translateY(-3px); border-color: var(--sage); color: inherit; }
.card--link .more { margin-top: auto; padding-top: 18px; }
.card--portal { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: inherit; transition: transform .2s, border-color .2s; }
.card--portal img { width: 220px; margin: -10px 0 0; }
.card--portal p { margin: 0 0 18px; font-weight: 600; }
.card--portal:hover { transform: translateY(-3px); border-color: var(--olive); color: inherit; }
.features { margin-top: 48px; }
@media (max-width: 900px) { .cards--3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cards--2 { grid-template-columns: 1fr; } }

/* Tabs servizi */
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tabs__list button { font: inherit; font-weight: 700; font-size: .95rem; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tabs__list button:hover { border-color: var(--sage); }
.tabs__list button[aria-selected="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.tabs__panel { display: grid; grid-template-columns: 1fr 240px; gap: 48px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 44px; box-shadow: var(--shadow); }
.tabs__panel + .tabs__panel { margin-top: 20px; }
.js .tabs__panel + .tabs__panel { margin-top: 0; }
.tabs__panel[hidden] { display: none; }
.tabs__panel h3 { font-size: 1.5rem; }
.tabs__panel p, .tabs__panel li { color: #39433f; }
.tabs__panel ul { margin-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; margin-bottom: 14px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); border: 2px solid var(--olive); color: var(--green-950); font-weight: 800; font-size: .85rem; display: grid; place-items: center; }
.contact__forms .tabs__panel { display: block; padding: 0; border: 0; box-shadow: none; background: none; }
.contact__forms .tabs__panel[hidden] { display: none; }
@media (max-width: 800px) {
  .tabs__panel { grid-template-columns: 1fr; padding: 28px 22px; gap: 20px; }
  .tabs__panel > img { order: -1; width: 160px; }
  .tabs__list:not(.tabs__list--pill) { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 20px; padding: 2px 20px 6px; scrollbar-width: none; }
  .tabs__list:not(.tabs__list--pill)::-webkit-scrollbar { display: none; }
  .tabs__list button { white-space: nowrap; }
}

/* Governance */
.people { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.person { margin: 0; position: relative; padding: 26px 28px 22px 70px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.person h3 { margin-bottom: 2px; font-size: 1.3rem; }
.person p { margin: 0; }
.person__role { color: var(--olive); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px !important; }
.person__mark { position: absolute; left: 28px; top: 32px; width: 18px; height: 18px; border-radius: 50%; background: var(--olive); box-shadow: 0 0 0 6px rgba(178,175,19,.18); }
.link-light { color: #fff; font-weight: 700; }
.link-light:hover { color: var(--olive); }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.news-card:hover { transform: translateY(-3px); border-color: var(--sage); color: inherit; }
.news-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.news-card__body { padding: 20px 22px 24px; }
.news-card time { font-size: .82rem; color: var(--muted); font-weight: 600; }
.news-card h3 { font-size: 1.05rem; margin: 6px 0 8px; }
.news-card p { font-size: .93rem; color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } }

/* Fascia brochure */
.band { background: linear-gradient(120deg, var(--green) 0%, var(--sage) 100%); color: #fff; padding: 48px 0; }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h2 { color: #fff; font-size: 1.6rem; margin-bottom: 4px; }
.band p { margin: 0; color: rgba(255,255,255,.88); }

/* Contatti */
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 56px; }
.office { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.office__map img { aspect-ratio: 10 / 3.4; object-fit: cover; width: 100%; transition: transform .4s; }
.office__map { display: block; overflow: hidden; }
.office__map:hover img { transform: scale(1.03); }
.office__body { padding: 22px 26px 24px; }
.office__body h3 { margin-bottom: 8px; }
.office__body p { display: flex; gap: 8px; color: var(--muted); margin-bottom: 10px; }
.office__body p .icon { color: var(--olive-700); margin-top: 5px; }
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.contact__aside p { color: var(--muted); }
.contact__aside .icon { color: var(--olive-700); }
.contact__forms { background: var(--tint); border-radius: calc(var(--radius) + 4px); padding: 32px; }
.tabs__list--pill { background: #fff; border-radius: 999px; padding: 5px; display: inline-flex; border: 1px solid var(--line); }
.tabs__list--pill button { border: 0; }
@media (max-width: 900px) { .offices, .contact { grid-template-columns: 1fr; gap: 24px; } .contact__forms { padding: 22px 18px; } }

/* Form */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .93rem; }
.form small { font-weight: 500; color: var(--muted); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #cfd5ce; border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(42,83,66,.15); }
.form input[type=file] { font: inherit; font-size: .93rem; padding: 10px; background: #fff; border: 1px dashed #b9c1b8; border-radius: 10px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.form .check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green); flex: none; }
.form__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__status { margin: 0; font-weight: 600; }
.form__status.is-ok { color: var(--green); }
.form__status.is-err { color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* Pagine interne */
.page-hero { background: linear-gradient(140deg, var(--green-950), var(--green)); color: #fff; padding: 56px 0 48px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: .3em; }
.page-hero .lead { color: rgba(255,255,255,.82); margin: 0; }
.page-hero__meta { margin: 8px 0 0; color: rgba(255,255,255,.7); font-size: .92rem; }
.crumbs { font-size: .88rem; margin-bottom: 14px; color: rgba(255,255,255,.6); }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumbs a:hover { color: var(--olive); }
.prose { max-width: 820px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #333d39; }
.notice { background: var(--tint); border-left: 4px solid var(--olive); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; margin-bottom: 1em; }
.notice p:last-child { margin: 0; }
.table-wrap { overflow-x: auto; margin-bottom: 1em; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--tint); font-weight: 700; }
.article-meta { color: var(--muted); font-weight: 600; font-size: .92rem; }
.doc-link { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--tint); font-weight: 700; text-decoration: none; }
.doc-link:hover { border-color: var(--sage); }
.back { margin-top: 2.5em; }

/* Footer */
.site-footer { background: var(--green-950); color: rgba(255,255,255,.72); font-size: .95rem; padding-top: 64px; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: var(--olive); }
.site-footer h2 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.site-footer__logo { width: 160px; margin-bottom: 16px; }
.doclist a { display: inline-flex; gap: 8px; align-items: center; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; padding-bottom: 28px; font-size: .85rem; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; gap: 28px; } }
