:root {
  --rosso-logo: #A91619;
  --rosso-vivo: #D71920;
  --rosso-chiaro: #E85B5B;
  --rosso-velato: #FBE7E4;
  --grafite: #3A342F;
  --grafite-soft: #5A5149;
  --testo: #2F2D2A;
  --testo-morbido: #6D6861;
  --sfondo: #F8F4EE;
  --superficie: #FFFFFF;
  --bordo: #E7DED3;
  --sabbia: #D9C7B0;
  --sabbia-chiaro: #EFE6DA;
  --avorio: #FFFCF7;
  --pietra: #EEE7DE;
  --ombra: 0 18px 46px rgba(47, 45, 42, .085);
  --ombra-soft: 0 12px 30px rgba(47, 45, 42, .06);
  --raggio: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--testo);
  background: var(--sfondo);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; display: block; }
strong { font-weight: 760; color: var(--grafite); }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 10px; background: #fff; padding: 10px 14px; z-index: 999; }
.skip-link:focus { left: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    linear-gradient(135deg, #0F0F0F 0%, #191614 62%, #211B19 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 174px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 390px;
  padding: 20px 0 20px 34px;
  position: relative;
}
.brand::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 122px;
  height: 122px;
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,252,247,.24) 0%, rgba(255,252,247,.15) 30%, rgba(217,199,176,.07) 52%, rgba(255,252,247,0) 68%);
  pointer-events: none;
}
.brand-logo {
  width: 152px;
  height: 152px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.28));
  background: transparent;
  border-radius: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #FFFFFF;
  position: relative;
  z-index: 1;
}
.brand-text strong { font-size: 1.28rem; letter-spacing: .10em; color: #FFFFFF; }
.brand-text small { margin-top: 7px; color: rgba(255,255,255,.70); font-size: .74rem; letter-spacing: .12em; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255,255,255,.86);
  font-size: .95rem;
  font-weight: 650;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(232,91,91,.22);
  color: #FFFFFF;
}
.nav-toggle { display: none; }

.hero,
.page-hero {
  color: var(--testo);
  background:
    radial-gradient(circle at 12% 14%, rgba(169,22,25,.075), transparent 28%),
    radial-gradient(circle at 86% 6%, rgba(217,199,176,.38), transparent 36%),
    linear-gradient(135deg, #FFFFFF 0%, #FFFDF9 42%, #F7EFE5 72%, #FBF7F1 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(52,47,42,.08);
}
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  left: -94px;
  top: 54px;
  width: 250px;
  height: 250px;
  border: 32px solid rgba(169,22,25,.055);
  transform: rotate(24deg);
}
.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  right: -128px;
  bottom: -174px;
  width: 410px;
  height: 410px;
  border: 54px solid rgba(217,199,176,.26);
  transform: rotate(31deg);
}
.hero-layout {
  min-height: 600px;
  padding: 86px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.10fr) minmax(320px, .90fr);
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--grafite-soft);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rosso-logo), rgba(169,22,25,.04));
}
.eyebrow.dark { color: var(--grafite-soft); }
h1, h2, h3 { line-height: 1.12; margin: 0; color: var(--grafite); }
.hero h1,
.page-hero h1 {
  color: #211D1A;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  letter-spacing: -.06em;
  margin: 20px 0 24px;
  max-width: 760px;
}
.hero h1 span { color: var(--rosso-logo); }
.hero p { max-width: 745px; color: var(--testo-morbido); font-size: 1.17rem; margin: 0; }
.hero p strong { color: #1D1A18; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-card {
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(217,199,176,.50);
  border-radius: var(--raggio);
  padding: 32px;
  box-shadow: var(--ombra);
  backdrop-filter: blur(18px);
}
.hero-card h2 { color: var(--grafite); font-size: 1.65rem; margin-bottom: 22px; }
.hero-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.hero-list li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; color: var(--testo-morbido); }
.hero-list strong { color: var(--grafite); }
.check {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(232,91,91,.16), rgba(217,199,176,.52));
  border: 1px solid rgba(169,22,25,.12);
  color: var(--rosso-logo);
  font-weight: 900;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(169, 22, 25, .13);
  background: linear-gradient(135deg, #A91619 0%, #C83638 100%);
  color: #fff;
  font-weight: 760;
  box-shadow: 0 10px 22px rgba(169,22,25,.13);
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #E85B5B 0%, #F18A8A 100%);
  color: #fff;
  border-color: rgba(232,91,91,.38);
  box-shadow: 0 12px 26px rgba(232,91,91,.22);
}
.btn.light { background: #fff; color: var(--grafite); border-color: rgba(169,22,25,.16); box-shadow: 0 10px 24px rgba(47,45,42,.08); }
.btn.secondary { background: rgba(255,255,255,.55); color: var(--grafite); border-color: rgba(47,45,42,.12); box-shadow: none; }
.btn.light:hover,
.btn.secondary:hover {
  background: var(--rosso-chiaro);
  color: #fff;
  border-color: rgba(232,91,91,.35);
}

.section { padding: 92px 0; }
.section.white { background: #fff; }
.section.compact { padding: 58px 0; }
.section-title { max-width: 820px; margin-bottom: 34px; }
.section-title h2 { font-size: clamp(2rem, 4vw, 3.15rem); margin: 12px 0 16px; letter-spacing: -.04em; }
.section-title p { color: var(--testo-morbido); font-size: 1.08rem; margin: 0; }
.section-title.spaced-heading h2 { margin-top: 24px; margin-bottom: 28px; }
.section-title.spaced-heading p { margin-top: 0; }

.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card,
.founder-card,
.contact-card,
.service-row,
.work-card,
.project-card {
  background: var(--superficie);
  border: 1px solid rgba(47, 45, 42, .08);
  border-radius: var(--raggio);
  box-shadow: var(--ombra-soft);
}
.founder-card,
.card,
.contact-card,
.service-row,
.project-card { padding: 28px; }
.founder-card { position: relative; overflow: hidden; }
.founder-card::before,
.card::before,
.contact-card::before,
.project-card::before {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rosso-logo), var(--rosso-chiaro));
  margin-bottom: 20px;
}
.card {
  background:
    radial-gradient(circle at 100% 0%, rgba(217,199,176,.24), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,1), rgba(255,250,244,.76));
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover,
.service-row:hover,
.work-card:hover,
.project-card:hover,
.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(232,91,91,.24);
  box-shadow: 0 16px 36px rgba(47,45,42,.09);
}
.role { display: block; color: var(--testo-morbido); font-size: .78rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 800; margin-bottom: 12px; }
.founder-card h3,
.card h3,
.contact-card h3,
.service-row h3,
.project-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.card p,
.founder-card p,
.contact-card p,
.project-card p { margin: 0; color: var(--testo-morbido); }
.contact-mini { margin-top: 18px !important; line-height: 1.85; }
.contact-mini a,
.contact-card a { font-weight: 700; color: var(--grafite); border-bottom: 1px solid rgba(232,91,91,.28); }
.contact-mini a:hover,
.contact-card a:hover { color: var(--rosso-logo); border-color: var(--rosso-chiaro); }

