/* =================================================================================================
   facilesrl.eu - stile del sito (restyling 20/11/2026)
   Si appoggia a Bootstrap 3 solo per griglia e modali usate dall'HTML del CMS; tutto il resto e' qui.
   ================================================================================================= */

:root {
  --brand: #b32026;
  --brand-700: #8f171c;
  --brand-50: #fcf1f1;
  --brand-100: #f7dcdd;
  --ink: #17191e;
  --ink-2: #3b404a;
  --muted: #646b78;
  --line: #e6e3df;
  --bg: #ffffff;
  --bg-soft: #f7f5f2;
  --dark: #141619;
  --dark-2: #1e2126;
  --ok: #1f7a4d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 25, .06), 0 2px 8px rgba(20, 22, 25, .05);
  --shadow: 0 2px 6px rgba(20, 22, 25, .06), 0 18px 40px -18px rgba(20, 22, 25, .22);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- base ------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* Bootstrap 3 imposta html { font-size: 10px }: qui si torna a 16px, base di tutti i rem */
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--brand-700); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font); color: var(--ink); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
strong, b { color: var(--ink); font-weight: 700; }
::selection { background: var(--brand-100); color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }
.center { text-align: center; }
.mt-sm { margin-top: 14px; }
.mt-lg { margin-top: 40px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px; font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.6; color: var(--ink-2); font-weight: 400; margin-bottom: 1.4em; max-width: 60ch; }
.lead-sm { font-size: 1.05rem; color: var(--muted); }

