/* Orizzonti Condivisi — stile del sito */
@font-face { font-family: "Lora"; src: url("fonts/lora-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #f9f8f4;
  --bg-soft: #f2f4f1;
  --card: #fcfcf9;
  --line: #e6e4dd;
  --ink: #2c2c2a;
  --text: #4a4946;
  --muted: #6c6a65;
  --green: #344a3c;
  --green-dark: #374e40;
  --terra: #a24f37;
  --terra-dark: #8c412c;
  --tile: #e6eeea;
  --alert-bg: #f6ecea;
  --alert-line: #d9b6ad;
  --alert-ink: #8e3b2c;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wrap: 1180px;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); color: var(--green); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.narrow { max-width: 760px; }
.section { padding-block: 96px; }
.section-soft { background: var(--bg-soft); }
.eyebrow { font: 600 13px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--terra); margin-bottom: 18px; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; margin-top: 12px; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* bottoni */
.btn { display: inline-flex; align-items: center; gap: 12px; background: var(--terra); color: #fff; text-decoration: none; font: 600 16px/1 var(--sans); padding: 18px 30px; border-radius: 999px; border: 0; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--terra-dark); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 13px 24px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* intestazione */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(249, 248, 244, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 500 21px/1 var(--serif); color: var(--green); white-space: nowrap; }
.brand-mark { width: 46px; height: auto; flex: none; }
.brand-txt { display: flex; flex-direction: column; gap: 4px; }
.brand-txt small { font: 600 8.5px/1 var(--sans, Inter, sans-serif); letter-spacing: .16em; text-transform: uppercase; color: #9A7650; }
.f-logo .f-mark { width: 64px; height: auto; margin-bottom: 10px; }
@media (max-width: 520px) { .brand-txt small { display: none; } .brand-mark { width: 38px; } }
.nav { display: flex; gap: 22px; margin-left: 8px; }
.header-cta, .nav-cta { white-space: nowrap; }
@media (max-width: 1360px) { .brand-txt small { display: none; } }
.nav a { text-decoration: none; font: 400 15px/1 var(--sans); color: #57564f; padding: 6px 0; white-space: nowrap; }
.nav a:hover { color: var(--green); }
.nav a[aria-current="page"] { color: var(--green); font-weight: 600; }
.header-cta { margin-left: auto; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--green); }
.menu-btn svg { width: 22px; height: 22px; }

/* hero home */
.hero { position: relative; min-height: clamp(600px, 66vw, 1150px); display: flex; align-items: flex-end; padding-bottom: 110px; background: url("../img/hero-orizzonte.jpg") center top / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 110px; background: linear-gradient(to bottom, rgba(249, 248, 244, 0), var(--bg)); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(38px, 7vw, 92px); letter-spacing: -.01em; overflow-wrap: break-word; }
@media (max-width: 480px) { .hero h1 { font-size: 40px; } }
.hero .tagline { font: italic 500 clamp(19px, 2.2vw, 26px)/1.35 var(--serif); color: #3f4a40; margin: 22px 0 36px; }

/* testata delle pagine interne */
.page-hero { position: relative; padding-block: 110px 40px; }
.page-hero.has-img { padding-top: 230px; background: url("../img/hero-orizzonte.jpg") center 70% / cover no-repeat; }
.page-hero.has-img::before { content: ""; position: absolute; inset: 0; backdrop-filter: blur(26px); background: rgba(249, 248, 244, .25); }
.page-hero.has-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70%; background: linear-gradient(to bottom, rgba(249, 248, 244, 0), var(--bg) 85%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(40px, 5.2vw, 64px); }
.page-hero.has-img + .section { padding-top: 24px; }

/* testo corrente */
.prose { max-width: 900px; font-size: 18px; }
.prose-wide { max-width: none; font-size: 18px; }
.intro h2 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 30px; max-width: 960px; }
.intro .prose { max-width: 860px; }
.strong { font-weight: 600; color: var(--ink); }
.h2 { font-size: clamp(32px, 3.6vw, 46px); margin-bottom: 40px; }
.h2-tight { margin-bottom: 0; }

/* schede */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: 0 14px 34px rgba(52, 74, 60, .08); transform: translateY(-2px); }
.card h3 { font-size: 21px; margin: 22px 0 12px; }
.card p { font-size: 16px; color: var(--muted); }
.icon-tile { width: 46px; height: 46px; border-radius: 12px; background: var(--tile); color: var(--green); display: grid; place-items: center; }
.icon-tile svg { width: 22px; height: 22px; }
.card .more { margin-top: auto; padding-top: 18px; font: 600 15px/1 var(--sans); color: var(--terra); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.card .more svg { width: 16px; height: 16px; }

/* riquadro verde */
.cta-box { background: var(--green-dark); color: #e4ebe5; border-radius: 26px; text-align: center; padding: 84px 32px 90px; }
.cta-box h2 { color: #fff; font-size: clamp(32px, 3.6vw, 46px); margin-bottom: 24px; }
.cta-box p { font-size: 19px; line-height: 1.7; margin: 0 auto 36px; max-width: 640px; }

/* elenchi con spunta */
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 16px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; align-items: start; font-size: 17px; }
.checks .tick { width: 28px; height: 28px; border-radius: 50%; background: #e8ebe7; color: var(--green); display: grid; place-items: center; margin-top: 1px; }
.checks .tick svg { width: 14px; height: 14px; }

/* percorso in cinque passi */
.steps { list-style: none; margin: 56px auto 0; padding: 0; max-width: 860px; position: relative; }
.steps::before { content: ""; position: absolute; left: 29px; top: 30px; bottom: 30px; width: 2px; background: #cfd6d0; }
.steps li { display: grid; grid-template-columns: 60px 1fr; gap: 28px; margin-bottom: 44px; position: relative; }
.steps .num { width: 60px; height: 60px; border-radius: 50%; background: var(--green-dark); color: #fff; display: grid; place-items: center; font: 500 20px/1 var(--serif); }
.steps h3 { font-size: 23px; margin: 12px 0 10px; }
.steps p { margin: 0; color: var(--muted); }
.center { text-align: center; }

/* emergenze */
.alert { background: var(--alert-bg); border: 2px solid var(--alert-line); border-radius: 22px; padding: 44px 50px; }
.alert-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.alert-head .badge { width: 60px; height: 60px; border-radius: 50%; background: #efdcd7; color: var(--alert-ink); display: grid; place-items: center; flex: none; }
.alert-head .badge svg { width: 26px; height: 26px; }
.alert h2 { color: var(--alert-ink); font-size: 30px; }
.alert dl { display: grid; grid-template-columns: max-content 1fr; gap: 16px 14px; margin: 22px 0 26px; }
.alert dt { font-weight: 600; color: var(--ink); }
.alert dd { margin: 0; }
.alert a { color: var(--alert-ink); font-weight: 600; }
.alert .small { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--muted); margin: 0; }
.alert .small svg { width: 18px; height: 18px; flex: none; }
.note { font-style: italic; font-size: 16px; color: var(--muted); max-width: 900px; }

/* pagine delle aree */
.area-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; margin-top: 56px; }
.area-img { border-radius: var(--radius); overflow: hidden; box-shadow: 0 22px 48px rgba(40, 40, 30, .12); aspect-ratio: 1.11; background: #ece9e1; }
.area-img img { width: 100%; height: 100%; object-fit: cover; }
.area-grid h3 { font-size: 26px; margin-top: 40px; }
.area-grid .btn { margin-top: 36px; }
.team { display: grid; gap: 28px; margin-top: 44px; }
.team.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team.one { grid-template-columns: minmax(0, 640px); justify-content: center; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.person img { width: 100%; aspect-ratio: 1.33; object-fit: cover; object-position: center center; background: #eef1f3; }
.person .body { padding: 34px 38px 38px; }
.person h3 { font-size: 23px; }
.person .role { font: 600 14px/1.45 var(--sans); letter-spacing: .03em; text-transform: uppercase; color: var(--terra); margin: 10px 0 18px; }
.person p { margin: 0; }
.disclaimer { border-left: 4px solid #d4aaa0; padding: 6px 0 6px 24px; font-style: italic; font-size: 16px; color: var(--muted); max-width: 900px; }

/* modulo */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; max-width: 760px; margin-top: 40px; }
.field { margin-bottom: 28px; }
.field > label, .field > legend { display: block; font: 500 17px/1.4 var(--sans); color: var(--ink); margin-bottom: 12px; padding: 0; }
.field .opt { color: var(--muted); font-weight: 400; }
.req { color: var(--terra); }
.hint { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
input[type="text"], input[type="email"], select, textarea { width: 100%; font: 400 17px/1.4 var(--sans); color: var(--ink); background: var(--bg); border: 1px solid #dcd9d1; border-radius: 12px; padding: 15px 16px; }
textarea { min-height: 170px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(162, 79, 55, .35); border-color: var(--terra); }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice { display: flex; align-items: center; gap: 14px; border: 1px solid #dcd9d1; border-radius: 14px; padding: 18px 20px; cursor: pointer; background: var(--bg); font-size: 17px; }
.choice:has(input:checked) { border-color: var(--terra); background: #fbf3f0; }
.choice input { width: 20px; height: 20px; accent-color: var(--terra); margin: 0; }
.urgent { display: grid; grid-template-columns: 22px 1fr; gap: 14px; border: 1px solid #dcd9d1; border-radius: 14px; padding: 20px; margin-bottom: 26px; cursor: pointer; }
.urgent b { font-weight: 500; color: var(--ink); }
.urgent span { display: block; font-size: 15px; color: var(--muted); margin-top: 6px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 14px; margin-bottom: 30px; cursor: pointer; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--terra); margin: 3px 0 0; }
.form-foot { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); margin-top: 20px; }
.form-foot svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.hidden-field { display: none; }

/* piè di pagina */
.site-footer { background: var(--green-dark); color: #d8e0d9; margin-top: 110px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 84px 60px; }
.site-footer h2 { color: #fff; font-size: 32px; margin-bottom: 22px; }
.site-footer h3 { color: #fff; font-size: 22px; margin-bottom: 26px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.f-mail { display: flex; gap: 12px; align-items: center; font-size: 19px; }
.f-mail svg, .f-gdpr svg { width: 20px; height: 20px; flex: none; }
.f-gdpr { display: flex; gap: 12px; font-size: 15px; color: #b9c4bb; margin-top: 20px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 40px 48px; font-size: 15px; color: #b9c4bb; }
.footer-bottom p { font-style: italic; margin-bottom: 18px; }
.footer-bottom small { font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.footer-bottom small svg { width: 15px; height: 15px; color: #d27b66; }
.no-cta-gap .site-footer { margin-top: 70px; }

/* comparsa morbida delle sezioni */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.pending { opacity: 0; transform: translateY(18px); }
}

/* tablet e telefono */
@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .nav.open { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(24px, env(safe-area-inset-left)) 20px; }
  .nav.open a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav.open .nav-cta { display: inline-flex; margin-top: 18px; border: 0; justify-content: center; color: #fff; }
}
@media (min-width: 1081px) { .nav .nav-cta { display: none; } }
@media (max-width: 860px) {
  body { font-size: 16px; }
  .section { padding-block: 70px; }
  .cards, .team.two, .area-grid, .footer-grid { grid-template-columns: 1fr; }
  .area-grid { gap: 36px; margin-top: 36px; }
  .hero { min-height: 560px; padding-bottom: 90px; background-position: 70% 40%; }
  .alert { padding: 30px 24px; }
  .alert dl { grid-template-columns: 1fr; gap: 4px; }
  .alert dd { margin-bottom: 12px; }
  .form-card { padding: 26px 20px; }
  .choices { grid-template-columns: 1fr; }
  .cta-box { padding: 60px 22px 64px; }
  .steps li { grid-template-columns: 48px 1fr; gap: 18px; }
  .steps .num { width: 48px; height: 48px; font-size: 18px; }
  .steps::before { left: 23px; }
  .person .body { padding: 26px 24px 28px; }
  .footer-grid { padding-block: 64px 40px; gap: 34px; }
}

/* ritocchi */
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 900px; }
.steps li:last-child { margin-bottom: 0; }
.steps + .center { margin-top: 56px; }
.disclaimer { margin: 0; }
legend { padding: 0; }

.policy-sec { padding-top: 10px; }
.policy { font-size: 17px; }
.policy h2 { font-size: 24px; margin: 38px 0 10px; }
.policy h2:first-child { margin-top: 0; }
.policy p { margin: 0 0 12px; }
.small-note { font-size: 14px; color: #7a786f; margin-top: 30px; }
.consent a, .f-gdpr a { color: inherit; text-decoration: underline; }