.services-list { display: grid; gap: 18px; }
.service-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: start;
  gap: 24px;
  background:
    linear-gradient(90deg, rgba(232,91,91,.060), rgba(217,199,176,.16) 42%, rgba(255,255,255,1)),
    #fff;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.service-row:nth-child(even) {
  background:
    linear-gradient(90deg, rgba(217,199,176,.22), rgba(232,91,91,.040) 54%, rgba(255,255,255,1)),
    #fff;
}
.service-num {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #FFF2EF, #EFE0CE);
  color: var(--rosso-logo);
  font-weight: 850;
  letter-spacing: .08em;
  border: 1px solid rgba(232,91,91,.16);
}
.service-row p { margin: 0; color: var(--testo-morbido); }

.work-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work-card { overflow: hidden; border-color: rgba(217,199,176,.40); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.work-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sabbia-chiaro); }
.work-card div { padding: 22px; }
.work-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.work-card p { color: var(--testo-morbido); margin: 0; }
.center-action { text-align: center; margin-top: 34px; }

.band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--testo);
  padding: 38px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 96% 0%, rgba(232,91,91,.10), transparent 30%),
    linear-gradient(135deg, #FFFFFF 0%, #FAF0E5 63%, #EFE0CE 100%);
  border: 1px solid rgba(217,199,176,.50);
  box-shadow: var(--ombra);
}
.band h2 { color: var(--grafite); font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 8px; }
.band p { margin: 0; color: var(--testo-morbido); }
.band strong { color: var(--grafite); }

.page-hero { padding: 66px 0 74px; }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { color: var(--testo-morbido); font-size: .95rem; margin-bottom: 18px; }
.page-hero p { max-width: 820px; margin: 0; color: var(--testo-morbido); font-size: 1.1rem; }