/* ---------- pulsanti (anche .btn-outlined.btn-white usati nei testi del CMS) -------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font); font-size: .95rem; font-weight: 700; line-height: 1.2; letter-spacing: 0; text-transform: none;
  white-space: nowrap; cursor: pointer; text-decoration: none !important;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
  box-shadow: none;
}
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-sm { padding: 8px 16px; font-size: .88rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary, .btn-outlined, .btn-outlined.btn-white {
  background: var(--brand); border-color: var(--brand); color: #fff !important;
  box-shadow: 0 8px 20px -10px rgba(179, 32, 38, .7);
}
.btn-primary:hover, .btn-primary:focus, .btn-outlined:hover, .btn-outlined:focus,
.btn-primary:active:focus, .btn-primary:active:hover {
  background: var(--brand-700); border-color: var(--brand-700); color: #fff !important;
}
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink) !important; }
.btn-outline:hover, .btn-outline:focus { background: var(--ink); color: #fff !important; }
.btn-ghost { background: transparent; color: var(--ink) !important; border-color: var(--line); }
.btn-ghost:hover, .btn-ghost:focus { border-color: var(--ink); background: #fff; }
.btn-light { background: #fff; color: var(--brand) !important; border-color: #fff; }
.btn-light:hover, .btn-light:focus { background: var(--brand-50); border-color: var(--brand-50); }
.btn-outline-light { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover, .btn-outline-light:focus { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* ---------- header e menu --------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .35); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; }
.brand img { width: 150px; height: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--ink-2); font-size: 1rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.site-nav__list a:hover, .site-nav__list a:focus { color: var(--ink); background: var(--bg-soft); }
.site-nav__list a[aria-current="page"] { color: var(--brand); background: var(--brand-50); }
.site-nav__actions { display: flex; gap: 8px; }
.site-nav__group {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 999px; background: none;
  font: inherit; font-size: 1rem; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.site-nav__group svg { transition: transform .2s; }
.site-nav__group:hover, .site-nav__group:focus-visible, .has-sub.is-open > .site-nav__group { color: var(--ink); background: var(--bg-soft); }
.site-nav__group.is-active { color: var(--brand); background: var(--brand-50); }
.has-sub.is-open > .site-nav__group svg { transform: rotate(180deg); }
.has-sub { position: relative; }
.site-nav__sub { list-style: none; margin: 0; padding: 0; }
.site-nav__sub a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; color: var(--ink-2); text-decoration: none; white-space: normal; }
.site-nav__sub a strong { color: var(--ink); font-size: .98rem; }
.site-nav__sub a span { font-size: .86rem; line-height: 1.45; color: var(--muted); }
.site-nav__sub a:hover, .site-nav__sub a:focus { background: var(--bg-soft); text-decoration: none; }
.site-nav__sub a[aria-current="page"] { background: var(--brand-50); }
.site-nav__sub a[aria-current="page"] strong { color: var(--brand); }
@media (min-width: 1201px) {
  .site-nav__sub {
    position: absolute; left: 50%; top: calc(100% + 10px); z-index: 60; width: 360px; padding: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .18s, transform .18s, visibility 0s .18s;
  }
  .site-nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .has-sub:hover > .site-nav__sub, .has-sub.is-open > .site-nav__sub, .has-sub:focus-within > .site-nav__sub {
    opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .18s, transform .18s;
  }
  .has-sub:hover > .site-nav__group svg { transform: rotate(180deg); }
}
.nav-toggle { display: none; }

@media (max-width: 1200px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
  }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s, background-color .25s;
  }
  .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bar::before { top: -6px; }
  .nav-toggle__bar::after { top: 6px; }
  .nav-open .nav-toggle__bar { background: transparent; }
  .nav-open .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 16px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    padding: 16px var(--gutter) 28px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .35);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .nav-open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .site-nav__list { flex-direction: column; align-items: stretch; }
  .site-nav__list a { padding: 13px 14px; font-size: 1.05rem; border-radius: 12px; }
  .site-nav__actions { flex-direction: column; }
  .site-nav__group { width: 100%; justify-content: space-between; padding: 13px 14px; font-size: 1.05rem; border-radius: 12px; }
  .site-nav__sub { display: none; padding: 2px 0 8px 10px; }
  .has-sub.is-open > .site-nav__sub { display: block; }
  .site-nav__actions .btn { width: 100%; padding: 13px 18px; font-size: 1rem; }
}

/* ---------- hero home ------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); }
.hero::before {
  content: ""; position: absolute; z-index: -1; right: -12%; top: -30%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, var(--brand-50), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-size: 1rem; font-weight: 600; color: var(--ink); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b32026' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.hero__media { position: relative; }
.hero__media img {
  display: block; width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; object-position: center 30%; 
  border-radius: 28px; box-shadow: var(--shadow);
}
.hero__badge {
  position: absolute; left: -22px; bottom: 28px; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  font-size: .92rem; line-height: 1.3; color: var(--ink);
}
.hero__badge small { color: var(--muted); font-size: .82rem; }
.hero__badge-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ok); color: #fff; flex: none; }

/* ---------- sezioni generiche --------------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding-top: 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 760px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.section__head .eyebrow { justify-content: center; }
.section-title { font-size: clamp(1.5rem, 2.4vw, 2rem); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .card-grid--2 { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .card-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .card-grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .card-grid--4 { grid-template-columns: 1fr; } }

/* passi del metodo */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: passo; }
.step { position: relative; padding: 26px 24px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); counter-increment: passo; }
.step::before { content: counter(passo, decimal-leading-zero); display: block; margin-bottom: 12px; font-size: .9rem; font-weight: 800; letter-spacing: .08em; color: var(--brand); }
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { margin: 0; font-size: 1rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* elenchi nei testi del CMS */
.prose ul:not(.checklist) { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.prose ul:not(.checklist) li { position: relative; padding-left: 30px; }
.prose ul:not(.checklist) li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: #e7f4ed url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a4d' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.prose h2 + p, .prose h3 + p { margin-top: 0; }
.prose h2:not(:first-child) { margin-top: 1.6em; }
.prose .checklist { margin: 0 0 1em; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink-2); box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card p { margin: 0; font-size: 1.02rem; }
.card__title { font-size: 1.2rem; margin: 8px 0 4px; }
.card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50); color: var(--brand); }
.card__more { margin-top: auto; padding-top: 16px; font-weight: 700; font-size: .93rem; color: var(--brand); }
.card__more::after { content: " \2192"; display: inline-block; transition: transform .2s; }
.card--link:hover, .card--link:focus { text-decoration: none; color: var(--ink-2); transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card--link:hover .card__more::after, .card--link:focus .card__more::after { transform: translateX(4px); }

/* blocchi testo + immagine */
.feature__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature__grid--single { grid-template-columns: minmax(0, 820px); justify-content: center; }
.feature--reverse .feature__text { order: 2; }
.feature__media { margin: 0; }
.feature__media img { display: block; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 16 / 11; background: #fff; }
.feature__media--contain img { object-fit: contain; aspect-ratio: auto; box-shadow: none; background: transparent; }
.feature__media--stack { display: grid; gap: 16px; }
.feature__media--stack img { aspect-ratio: auto; object-fit: contain; background: #fff; }
.feature__media--stack img + img { box-shadow: var(--shadow-sm); }

/* ---------- testi del CMS ------------------------------------------------------------------- */
.prose { display: flow-root; min-width: 0; }
.prose .row { margin-left: 0; margin-right: 0; }
.prose [class*="col-"] { padding-left: 0; padding-right: 0; }
@media (min-width: 992px) { .prose .col-md-6 { padding-right: 20px; } .prose .col-md-6 + .col-md-6 { padding-right: 0; padding-left: 20px; } }
.prose h1, .prose h2, .prose h3 { font-size: clamp(1.45rem, 2.3vw, 1.95rem); font-weight: 800; letter-spacing: -0.03em; margin-top: .2em; }
.prose h4 { font-size: 1.12rem; color: var(--ink); margin-top: 1.2em; }
.prose h3 span[style], .prose h1 span[style] { color: inherit !important; }
.prose p, .prose div, .prose span { max-width: 100%; }
.prose [style*="text-align: justify"], .prose [style*="text-align:justify"] { text-align: left !important; }
.prose img { border-radius: var(--radius-sm); }
.prose .logo_img { max-height: 90px; width: auto; margin: 0 0 18px; border-radius: 0; }
.prose iframe { max-width: 100%; }
.prose .btn { margin: 1.2em 0 0 !important; }
.prose a:not(.btn) { font-weight: 600; text-decoration: underline; text-decoration-color: var(--brand-100); text-decoration-thickness: 2px; }
.prose a:not(.btn):hover { text-decoration-color: var(--brand); }
.prose .text-separator { width: 56px; height: 4px; border-radius: 4px; background: var(--brand); margin: 6px 0 22px; font-size: 0; line-height: 0; overflow: hidden; }
.prose--center { max-width: 820px; margin-top: 40px; text-align: center; }
.prose--columns { columns: 2 340px; column-gap: 48px; }
.prose--columns > * { break-inside: avoid; }
.prose .testo_primasezione { margin-bottom: 18px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose .testo_primasezione p { margin: 6px 0 0; font-size: .96rem; }
.prose .icon { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.prose .icon::before { content: ""; width: 34px; height: 34px; border-radius: 10px; flex: none; background: var(--brand-50) center / 18px no-repeat; }
.prose .icon.search::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b32026' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E"); }
.prose .icon.phone::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b32026' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2.5'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.prose .icon.stat::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b32026' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M22 20H2'/%3E%3C/svg%3E"); }

/* riquadro "perche' sceglierci" */
.highlight {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 64px);
  padding: clamp(28px, 5vw, 64px); border-radius: 28px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%); color: #d9dbe0;
}
.highlight h2 { color: #fff; }
.highlight .eyebrow { color: #ff8a8f; }
.highlight__body { font-size: 1.02rem; }
.highlight__body h3 { color: #fff !important; font-size: 1.2rem; text-align: left !important; }
.highlight__body strong { color: #fff; }

/* tabella piani */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.plans { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .95rem; }
.plans th, .plans td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; }
.plans thead th { position: relative; padding-top: 28px; font-size: 1.05rem; font-weight: 800; color: var(--ink); background: #fff; }
.plans tbody th, .plans tfoot th { text-align: left; font-weight: 600; color: var(--ink); white-space: nowrap; }
.plans tbody tr:nth-child(even) { background: #fbfaf8; }
.plans tfoot td, .plans tfoot th { border-bottom: 0; padding: 20px 16px; }
.tick { display: inline-block; width: 24px; height: 24px; border-radius: 50%; vertical-align: middle; background: center / 13px no-repeat; }
.tick--yes { background-color: #e7f4ed; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a4d' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.tick--no { background-color: #f1efec; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9fa8' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E"); }

/* gallery lavori */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 36px; }
.gallery__item { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.gallery__item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery__item img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.gallery__item figcaption { padding: 10px 14px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.gallery__item a:hover { text-decoration: none; }

/* banda invito all'azione */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: clamp(28px, 5vw, 56px); border-radius: 28px; color: #fde9ea;
  background: radial-gradient(120% 140% at 100% 0%, #d23a40 0%, var(--brand) 45%, var(--brand-700) 100%);
  box-shadow: 0 30px 60px -30px rgba(143, 23, 28, .6);
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- intestazione pagine interne ---------------------------------------------------- */
.page-hero {
  position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(44px, 6vw, 80px);
  background: var(--dark); color: #d9dbe0; overflow: hidden; isolation: isolate;
}
.page-hero--image::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--hero-image) center / cover no-repeat;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(20, 22, 25, .94) 0%, rgba(20, 22, 25, .82) 45%, rgba(20, 22, 25, .45) 100%);
}
.page-hero--plain { background: var(--bg-soft); color: var(--ink-2); }
.page-hero--plain::after { display: none; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero--plain h1 { color: var(--ink); }
.page-hero .lead { color: #c9ccd3; }
.page-hero--plain .lead { color: var(--ink-2); }
.page-hero .hero__cta { margin: 0; }

.breadcrumb-nav ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: .85rem; font-weight: 600; }
.breadcrumb-nav li { color: #aeb2bb; }
.breadcrumb-nav li + li::before { content: "/"; margin-right: 6px; color: #6e737d; }
.breadcrumb-nav a { color: #fff; }
.breadcrumb-nav [aria-current] { color: #ff9ea2; }

/* ---------- contatti e moduli ---------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-list { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.contact-list__label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact-list a { font-weight: 600; }
.map-embed { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.map-link { margin: 10px 0 0; font-size: .9rem; font-weight: 600; }
.map-embed iframe { display: block; width: 100% !important; height: 320px; border: 0; }

.form-card { padding: clamp(24px, 4vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.form-card__title { font-size: 1.5rem; margin-bottom: 20px; }
.field { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field label, .field legend { display: block; margin: 0 0 6px; font-size: .9rem; font-weight: 700; color: var(--ink); border: 0; }
.optional { font-weight: 500; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  display: block; width: 100%; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fbfaf9; border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(179, 32, 38, .12); }
.field input.error, .field textarea.error { border-color: #c0392b; }
.field label.error { color: #b42318; font-size: .82rem; font-weight: 600; margin-top: 4px; }
.field--check { display: flex; gap: 12px; align-items: flex-start; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.field--check label { font-weight: 500; color: var(--ink-2); font-size: .92rem; margin: 0; }
.choice-row { display: flex; gap: 22px; }
.choice { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.choice input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.g-recaptcha { margin: 6px 0 4px; }
.form-note { font-size: .8rem; color: var(--muted); margin: 6px 0 18px; }
.notice { padding: 14px 16px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; font-size: .95rem; }
.notice--ok { background: #e7f4ed; color: var(--ok); }
.notice--error { background: #fdecec; color: #a3191f; }

.demo-aside img { display: block; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 28px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; color: var(--ink); font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #e7f4ed url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a4d' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---------- footer ---------------------------------------------------------------------------- */
.site-footer { background: var(--dark); color: #a9adb6; padding: clamp(48px, 7vw, 80px) 0 0; font-size: .95rem; }
.site-footer a { color: #e6e7ea; }
.site-footer a:hover, .site-footer a:focus { color: #fff; }
.site-footer h2 { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.1fr; gap: 36px; }
@media (max-width: 1200px) and (min-width: 992px) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); } .site-footer__brand { grid-column: 1 / -1; } }
.site-footer__brand img { width: 52px; height: 52px; margin-bottom: 16px; }
.site-footer__slogan { color: #fff; font-weight: 700; font-size: 1.05rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer address { font-style: normal; line-height: 1.9; }
.link-light { font-size: .9rem; text-decoration: underline; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: 48px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a.iubenda-embed, .site-footer a.iubenda-nostyle { background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; color: #e6e7ea !important; font: inherit !important; font-size: .85rem !important; }

/* ---------- animazioni d'ingresso (solo con JS e senza reduced-motion) ---------------------- */
.can-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.can-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ------------------------------------------------------------------------- */
@media (max-width: 991px) {
  body { font-size: 1.0625rem; }
  .hero__grid, .feature__grid, .contact-grid, .highlight { grid-template-columns: 1fr; }
  .feature--reverse .feature__text { order: 0; }
  .hero__media { max-width: 640px; }
  .hero__badge { left: 12px; bottom: 12px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .brand img { width: 128px; }
  .field-row { grid-template-columns: 1fr; }
  .hero__cta .btn, .cta-band__actions .btn { width: 100%; }
  .hero__cta, .cta-band__actions { width: 100%; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .card { padding: 22px; }
  .g-recaptcha { transform: scale(.92); transform-origin: 0 0; }
}

/* ---------- stampa ------------------------------------------------------------------------------ */
@media print {
  .site-header, .site-footer, .cta-band, .hero__cta, .nav-toggle { display: none !important; }
  .page-hero { background: none; color: #000; }
  .page-hero::before, .page-hero::after { display: none; }
  .page-hero h1 { color: #000; }
}
