/* =========================================================
   Danibel — foglio di stile
   Nessuna dipendenza esterna: font e icone sono locali.
   ========================================================= */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations"),
       url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #17212b;
  --ink-soft: #4a5562;
  --paper: #ffffff;
  --mist: #eef1f4;
  --line: #d9dee4;
  --red: #e30613;
  --red-deep: #b5040f;
  --orange: #f7941d;
  --amber: #ffc20e;
  --night: #1d2733;

  --ring: linear-gradient(120deg, var(--amber) 0%, var(--orange) 45%, var(--red) 100%);

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius-s: 6px;
  --radius-l: 18px;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 { text-wrap: balance; margin: 0 0 .6em; line-height: 1.1; font-weight: 760; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-stretch: 118%; letter-spacing: -.025em; line-height: 1.02; font-weight: 820; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.55rem); font-stretch: 112%; letter-spacing: -.015em; }
h3 { font-size: 1.2rem; font-stretch: 104%; font-weight: 700; line-height: 1.25; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 68ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--ink-soft); max-width: 58ch; }

.skip {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6em 1em; z-index: 99;
}
.skip:focus { left: 1rem; top: 1rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.35em; border-radius: 999px;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--amber); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: block; flex: none; }
.brand img { width: 190px; height: auto; }

.nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav-list > li { position: relative; }
.nav-list a,
.nav-sub-toggle {
  display: block; padding: .55em .8em; border-radius: var(--radius-s);
  color: var(--ink); text-decoration: none; font: inherit; font-size: .98rem; font-weight: 560;
  background: none; border: 0; cursor: pointer;
}
.nav-list a:hover,
.nav-sub-toggle:hover { background: var(--mist); color: var(--ink); }
.nav-list a[aria-current="page"],
.nav-sub-toggle.is-current { color: var(--red-deep); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.nav-sub-toggle { display: inline-flex; align-items: center; gap: .3em; }
.nav-sub-toggle::after { content: ""; width: .45em; height: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }

.nav-sub {
  list-style: none; margin: 0; padding: .6rem;
  position: absolute; top: calc(100% + 8px); left: -1rem;
  width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: .15rem;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(23, 33, 43, .35);
  visibility: hidden; opacity: 0; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-sub a { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem .8rem; }
.nav-sub a .icon { color: var(--red); margin-top: .15em; }
.nav-sub small { display: block; color: var(--ink-soft); font-weight: 400; font-size: .85rem; line-height: 1.35; }
.has-sub.is-open .nav-sub,
.has-sub:focus-within .nav-sub { visibility: visible; opacity: 1; transform: none; }
@media (hover: hover) and (min-width: 1001px) {
  .has-sub:hover .nav-sub { visibility: visible; opacity: 1; transform: none; }
}

.header-cta { flex: none; }
.menu-toggle { display: none; }

@media (max-width: 1000px) {
  .site-header .wrap { min-height: 66px; flex-wrap: wrap; }
  .brand img { width: 150px; }
  .header-cta { margin-left: auto; padding: .7em 1em; font-size: .92rem; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink);
  }
  .nav { display: none; order: 5; width: 100%; margin: 0; padding: .5rem 0 1.25rem; }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a, .nav-sub-toggle { padding: .8em .4em; font-size: 1.05rem; width: 100%; text-align: left; }
  .nav-sub-toggle::after { margin-left: auto; }
  .nav-list a[aria-current="page"], .nav-sub-toggle.is-current { box-shadow: inset 3px 0 0 var(--red); padding-left: .9em; }
  .nav-sub { position: static; width: auto; grid-template-columns: 1fr; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin-left: .4em; padding: 0 0 0 .5rem; display: none; visibility: visible; opacity: 1; transform: none; }
  .has-sub.is-open .nav-sub { display: grid; }
}
@media (max-width: 420px) {
  .header-cta span { display: none; }
}

/* ---------- Selettore lingua ---------- */
.lang { position: relative; flex: none; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .55em .8em; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font: inherit; font-size: .92rem; font-weight: 650; line-height: 1; color: var(--ink); cursor: pointer;
}
.lang-toggle:hover { background: var(--mist); }
.lang-toggle .icon { color: var(--red); }
.lang-toggle::after { content: ""; width: .4em; height: .4em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: .1em; }
.lang-list {
  list-style: none; margin: 0; padding: .4rem;
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 190px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px -18px rgba(23, 33, 43, .35);
  visibility: hidden; opacity: 0; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.lang.is-open .lang-list,
.lang:focus-within .lang-list { visibility: visible; opacity: 1; transform: none; }
.lang-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .6rem .75rem; border-radius: var(--radius-s);
  color: var(--ink); text-decoration: none; font-size: .96rem; font-weight: 560;
}
.lang-list a span { font-size: .78rem; font-weight: 650; color: var(--ink-soft); letter-spacing: .04em; }
.lang-list a:hover { background: var(--mist); color: var(--ink); }
.lang-list a[aria-current] { color: var(--red-deep); box-shadow: inset 3px 0 0 var(--red); }
.nav-list > li > a, .nav-sub-toggle { white-space: nowrap; }
@media (min-width: 1001px) and (max-width: 1240px) {
  .site-header .wrap { gap: 1rem; }
  .nav-list > li > a, .nav-sub-toggle { padding-inline: .6em; }
  .header-cta { padding: .85em; }
  .header-cta span { display: none; }
}
@media (max-width: 1000px) {
  .lang { margin-left: auto; }
  .lang + .header-cta { margin-left: 0; }
  .lang-toggle { height: 46px; padding: 0 .85em; }
}
@media (max-width: 420px) {
  .site-header .wrap { gap: .5rem; }
  .brand img { width: 128px; }
  .lang-toggle { padding: 0 .75em; }
  .lang-toggle .icon, .lang-toggle::after { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 1.25rem; }
.hero-note { margin-top: 1.5rem; font-size: .95rem; color: var(--ink-soft); display: flex; gap: .5rem; align-items: center; }
.hero-note .icon { color: var(--red); }

/* L'anello: richiamo diretto al cerchio del logo */
.ring { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; margin-inline: auto; }
.ring svg.ring-arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring-arc .arc { fill: none; stroke: url(#ringGrad); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 1240; stroke-dashoffset: 0; }
.ring-arc .arc-end { fill: var(--red); }
.ring-arc .arc-inner { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 7; }
.ring-center {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  width: 38%; text-align: center;
}
.ring-center img { width: 52%; margin: 0 auto .5rem; }
.ring-center p { margin: 0; font-size: .9rem; line-height: 1.35; color: var(--ink-soft); }
.ring-node {
  position: absolute; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: .45em; white-space: nowrap;
  padding: .5em .85em .5em .6em; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  font-size: .92rem; font-weight: 600; text-decoration: none;
  box-shadow: 0 6px 18px -10px rgba(23, 33, 43, .45);
  transition: border-color .15s, color .15s;
}
.ring-node .icon { color: var(--red); width: 1.15em; height: 1.15em; }
.ring-node:hover { border-color: var(--red); color: var(--red-deep); }

@media (prefers-reduced-motion: no-preference) {
  .ring-arc .arc { animation: draw 1.6s cubic-bezier(.6, .1, .2, 1) both; }
  .ring-arc .arc-end { animation: pop .3s 1.45s both; }
  .ring-node { animation: nodeIn .4s both; animation-delay: calc(.35s + var(--i) * .12s); }
  @keyframes draw { from { stroke-dashoffset: 1240; } }
  @keyframes pop { from { opacity: 0; transform: scale(.2); transform-origin: center; } }
  @keyframes nodeIn { from { opacity: 0; } }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .ring { max-width: 420px; }
}
@media (max-width: 560px) {
  .ring { max-width: 340px; }
  .ring-node { font-size: .78rem; padding: .4em .65em .4em .5em; }
  .ring-node .icon { display: none; }
  .ring-center p { display: none; }
}

/* ---------- Sezioni ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-mist { background: var(--mist); }
.section-night { background: var(--night); color: #e8ecf0; }
.section-night h2, .section-night h3 { color: #fff; }
.section-night a { color: var(--amber); }
.section-night .lead { color: #b8c2cc; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { margin: 0; color: var(--ink-soft); max-width: 52ch; }
.section-night .section-head p { color: #b8c2cc; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }

/* Elenco servizi: righe, non card identiche */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 4.5rem); }
.services li { border-top: 1px solid var(--line); }
.services li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.services a { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1.1rem; padding: 1.5rem 0; text-decoration: none; color: var(--ink); }
.services .icon { grid-row: span 2; width: 2.6rem; height: 2.6rem; padding: .55rem; border-radius: 50%; background: #fff; color: var(--red); border: 1px solid var(--line); stroke-width: 1.6; }
.services h3 { margin: .1rem 0 0; transition: color .15s; }
.services p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.services a:hover h3 { color: var(--red-deep); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
@media (max-width: 760px) {
  .services { grid-template-columns: 1fr; }
  .services li:nth-last-child(2) { border-bottom: 0; }
}

/* Priorità attuali */
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 3rem); }
.topic { padding: 1.75rem 0 2rem; border-top: 1px solid #3a4756; }
.topic h3 { font-size: 1.15rem; margin-bottom: .55rem; }
.topic p { color: #c3ccd5; font-size: .99rem; margin-bottom: .8rem; }
.topic .when { display: inline-block; font-size: .8rem; font-weight: 650; color: var(--night); background: var(--amber); padding: .2em .6em; border-radius: 4px; margin-bottom: .9rem; }
@media (max-width: 960px) { .topics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .topics { grid-template-columns: 1fr; } }

/* Metodo: è una vera sequenza, quindi numerata */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 3.6rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-stretch: 115%; color: #fff; background: var(--red);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.3rem; left: 3.2rem; right: -.9rem; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 11px); }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--ink-soft); font-size: 1rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps li::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Area servita */
.area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.cities { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.cities li { padding: .45em .95em; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 560; font-size: .97rem; }
.cities li.more { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 800px) { .area { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-weight: 650; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 0 1.25rem; color: var(--ink-soft); max-width: 70ch; }
.faq .answer p:last-child { margin: 0; }

/* Banda contatto */
.cta-band { background: var(--red); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; width: 520px; aspect-ratio: 1; right: -260px; top: -220px; border-radius: 50%;
  border: 14px solid rgba(255, 194, 14, .55);
}
.cta-band .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band h2 { color: #fff; margin: 0 0 .35em; }
.cta-band p { margin: 0; max-width: 52ch; color: #ffe4e6; }
.cta-band .btn-row { margin: 0; }
.cta-band .btn-ghost { border-color: #fff; color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--red-deep); }

/* ---------- Pagine interne ---------- */
.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--mist), #fff 85%); }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-head.no-media .wrap { grid-template-columns: minmax(0, 1fr) auto; }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 18ch; }
.page-media { position: relative; }
.page-media img { border-radius: var(--radius-l); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page-media::before {
  content: ""; position: absolute; z-index: -1; width: 46%; aspect-ratio: 1; left: -9%; bottom: -12%;
  border-radius: 50%; background: conic-gradient(from 200deg, var(--amber), var(--orange), var(--red), transparent 75%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
}
.page-head .page-media { isolation: isolate; }
.mini-ring { width: clamp(120px, 16vw, 190px); }
@media (max-width: 860px) {
  .page-head .wrap, .page-head.no-media .wrap { grid-template-columns: 1fr; }
  .page-media { max-width: 520px; }
  .mini-ring { display: none; }
}

.crumbs { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .9rem; color: var(--ink-soft); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: #9aa4af; }
.crumbs a { color: var(--ink-soft); }

.content { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 960px) { .content { grid-template-columns: 1fr; } }

.block + .block { margin-top: clamp(2.5rem, 5vw, 3.75rem); }
.block > h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.block > p { max-width: 68ch; }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: .7rem; }
.ticks li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; }
.ticks .icon { color: var(--red); margin-top: .2em; stroke-width: 2.4; width: 1.05em; height: 1.05em; }
.ticks.cols { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
@media (max-width: 640px) { .ticks.cols { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; margin-top: 1.25rem; }
.feature { border-top: 2px solid var(--ink); padding: 1.1rem 0 1.4rem; }
.feature h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

.callout { border-left: 4px solid var(--orange); background: #fff8e6; padding: 1.25rem 1.5rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.callout h3 { margin-bottom: .4rem; }
.callout p:last-child { margin: 0; }

.tags { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tags li { font-size: .9rem; font-weight: 560; padding: .3em .75em; border-radius: var(--radius-s); background: var(--mist); }

/* Barra laterale */
.aside { position: sticky; top: 100px; display: grid; gap: 1.25rem; }
.aside-box { border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.5rem; background: #fff; }
.aside-box.dark { background: var(--night); color: #dfe5ea; border-color: var(--night); }
.aside-box.dark h2 { color: #fff; }
.aside-box h2 { font-size: 1.2rem; font-stretch: 105%; margin-bottom: .5rem; }
.aside-box p { font-size: .97rem; }
.aside-box .btn { width: 100%; justify-content: center; margin-top: .4rem; }
.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links li + li { border-top: 1px solid var(--line); }
.aside-links a { display: flex; gap: .65rem; align-items: center; padding: .65rem 0; color: var(--ink); text-decoration: none; font-weight: 560; font-size: .97rem; }
.aside-links a:hover { color: var(--red-deep); }
.aside-links .icon { color: var(--red); }
@media (max-width: 960px) { .aside { position: static; } }

/* Download assistenza */
.downloads { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.downloads a { display: flex; gap: .8rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: #fff; }
.downloads a:hover { border-color: var(--red); }
.downloads .icon { color: var(--red); width: 1.5em; height: 1.5em; }
.downloads strong { display: block; }
.downloads small { color: var(--ink-soft); }
@media (max-width: 640px) { .downloads { grid-template-columns: 1fr; } }

.howto { list-style: none; padding: 0; margin: 1rem 0 0; counter-reset: h; display: grid; gap: .9rem; }
.howto li { counter-increment: h; display: grid; grid-template-columns: 2rem 1fr; gap: .8rem; align-items: start; }
.howto li::before { content: counter(h); width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 750; font-size: .9rem; }

/* Valori (chi siamo) */
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.value { padding: 1.5rem; border-radius: var(--radius-l); background: var(--mist); }
.value .icon { color: var(--red); width: 2rem; height: 2rem; margin-bottom: .75rem; stroke-width: 1.6; }
.value h3 { margin-bottom: .4rem; }
.value p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 640px) { .values { grid-template-columns: 1fr; } }

.quote { margin: 0; padding: 0 0 0 1.5rem; border-left: 4px solid var(--red); font-size: clamp(1.2rem, 2vw, 1.45rem); font-stretch: 104%; line-height: 1.45; }
.quote footer { margin-top: .75rem; font-size: 1rem; color: var(--ink-soft); }

/* Contatti */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.contact-list li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; }
.contact-list .icon { width: 3rem; height: 3rem; padding: .7rem; border-radius: 50%; background: var(--mist); color: var(--red); stroke-width: 1.7; }
.contact-list strong { display: block; font-size: 1.05rem; }
.contact-list a { font-size: 1.25rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--red); }
.contact-list span { color: var(--ink-soft); font-size: .97rem; }

.form { border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.5rem, 3vw, 2.25rem); background: #fff; display: grid; gap: 1.1rem; }
.form h2 { font-size: 1.5rem; margin: 0; }
.form p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; padding: .75em .9em; border: 1px solid #b9c2cc; border-radius: var(--radius-s); background: #fff; color: var(--ink); width: 100%;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(247, 148, 29, .45); border-color: var(--orange); }
.form .btn { justify-self: start; }
.form-error { color: var(--red-deep); font-weight: 600; font-size: .95rem; min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #b8c2cc; padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; font-size: .97rem; }
.site-footer a { color: #e8ecf0; text-decoration: none; }
.site-footer a:hover { color: var(--amber); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h2 { font-size: 1rem; font-stretch: 100%; color: #fff; margin-bottom: .9rem; letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-brand img { width: 170px; background: #fff; padding: .55rem .8rem; border-radius: var(--radius-s); margin-bottom: 1rem; }
.footer-brand p { max-width: 34ch; }
.footer-bottom { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid #34404d; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; font-size: .88rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Pulsante WhatsApp flottante su mobile */
.float-wa {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: none; place-items: center;
  background: #1fa855; color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
}
.float-wa .icon { width: 28px; height: 28px; }


/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.notfound .btn-row { justify-content: center; }

@media print {
  .site-header, .float-wa, .cta-band, .site-footer, .aside { display: none !important; }
}