.contact-layout { display: grid; grid-template-columns: .86fr 1.14fr; gap: 28px; align-items: start; }
.contact-list { display: grid; gap: 16px; }
.map-box {
  min-height: 430px;
  padding: 0;
  border-radius: var(--raggio);
  background: #fff;
  border: 1px solid rgba(217,199,176,.52);
  box-shadow: var(--ombra-soft);
  overflow: hidden;
}
.map-box iframe { width: 100%; height: 430px; border: 0; display: block; }
.map-box > div { padding: 28px; }
.map-caption { padding: 18px 22px; background: #fff; border-top: 1px solid rgba(47,45,42,.08); color: var(--testo-morbido); }
.map-caption strong { color: var(--grafite); }
.map-action { display: inline-flex; margin-top: 10px; font-weight: 800; color: var(--grafite); border-bottom: 1px solid rgba(169,22,25,.22); }
.map-action:hover { color: var(--rosso-logo); border-color: var(--rosso-chiaro); }
.notice { padding: 18px 20px; border-radius: 18px; background: #FFF7F1; border: 1px solid rgba(217,199,176,.58); color: var(--testo); }

.site-footer {
  background:
    radial-gradient(circle at 10% 0%, rgba(217,199,176,.10), transparent 34%),
    linear-gradient(135deg, #2B2724 0%, #191614 58%, #231D1A 100%);
  color: rgba(255,255,255,.72);
  padding: 66px 0 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr 1.1fr .9fr;
  gap: 34px;
  align-items: start;
}
.footer-brand {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 10px 0 10px 16px;
  position: relative;
}
.footer-brand::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 78px;
  height: 78px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,252,247,.22) 0%, rgba(255,252,247,.13) 34%, rgba(217,199,176,.06) 54%, rgba(255,252,247,0) 68%);
  pointer-events: none;
}
.footer-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  filter: drop-shadow(0 7px 12px rgba(0,0,0,.24));
  position: relative;
  z-index: 1;
}
.footer-brand div { position: relative; z-index: 1; }
.footer h2,
.footer h3,
.site-footer h2,
.site-footer h3 { color: #FFFFFF; }
.site-footer h2 { margin: 0 0 3px; }
.site-footer h3 { margin-bottom: 14px; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer p { margin: 0 0 12px; }
.site-footer strong { color: #FFFFFF; }
.site-footer a {
  font-weight: 700;
  color: rgba(255,255,255,.78);
  border-bottom: 0;
  transition: color .18s ease, background-color .18s ease;
}
.site-footer a:hover {
  color: #FFFFFF;
  background: rgba(232,91,91,.16);
}
.footer-links { display: grid; gap: 8px; }
.footer-bottom { margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.10); color: rgba(255,255,255,.56); font-size: .9rem; }

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  width: min(720px, calc(100% - 36px));
  margin: 0 auto;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(47,45,42,.12);
  border-radius: 20px;
  box-shadow: 0 18px 60px rgba(47,45,42,.18);
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; color: var(--testo-morbido); }
.cookie-banner .btn { min-height: 40px; padding: 0 18px; }

@media (max-width: 920px) {
  .header-inner { min-height: 136px; }

  .brand::before { width: 98px; height: 98px; left: 18px; }
  .footer-brand::before { width: 70px; height: 70px; left: 6px; }
  .footer-brand img { width: 66px; height: 66px; }
  .brand { min-width: 0; padding-left: 28px; }
  .brand-logo { width: 116px; height: 116px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(47,45,42,.12);
    background: rgba(255,255,255,.10);
    color: #fff;
    font-weight: 800;
  }
  .nav-toggle:hover { background: rgba(232,91,91,.22); color: #fff; }
  .main-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 98px;
    display: none;
    padding: 14px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--ombra);
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { justify-content: center; }
  .main-nav a { color: var(--grafite); }
  .main-nav a:hover,
  .main-nav a[aria-current="page"] { color: var(--rosso-logo); background: var(--rosso-velato); }
  .hero-layout,
  .grid.two,
  .grid.three,
  .work-grid,
  .contact-layout,
  .footer-grid { grid-template-columns: 1fr; }
  .hero-layout { min-height: auto; padding: 70px 0; }
  .service-row { grid-template-columns: 1fr; }
  .band { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1160px); }
  .brand-text small { display: none; }
  .brand-logo { width: 90px; height: 90px; }

  .brand::before { width: 78px; height: 78px; left: 17px; }
  .footer-brand::before { width: 64px; height: 64px; left: 6px; }
  .footer-brand img { width: 60px; height: 60px; }
  .section { padding: 68px 0; }
  .hero h1, .page-hero h1 { font-size: 2.55rem; }
  .hero-card, .founder-card, .card, .contact-card, .service-row, .project-card { padding: 22px; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .map-box iframe { height: 340px; }
}


/* Variante v16: maggiore respiro nella sezione Chi siamo e icona Facebook header */
#chi-siamo .section-title.spaced-heading {
  margin-bottom: 54px;
}
#chi-siamo .founders-grid {
  gap: 42px;
}
.facebook-link {
  min-width: 42px;
  justify-content: center;
  padding: 0 12px !important;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.facebook-link span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.28rem;
  line-height: 1;
  font-weight: 900;
  color: #1877F2;
  text-transform: none;
}
.facebook-link:hover {
  background: rgba(24,119,242,.12) !important;
  border-color: rgba(24,119,242,.28);
}
.facebook-link:hover span {
  color: #4EA0FF;
}
@media (max-width: 920px) {
  #chi-siamo .section-title.spaced-heading { margin-bottom: 40px; }
  #chi-siamo .founders-grid { gap: 26px; }
  .facebook-link { min-width: 100%; }
}


