/* Diamond ReTool · stile del sito allineato alla brochure
   Titoli: Barlow Condensed (alternativa libera al DIN Condensed della brochure)
   Testi: Arial / Helvetica, come nella brochure                                  */

@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-condensed-500.woff") format("woff"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600.woff") format("woff"); }

:root {
  --paper: #f2f1ec;
  --white: #ffffff;
  --ink: #16252e;
  --text: #2f3d45;
  --muted: #5b6870;
  --petrol: #134a68;
  --petrol-dark: #0f3d56;
  --navy: #101d26;
  --navy-deep: #0b151c;
  --sky: #8ec8e2;
  --sky-light: #c4e6f5;
  --line: rgba(22, 37, 46, .16);
  --line-light: rgba(255, 255, 255, .16);
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
  --body: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.6 var(--body); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.sr-only { 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(--white); color: var(--ink); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.paper { background: var(--paper); }
.white { background: var(--white); }
.petrol { background: var(--petrol); color: var(--sky-light); }
.navy { background: var(--navy); color: #d6e2e9; }

/* ---------- tipografia ---------- */
.label { font: 700 14px/1.35 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--petrol); margin-bottom: 18px; }
.label-sky { color: var(--sky); }
.display { font-family: var(--display); font-weight: 600; text-transform: uppercase; line-height: .95; letter-spacing: .005em; color: var(--ink); text-wrap: balance; }
.petrol .display, .navy .display { color: var(--white); }
.display-xl { font-size: clamp(52px, 8.2vw, 112px); max-width: 12ch; }
.display-lg { font-size: clamp(44px, 6vw, 80px); max-width: 14ch; }
.display-md { font-size: clamp(30px, 3.2vw, 42px); }
.display-sm { font-size: clamp(26px, 2.4vw, 32px); }
.lead { margin-top: clamp(24px, 3vw, 40px); font-size: clamp(19px, 1.8vw, 24px); line-height: 1.5; color: var(--ink); max-width: 46ch; }
.prose { margin-top: 28px; display: grid; gap: 18px; font-size: 18px; max-width: 62ch; }
.prose strong { color: var(--ink); }
.prose h2 { font: 600 clamp(26px, 2.6vw, 34px)/1 var(--display); text-transform: uppercase; color: var(--ink); margin-top: 18px; }
.prose a { color: var(--petrol); font-weight: 700; }

/* ---------- pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 26px; border: 2px solid transparent; border-radius: 2px; font: 700 15px/1.2 var(--body); letter-spacing: .05em; text-transform: uppercase; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-sky { background: var(--sky); color: var(--navy); }
.btn-sky:hover { background: var(--sky-light); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-petrol { background: var(--petrol); color: var(--white); }
.btn-petrol:hover { background: var(--petrol-dark); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- intestazione ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-row { min-height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { flex: none; }
.brand img { width: auto; height: 50px; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(16px, 1.6vw, 26px); }
.main-nav a { white-space: nowrap; font: 700 14px/1 var(--body); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding-block: 8px; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--sky); }
.main-nav .nav-cta { background: var(--petrol); color: var(--white); padding: 14px 18px; border: 0; }
.main-nav .nav-cta:hover { background: var(--petrol-dark); }
.langs { display: flex; gap: 4px; }
.langs a { font: 700 13px/1 var(--body); letter-spacing: .06em; text-decoration: none; color: var(--muted); padding: 8px 6px; }
.langs a.is-current { color: var(--petrol); box-shadow: inset 0 -2px var(--petrol); }
.menu-toggle { display: none; }

@media (max-width: 1240px) {
  :root { --header-h: 72px; }
  .brand img { height: 46px; }
  .langs { margin-left: auto; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--white); border-radius: 2px; cursor: pointer; }
  .menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
  .menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
  .menu-bars::before { top: -7px; } .menu-bars::after { top: 7px; }
  .menu-open .menu-bars { background: transparent; }
  .menu-open .menu-bars::before { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-bars::after { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; display: none; margin: 0; }
  .menu-open .main-nav { display: flex; }
  .main-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .main-nav .nav-cta { margin-top: 16px; text-align: center; }
}
@media (max-width: 420px) { .brand img { height: 38px; } .header-row { gap: 12px; } .langs a { padding-inline: 4px; } }

/* ---------- apertura ---------- */
.hero { position: relative; background: var(--navy); color: #d6e2e9; overflow: hidden; isolation: isolate; }
.hero-photo { position: absolute; inset: 0 0 0 auto; width: min(62%, 980px); height: 100%; object-fit: cover; object-position: 30% 50%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 38%, rgba(16,29,38,.78) 52%, rgba(16,29,38,.35) 72%, rgba(16,29,38,.55) 100%),
              linear-gradient(0deg, rgba(16,29,38,.85) 0%, rgba(16,29,38,0) 30%); }
.hero-inner { min-height: min(88vh, 900px); padding-block: clamp(56px, 8vw, 104px); display: flex; flex-direction: column; justify-content: center; }
.hero-words { font-family: var(--display); font-weight: 600; text-transform: uppercase; color: var(--white); font-size: clamp(64px, 10.5vw, 152px); line-height: .9; letter-spacing: .005em; display: grid; }
.hero-text { margin-top: clamp(24px, 3vw, 36px); font-size: clamp(19px, 1.8vw, 24px); line-height: 1.45; color: #e7eef2; max-width: 30ch; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-quote { margin-top: clamp(40px, 6vw, 72px); align-self: flex-end; text-align: right; font: italic 400 clamp(18px, 1.7vw, 24px)/1.4 var(--body); color: var(--sky); }
.hero-quote span { color: var(--sky-light); }
@media (max-width: 760px) {
  .hero-photo { inset: 0 0 auto 0; width: 100%; height: auto; aspect-ratio: 717 / 1055; object-position: 50% 50%; opacity: .55; -webkit-mask-image: linear-gradient(#000 55%, transparent 100%); mask-image: linear-gradient(#000 55%, transparent 100%); }
  .hero-actions .btn { letter-spacing: .03em; padding-inline: 18px; }
  .hero::before { background: linear-gradient(180deg, rgba(16,29,38,.55) 0%, rgba(16,29,38,.85) 60%, var(--navy) 100%); }
  .hero-inner { min-height: auto; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-quote { align-self: flex-start; text-align: left; }
}

/* ---------- servizi ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(40px, 6vw, 96px); align-items: end; }
.intro-grid .lead { margin-top: 0; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: minmax(0, 1fr); } }
.strip { margin-block: clamp(48px, 6vw, 80px); height: clamp(200px, 30vw, 420px); overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(32px, 6vw, 96px); }
.service { border-top: 2px solid var(--petrol); padding-top: 22px; }
.service h3 { max-width: 14ch; }
.service p { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 42ch; }
@media (max-width: 760px) { .services-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- costi ---------- */
.costs-title { max-width: none; }
.costs-head { margin-top: clamp(28px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end; }
.costs-text { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--sky-light); max-width: 34ch; }
.costs-figure { display: grid; justify-items: end; text-align: right; }
.costs-percent { font: 600 clamp(96px, 16vw, 230px)/.85 var(--display); color: var(--white); letter-spacing: -.005em; white-space: nowrap; font-variant-numeric: lining-nums; }
.costs-caption { margin-top: 14px; color: var(--sky); font-size: clamp(16px, 1.5vw, 20px); }
.chart { margin-top: clamp(48px, 6vw, 80px); }
.chart figcaption { text-align: center; color: var(--white); font: 700 20px/1.2 var(--body); margin-bottom: 18px; }
.chart svg { width: 100%; height: auto; overflow: visible; font-family: var(--body); }
.chart-narrow { display: none; }
.c-grid { stroke: rgba(196,230,245,.22); stroke-width: 1; }
.c-tick { fill: #e3eef4; font-size: var(--fs); }
.c-without { stroke: #c7d0d6; stroke-width: 4; stroke-dasharray: 16 12; }
.c-with { fill: none; stroke: var(--sky); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.c-dot { fill: var(--sky); }
.chart-legend { list-style: none; padding: 0; margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; color: #e3eef4; font-size: 17px; }
.chart-legend li { display: flex; align-items: center; gap: 12px; }
.chart-legend li::before { content: ""; width: 56px; height: 0; border-top: 4px dashed #c7d0d6; }
.chart-legend .legend-with::before { border-top: 6px solid var(--sky); border-radius: 3px; }
.savings { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line-light); }
.savings-label { font: 700 clamp(22px, 2.4vw, 32px)/1.2 var(--body); text-transform: uppercase; color: var(--sky); }
.savings-formula { margin-top: 14px; font: 400 clamp(32px, 5vw, 64px)/1.15 var(--body); color: var(--white); font-variant-numeric: tabular-nums; }
.savings-formula strong { font-weight: 700; white-space: nowrap; }
.savings-note { margin-top: 24px; font-size: 15px; color: #cfe2ec; max-width: 70ch; }
@media (max-width: 860px) {
  .costs-head { grid-template-columns: minmax(0, 1fr); }
  .costs-figure { justify-items: start; text-align: left; }
}
@media (max-width: 600px) {
  .chart-wide { display: none; }
  .chart-narrow { display: block; }
}

/* ---------- metodo ---------- */
.method-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.method-photo { position: sticky; top: calc(var(--header-h) + 32px); aspect-ratio: 1; overflow: hidden; }
.method-photo img { width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; padding: 0; margin-top: clamp(32px, 4vw, 48px); display: grid; gap: 0; }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; padding-block: 28px; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num { font: 600 clamp(44px, 4.5vw, 64px)/.9 var(--display); color: var(--petrol); font-variant-numeric: lining-nums tabular-nums; }
.step p { margin-top: 10px; color: var(--muted); font-size: 18px; max-width: 58ch; }
@media (max-width: 860px) {
  .method-grid { grid-template-columns: minmax(0, 1fr); }
  .method-photo { position: static; }
}

/* ---------- chi siamo ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-photo { aspect-ratio: 4 / 5; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.vision { margin-top: clamp(64px, 8vw, 112px); padding: clamp(32px, 5vw, 64px); background: var(--paper); border-left: 6px solid var(--petrol); }
.vision-quote { font: italic 400 clamp(30px, 4vw, 52px)/1.15 var(--body); color: var(--petrol); }
.vision-text { margin-top: 20px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--ink); max-width: 56ch; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-photo { aspect-ratio: 16 / 11; order: -1; }
}

/* ---------- contatti ---------- */
.contact { position: relative; overflow: hidden; isolation: isolate; }
.contact-art { position: absolute; right: -4%; top: 4%; height: 92%; width: auto; max-width: none; opacity: .5; z-index: -1; pointer-events: none; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 6vw, 96px); align-items: start; }
.contact .display-lg { max-width: 13ch; }
.contact-phone { display: inline-block; margin-top: clamp(32px, 4vw, 48px); font: 600 clamp(44px, 5.6vw, 76px)/1 var(--display); color: var(--sky); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; white-space: nowrap; font-variant-numeric: lining-nums; }
.contact-phone-caption { margin-top: 14px; }
.contact-email { display: inline-block; margin-top: 16px; font-size: clamp(22px, 2.4vw, 32px); color: var(--sky); text-underline-offset: 5px; overflow-wrap: anywhere; }
.contact-office { margin-top: 40px; font-style: normal; line-height: 1.6; color: #b9c7cf; }
.contact-office strong { display: block; color: var(--white); font-weight: 400; }
.contact-legal { margin-top: 18px; font-size: 15px; color: #9fb0ba; }
.contact-legal a { color: inherit; }
.contact-form { background: var(--white); color: var(--text); padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 16px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.contact-form .display { color: var(--ink); margin-bottom: 4px; }
.field { display: grid; gap: 6px; font: 700 13px/1.3 var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { width: 100%; font: 400 17px/1.4 var(--body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 13px 14px; min-height: 50px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--petrol); outline-offset: 0; border-color: var(--petrol); background: var(--white); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--petrol); }
.check a { color: var(--petrol); font-weight: 700; }
.contact-form .btn { width: 100%; margin-top: 4px; }
.form-status { padding: 14px 16px; font-size: 15px; font-weight: 700; border: 2px solid; }
.form-status.ok { color: #1d5b37; background: #e6f4eb; border-color: #a9d8ba; }
.form-status.ko { color: #8a1f1f; background: #fbeaea; border-color: #ebb3b3; }
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-art { height: 60%; top: 2%; opacity: .35; }
}

/* ---------- piè di pagina ---------- */
.site-footer { background: var(--white); color: var(--muted); border-top: 1px solid var(--line); padding-block: 56px 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 32px 48px; align-items: start; }
.footer-logo { height: 56px; width: auto; }
.footer-brand .label { margin: 16px 0 0; }
.footer-contacts { font-style: normal; display: grid; gap: 6px; }
.footer-contacts a, .footer-links a { color: var(--ink); text-decoration: none; }
.footer-contacts a:hover, .footer-links a:hover { text-decoration: underline; }
.footer-links { display: grid; gap: 6px; justify-items: end; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; letter-spacing: .02em; }
.footer-linkedin { display: inline-flex; align-items: center; gap: 10px; color: var(--petrol) !important; font-weight: 700; }
.footer-linkedin svg { width: 26px; height: 26px; fill: var(--petrol); flex: none; }
.footer-linkedin:hover svg { fill: var(--petrol-dark); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-items: start; }
}

/* ---------- privacy ---------- */
.legal-wrap { max-width: 860px; }
.legal-box { margin-top: 36px; padding: 24px 28px; background: var(--white); border-left: 6px solid var(--petrol); display: grid; gap: 6px; }
.legal-box a { color: var(--petrol); }
.legal-body { margin-top: 40px; max-width: none; }
.legal-updated { margin-block: 40px 28px; font-size: 14px; color: var(--muted); }

/* ---------- elementi fissi ---------- */
.whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: var(--white); box-shadow: 0 10px 30px -8px rgba(0,0,0,.45); transition: transform .2s; }
.whatsapp:hover { transform: scale(1.06); }
.whatsapp svg { width: 30px; height: 30px; fill: currentColor; }
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 60; width: min(420px, calc(100% - 40px)); background: var(--navy); color: #d6e2e9; padding: 24px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); font-size: 15px; display: grid; gap: 12px; border-top: 4px solid var(--sky); }
.cookie[hidden] { display: none; }
.cookie-title { font: 600 26px/1 var(--display); text-transform: uppercase; color: var(--white); }
.cookie a { color: var(--sky); font-weight: 700; }

/* ---------- comparsa leggera al passaggio ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .chart .c-with { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s ease .2s; }
.js .chart.is-visible .c-with { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .chart .c-with { opacity: 1; transform: none; transition: none; stroke-dashoffset: 0; }
}

/* ---------- brochure ---------- */
.hero-download { margin-top: 22px; align-self: flex-start; color: var(--sky); font-weight: 700; text-underline-offset: 5px; }
.hero-download span { font-weight: 400; color: #b9c7cf; margin-left: 6px; }
.hero-download::before { content: "↓"; margin-right: 8px; }
.brochure-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.brochures { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.brochure-card a { display: grid; gap: 6px; text-decoration: none; color: var(--ink); }
.brochure-card img { width: 100%; height: auto; box-shadow: 0 18px 36px -20px rgba(16,29,38,.55); transition: transform .25s ease, box-shadow .25s ease; margin-bottom: 12px; }
.brochure-card a:hover img { transform: translateY(-4px); box-shadow: 0 26px 44px -20px rgba(16,29,38,.6); }
.brochure-lang { font: 600 26px/1 var(--display); text-transform: uppercase; }
.brochure-meta { font-size: 14px; color: var(--muted); }
.brochure-card .btn { margin-top: 10px; min-height: 46px; padding: 12px 14px; font-size: 13px; }
.brochure-card:not(.is-current) .btn { background: transparent; color: var(--petrol); border-color: var(--petrol); }
.brochure-card:not(.is-current) a:hover .btn { background: var(--petrol); color: var(--white); }
@media (max-width: 960px) { .brochure-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .brochures { grid-template-columns: minmax(0, 1fr); }
  .brochure-card a { grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 18px; align-items: start; }
  .brochure-card img { grid-row: 1 / span 3; margin: 0; }
  .brochure-card .btn { align-self: end; }
}