/* Variante v23 - grafite morbido per header e footer */
.site-header,
.header-shell,
.main-header {
  background: linear-gradient(135deg, #2A2623 0%, #38322E 55%, #463E38 100%) !important;
}

.site-footer,
.footer,
.footer-main {
  background: linear-gradient(135deg, #312C28 0%, #403933 56%, #4A423B 100%) !important;
}

.site-header,
.site-header a,
.header-shell,
.header-shell a,
.main-header,
.main-header a {
  color: #F7F1E8;
}

.site-footer,
.site-footer a,
.footer,
.footer a,
.footer-main,
.footer-main a {
  color: #F3ECE3;
}

.site-footer p,
.site-footer li,
.footer p,
.footer li,
.footer-main p,
.footer-main li {
  color: rgba(247, 241, 232, 0.82);
}

.site-footer h2,
.site-footer h3,
.site-footer h4,
.footer h2,
.footer h3,
.footer h4,
.footer-main h2,
.footer-main h3,
.footer-main h4 {
  color: #FFF8EF;
}


/* Variante v27 - telefono fisso accanto a Facebook */
.header-phone-link {
  font-weight: 750;
  letter-spacing: .02em;
  color: #F7F1E8 !important;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  padding: 0 13px !important;
  white-space: nowrap;
}

.header-phone-link:hover {
  background: rgba(232,91,91,.22) !important;
  border-color: rgba(232,91,91,.36);
  color: #FFFFFF !important;
}

@media (max-width: 920px) {
  .header-phone-link {
    width: 100%;
    justify-content: center;
  }
}


/* Variante v28 - icona telefono nel pulsante fisso header */
.header-phone-link {
  gap: 8px;
}

.header-phone-link .phone-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #F7F1E8;
  font-size: .88rem;
  line-height: 1;
  transform: translateY(-1px);
}

.header-phone-link:hover .phone-icon {
  background: rgba(232,91,91,.28);
  color: #FFFFFF;
}


/* Variante v29 - immagini fotografiche approvate nelle Realizzazioni */
.project-card > img,
.realization-card > img,
.portfolio-card > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

/* Variante v30 - sesta foto definitiva e taglio rilievi ottimizzato */
.project-card > img,
.realization-card > img,
.portfolio-card > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}


/* Variante v33 - Privacy, Cookie e consenso Google Maps */
.legal-content {
  max-width: 1040px;
}

.legal-card {
  background: #fff;
  border: 1px solid rgba(47,45,42,.08);
  border-radius: var(--raggio);
  box-shadow: var(--ombra-soft);
  padding: 34px;
}

.legal-card h3 {
  margin: 34px 0 12px;
  color: var(--grafite);
  font-size: 1.28rem;
}

.legal-card h3:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--testo-morbido);
}

.legal-card a {
  color: var(--grafite);
  font-weight: 800;
  border-bottom: 1px solid rgba(169,22,25,.24);
}

.legal-card a:hover {
  color: var(--rosso-logo);
  border-color: var(--rosso-chiaro);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(47,45,42,.08);
  margin: 18px 0 10px;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: #fff;
}

.policy-table th,
.policy-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(47,45,42,.08);
}

.policy-table th {
  color: var(--grafite);
  background: #FFF7F1;
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.policy-table td {
  color: var(--testo-morbido);
}

.policy-table tr:last-child td {
  border-bottom: 0;
}

.preference-box,
.cookie-actions,
.map-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.preference-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: #FFF7F1;
  border: 1px solid rgba(217,199,176,.58);
}

.cookie-banner {
  width: min(860px, calc(100% - 36px));
}

.cookie-banner strong {
  display: block;
  color: var(--grafite);
  margin-bottom: 4px;
}

.cookie-banner p {
  max-width: 560px;
}

.map-consent {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 82% 16%, rgba(169,22,25,.08), transparent 32%),
    linear-gradient(135deg, #FFFFFF 0%, #FFF7F1 58%, #EFE6DA 100%);
}

.map-consent h3 {
  margin: 12px 0 10px;
  font-size: 1.45rem;
}

.map-consent p {
  margin: 0 0 20px;
  color: var(--testo-morbido);
  max-width: 620px;
}

@media (max-width: 560px) {
  .legal-card {
    padding: 22px;
  }

  .cookie-actions,
  .preference-box,
  .map-consent-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner .btn,
  .preference-box .btn,
  .map-consent-actions .btn {
    width: 100%;
  }
}




/* Variante v40 - revisione finale allineamenti footer */
@media (min-width: 821px) {
  .site-footer .footer-grid {
    align-items: start;
  }

  .site-footer .footer-brand {
    padding: 0;
    margin: 0 0 24px 0;
    transform: none;
  }

  .site-footer .footer-brand::before {
    left: -8px;
  }

  .site-footer .footer-grid > div:first-child > p {
    margin-top: 0;
  }

  /* Le colonne laterali partono all'altezza della scritta SQUADER, non del bordo alto del logo */
  .site-footer .footer-grid > div:not(:first-child) {
    padding-top: 13px;
  }

  .site-footer .footer-grid > div:not(:first-child) h3 {
    margin-top: 0;
  }
}

@media (max-width: 820px) {
  .site-footer .footer-brand {
    padding: 0;
    transform: none;
  }

  .site-footer .footer-grid > div:not(:first-child) {
    padding-top: 0;
  }
}


/* Variante v44 - logo header leggermente più grande rispetto alla v41 */
.site-header .brand img {
  transform: scale(1.08);
  transform-origin: left center;
}

@media (max-width: 820px) {
  .site-header .brand img {
    transform: scale(1.05);
    transform-origin: left center;
  }
}


/* Variante v45 - scritta header leggermente più staccata dal logo */
.site-header .brand {
  gap: 24px;
}

.site-header .brand img {
  margin-right: 4px;
}

@media (max-width: 820px) {
  .site-header .brand {
    gap: 18px;
  }

  .site-header .brand img {
    margin-right: 2px;
  }
}


/* Variante v46 - logo header più grande con scritta distanziata */
.site-header .brand img {
  transform: scale(1.18);
  transform-origin: left center;
}

.site-header .brand {
  gap: 32px;
}

.site-header .brand img {
  margin-right: 8px;
}

@media (max-width: 820px) {
  .site-header .brand img {
    transform: scale(1.10);
    transform-origin: left center;
    margin-right: 4px;
  }

  .site-header .brand {
    gap: 22px;
  }
}


/* Variante v47 - payoff hero meno dominante, priorità a logo e nome azienda */
.hero h1 {
  font-size: clamp(2.35rem, 4.8vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 760px;
}

.hero-copy .eyebrow {
  margin-bottom: 18px;
}

/* Riduce l'impatto del payoff rispetto al brand in header */
@media (min-width: 821px) {
  .hero {
    padding-top: 72px;
  }
}

@media (max-width: 820px) {
  .hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}


/* Variante v48 - logo header come v44 e payoff verticale */
.site-header .brand {
  gap: 16px !important;
}

.site-header .brand img {
  transform: scale(1.08) !important;
  transform-origin: left center;
  margin-right: 0 !important;
}

.hero-payoff {
  display: flex;
  flex-direction: column;
  gap: 0.02em;
}

.hero-payoff span {
  display: block;
}

@media (max-width: 820px) {
  .site-header .brand {
    gap: 16px !important;
  }

  .site-header .brand img {
    transform: scale(1.05) !important;
    transform-origin: left center;
    margin-right: 0 !important;
  }

  .hero-payoff {
    gap: 0;
  }
}


/* Variante v49 - logo come v44, scritta header più distaccata */
.site-header .brand {
  gap: 34px !important;
}

.site-header .brand img {
  transform: scale(1.08) !important;
  transform-origin: left center;
  margin-right: 8px !important;
}

@media (max-width: 820px) {
  .site-header .brand {
    gap: 24px !important;
  }

  .site-header .brand img {
    transform: scale(1.05) !important;
    transform-origin: left center;
    margin-right: 4px !important;
  }
}


/* Variante v50 - WhatsApp Business accanto a Facebook nell'header */
.whatsapp-header-link {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  font-weight: 900;
  font-size: .68rem;
  letter-spacing: -.04em;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.whatsapp-header-link:hover {
  transform: translateY(-1px);
  color: #fff;
  filter: brightness(1.04);
  box-shadow: 0 14px 30px rgba(37, 211, 102, .30);
}

.whatsapp-header-link span {
  transform: translateY(.5px);
}

@media (max-width: 920px) {
  .whatsapp-header-link {
    width: 38px;
    height: 38px;
    font-size: .72rem;
  }
}


/* Variante v51 - header senza telefono fisso, WhatsApp con icona reale */
.whatsapp-header-link {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.whatsapp-header-link:hover {
  transform: translateY(-1px);
  color: #fff;
  filter: brightness(1.04);
  box-shadow: 0 14px 30px rgba(37, 211, 102, .30);
}

.whatsapp-header-link .whatsapp-icon-svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: currentColor;
}

@media (max-width: 920px) {
  .whatsapp-header-link {
    width: 38px;
    height: 38px;
  }

  .whatsapp-header-link .whatsapp-icon-svg {
    width: 22px;
    height: 22px;
  }
}


/* Variante v52 - icona WhatsApp header più leggibile */
.whatsapp-header-link {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
}

.whatsapp-header-link .whatsapp-icon-svg {
  width: 28px !important;
  height: 28px !important;
}

@media (max-width: 920px) {
  .whatsapp-header-link {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
  }

  .whatsapp-header-link .whatsapp-icon-svg {
    width: 28px !important;
    height: 28px !important;
  }
}


/* Variante v63 - v52 con header e footer grigio morbido */
.site-header {
  background:
    linear-gradient(135deg, #F0EFED 0%, #E4E1DD 58%, #D8D4CF 100%) !important;
  color: #1F1F1F !important;
  border-bottom: 1px solid rgba(31, 31, 31, .14) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .09) !important;
}

.site-header::before {
  background: linear-gradient(90deg, transparent, rgba(179, 30, 36, .32), transparent) !important;
  opacity: .75 !important;
}

.site-header::after {
  display: none !important;
}

.site-header .brand-text {
  color: #1B1B1B !important;
}

.site-header .brand-subtitle {
  color: #5E5A56 !important;
}

.main-nav a,
.site-header .nav-link {
  color: #2B2B2B !important;
}

.main-nav a:hover,
.main-nav a[aria-current="page"],
.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: #B31E24 !important;
  background: rgba(179, 30, 36, .09) !important;
}

.nav-toggle span {
  background: #1B1B1B !important;
}

/* Footer grigio medio, più morbido del nero ma non bianco */
.site-footer {
  background:
    linear-gradient(135deg, #DAD7D2 0%, #C9C5BE 55%, #BDB8B0 100%) !important;
  color: #1E1E1E !important;
  border-top: 4px solid #B31E24 !important;
}

.site-footer::before {
  display: block !important;
  background: linear-gradient(90deg, transparent, rgba(179, 30, 36, .35), transparent) !important;
  opacity: .7 !important;
}

.site-footer::after {
  display: none !important;
}

.site-footer h2,
.site-footer h3,
.site-footer strong,
.site-footer .footer-brand-title {
  color: #1A1A1A !important;
}

.site-footer p,
.site-footer li,
.site-footer span,
.site-footer a {
  color: #4D4945 !important;
}

.site-footer a:hover {
  color: #B31E24 !important;
}

.footer-bottom {
  border-top-color: rgba(31, 31, 31, .13) !important;
  color: #5C5752 !important;
}


/* Variante v64 - correzioni header/footer e WhatsApp */
.site-header {
  background:
    linear-gradient(135deg, #F0EFED 0%, #E4E1DD 58%, #D8D4CF 100%) !important;
  color: #111111 !important;
}

/* Scritta accanto al logo in nero */
.site-header .brand-text,
.site-header .brand-title,
.site-header .brand-name,
.site-header .brand-copy,
.site-header .brand span,
.site-header .brand strong {
  color: #111111 !important;
}

.site-header .brand-subtitle,
.site-header .brand small {
  color: #111111 !important;
}

/* WhatsApp: niente sfondo verde, solo icona trasparente */
.whatsapp-header-link {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  color: #25D366 !important;
}

.whatsapp-header-link:hover {
  background: transparent !important;
  box-shadow: none !important;
  color: #1FB85A !important;
  filter: none !important;
}

.whatsapp-header-link .whatsapp-icon-svg {
  fill: currentColor !important;
}

/* Footer con lo stesso grigio dell'header */
.site-footer {
  background:
    linear-gradient(135deg, #F0EFED 0%, #E4E1DD 58%, #D8D4CF 100%) !important;
  color: #1F1F1F !important;
  border-top: 4px solid #B31E24 !important;
}

.site-footer::before {
  display: block !important;
  background: linear-gradient(90deg, transparent, rgba(179, 30, 36, .32), transparent) !important;
  opacity: .75 !important;
}

.site-footer::after {
  display: none !important;
}

.site-footer h2,
.site-footer h3,
.site-footer strong,
.site-footer .footer-brand-title {
  color: #1A1A1A !important;
}

.site-footer p,
.site-footer li,
.site-footer span,
.site-footer a {
  color: #4D4945 !important;
}

.site-footer a:hover {
  color: #B31E24 !important;
}

.footer-bottom {
  border-top-color: rgba(31, 31, 31, .13) !important;
  color: #5C5752 !important;
}


/* Variante v68 - base v64, solo linea rossa laterale sui rettangoli principali */
.hero-card,
.band {
  border-left: 6px solid #B31E24 !important;
}

/* Mantiene pulito l'effetto: solo linea laterale, nessun altro dettaglio decorativo */
.hero-card::before,
.hero-card::after,
.band::before,
.band::after {
  content: none !important;
}


/* Variante v69 - linea rossa anche sui rettangoli dei soci fondatori */
.founder-card,
.team-card,
.partner-card {
  border-left: 6px solid #B31E24 !important;
}

/* Solo linea laterale, nessuna decorazione aggiuntiva */
.founder-card::before,
.founder-card::after,
.team-card::before,
.team-card::after,
.partner-card::before,
.partner-card::after {
  content: none !important;
}


/* Variante v70 - linea rossa su contatti e servizi alternati */

/* Contatti: linea rossa su tutti i rettangoli */
.contact-card {
  border-left: 6px solid #B31E24 !important;
}

/* Servizi: linea rossa uno sì e uno no */
.service-row:nth-of-type(odd),
.service-card:nth-of-type(odd) {
  border-left: 6px solid #B31E24 !important;
}

/* Servizi alternati senza linea rossa aggiunta */
.service-row:nth-of-type(even),
.service-card:nth-of-type(even) {
  border-left-color: transparent !important;
}

/* Solo linea laterale, nessuna decorazione aggiuntiva */
.contact-card::before,
.contact-card::after,
.service-row::before,
.service-row::after,
.service-card::before,
.service-card::after {
  content: none !important;
}


/* Variante v71 - footer senza linea rossa e orari ripristinati nei contatti */
.site-footer {
  border-top: 1px solid rgba(31, 31, 31, .13) !important;
}

.site-footer::before {
  display: none !important;
  background: none !important;
}


/* Variante v72 - footer con gerarchia testi più chiara */
.site-footer {
  border-top: 1px solid rgba(31, 31, 31, .13) !important;
}

/* Nome studio più evidente */
.site-footer .footer-brand-title,
.site-footer h2 {
  color: #111111 !important;
  font-weight: 800 !important;
  letter-spacing: .02em !important;
}

/* Titoli delle colonne più marcati */
.site-footer h3 {
  color: #181818 !important;
  font-weight: 800 !important;
  font-size: .98rem !important;
  letter-spacing: .055em !important;
  text-transform: uppercase !important;
  margin-bottom: 14px !important;
}

/* Testi descrittivi più morbidi */
.site-footer p,
.site-footer li,
.site-footer span {
  color: #5F5A55 !important;
  font-weight: 400 !important;
}

/* Dati importanti e nomi più scuri */
.site-footer strong,
.site-footer b {
  color: #1B1B1B !important;
  font-weight: 750 !important;
}

/* Link e contatti più riconoscibili */
.site-footer a {
  color: #8F1D22 !important;
  font-weight: 650 !important;
  text-decoration: none !important;
}

.site-footer a:hover {
  color: #B31E24 !important;
  text-decoration: underline !important;
}

/* Sezione finale più secondaria */
.footer-bottom,
.footer-bottom p,
.footer-bottom span,
.footer-bottom a {
  color: #716C66 !important;
  font-size: .88rem !important;
}

.footer-bottom a {
  font-weight: 600 !important;
}


/* Variante v73 - footer più rifinito, link privacy/cookie in nero */
.site-footer {
  border-top: 1px solid rgba(31, 31, 31, .14) !important;
}

/* Titoli colonne più puliti */
.site-footer h3 {
  color: #151515 !important;
  font-weight: 850 !important;
  letter-spacing: .065em !important;
  text-transform: uppercase !important;
}

/* Testo ordinario più chiaro ma non troppo uniforme */
.site-footer p,
.site-footer li,
.site-footer span {
  color: #5A554F !important;
}

/* Dati importanti */
.site-footer strong,
.site-footer b {
  color: #171717 !important;
  font-weight: 800 !important;
}

/* Link generali nel footer: più eleganti e meno rossi */
.site-footer a {
  color: #2A2724 !important;
  font-weight: 650 !important;
  text-decoration: none !important;
}

.site-footer a:hover {
  color: #B31E24 !important;
  text-decoration: underline !important;
}

/* Privacy, Cookie e Gestisci cookie in nero netto */
.site-footer a[href="privacy.html"],
.site-footer a[href="cookie.html"],
.site-footer button,
.site-footer .cookie-settings,
.site-footer .manage-cookies,
.site-footer [data-cookie-preferences] {
  color: #111111 !important;
  font-weight: 750 !important;
}

/* Piccola separazione visiva tra righe del footer */
.site-footer li {
  margin-bottom: 7px !important;
}

.site-footer .footer-bottom,
.site-footer .footer-bottom p,
.site-footer .footer-bottom span,
.site-footer .footer-bottom a {
  color: #625D57 !important;
}

.site-footer .footer-bottom a[href="privacy.html"],
.site-footer .footer-bottom a[href="cookie.html"],
.site-footer .footer-bottom button,
.site-footer .footer-bottom .cookie-settings,
.site-footer .footer-bottom .manage-cookies,
.site-footer .footer-bottom [data-cookie-preferences] {
  color: #111111 !important;
  font-weight: 750 !important;
}


/* Variante v74 - footer: sede senza nome ripetuto, telefoni/email rossi */
.site-footer a[href^="tel:"],
.site-footer a[href^="mailto:"] {
  color: #B31E24 !important;
  font-weight: 750 !important;
}

.site-footer a[href^="tel:"]:hover,
.site-footer a[href^="mailto:"]:hover {
  color: #8F1D22 !important;
  text-decoration: underline !important;
}

/* Privacy, Cookie e Gestisci cookie restano neri */
.site-footer a[href="privacy.html"],
.site-footer a[href="cookie.html"],
.site-footer button,
.site-footer .cookie-settings,
.site-footer .manage-cookies,
.site-footer [data-cookie-preferences] {
  color: #111111 !important;
  font-weight: 750 !important;
}


/* Variante v75 - header e footer grigio leggermente più scuro */
.site-header {
  background:
    linear-gradient(135deg, #E1DEDA 0%, #D6D2CC 58%, #CAC5BE 100%) !important;
  border-bottom-color: rgba(31, 31, 31, .17) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .105) !important;
}

.site-footer {
  background:
    linear-gradient(135deg, #E1DEDA 0%, #D6D2CC 58%, #CAC5BE 100%) !important;
  border-top-color: rgba(31, 31, 31, .17) !important;
}

/* Mantengo la leggibilità dei testi sul grigio più scuro */
.site-header .brand-text,
.site-header .brand-title,
.site-header .brand-name,
.site-header .brand-copy,
.site-header .brand span,
.site-header .brand strong {
  color: #111111 !important;
}

.site-header .brand-subtitle,
.site-header .brand small {
  color: #1A1A1A !important;
}

.site-footer h2,
.site-footer h3,
.site-footer strong,
.site-footer .footer-brand-title {
  color: #151515 !important;
}

.site-footer p,
.site-footer li,
.site-footer span {
  color: #4D4843 !important;
}


/* Variante v76 - icone WhatsApp e Facebook sotto la mappa contatti */
.contact-map-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.contact-map-social-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(31, 31, 31, .12);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .08);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.contact-map-social-icon:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .11);
}

.contact-map-social-icon svg {
  width: 30px;
  height: 30px;
  display: block;
  fill: currentColor;
}

.contact-map-whatsapp {
  color: #25D366 !important;
}

.contact-map-facebook {
  color: #1877F2 !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.72rem;
  font-weight: 900;
  line-height: 1;
}

.contact-map-facebook span {
  transform: translateY(1px);
}


/* Variante v77 - icone social sotto mappa allineate a sinistra */
.contact-map-social {
  justify-content: flex-start !important;
  text-align: left !important;
}


/* Variante v78 - header: Facebook senza sfondo, WhatsApp verde */
.site-header .facebook-link {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  color: #1877F2 !important;
}

.site-header .facebook-link:hover {
  background: transparent !important;
  box-shadow: none !important;
  color: #0F66D4 !important;
  filter: none !important;
}

.site-header .whatsapp-header-link {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  color: #25D366 !important;
}

.site-header .whatsapp-header-link:hover {
  background: transparent !important;
  box-shadow: none !important;
  color: #1FB85A !important;
  filter: none !important;
}

.site-header .whatsapp-header-link svg,
.site-header .whatsapp-header-link .whatsapp-icon-svg {
  fill: currentColor !important;
}


/* Variante v79 - sfumatura grigio / bianco / rosso su header e footer */
.site-header {
  background:
    radial-gradient(circle at 6% 18%, rgba(179, 30, 36, .14), transparent 28%),
    radial-gradient(circle at 94% 8%, rgba(255, 255, 255, .72), transparent 30%),
    linear-gradient(135deg, #D3D0CA 0%, #E7E5E1 42%, #F6F5F3 64%, #CDC8C0 100%) !important;
  border-bottom: 1px solid rgba(31, 31, 31, .16) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .105) !important;
}

.site-header::before {
  background:
    linear-gradient(90deg, transparent 0%, rgba(179, 30, 36, .24) 42%, rgba(179, 30, 36, .34) 50%, rgba(179, 30, 36, .18) 58%, transparent 100%) !important;
  opacity: .85 !important;
}

.site-header::after {
  display: block !important;
  opacity: .20 !important;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .42), transparent 42%) !important;
}

.site-footer {
  background:
    radial-gradient(circle at 8% 0%, rgba(179, 30, 36, .13), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, .58), transparent 28%),
    linear-gradient(135deg, #CCC7BF 0%, #E1DED8 45%, #F2F1EF 66%, #C8C2BA 100%) !important;
  border-top: 1px solid rgba(31, 31, 31, .16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .52) !important;
}

.site-footer::before {
  display: block !important;
  background:
    linear-gradient(90deg, transparent 0%, rgba(179, 30, 36, .20) 40%, rgba(179, 30, 36, .34) 50%, rgba(179, 30, 36, .16) 60%, transparent 100%) !important;
  opacity: .8 !important;
}

.site-footer::after {
  display: none !important;
}

/* Mantengo testo leggibile sulla nuova sfumatura */
.site-header .brand-text,
.site-header .brand-title,
.site-header .brand-name,
.site-header .brand-copy,
.site-header .brand span,
.site-header .brand strong,
.site-footer h2,
.site-footer h3,
.site-footer strong,
.site-footer .footer-brand-title {
  color: #111111 !important;
}

.site-header .brand-subtitle,
.site-header .brand small,
.site-footer p,
.site-footer li,
.site-footer span {
  color: #494540 !important;
}
