:root {
  --bg: #1c1c1a;
  --bg-raised: #242422;
  --text-primary: #f2f2ee;
  --text-secondary: #9a9a92;
  --accent: #00a862;
  --border: #35352f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: 1920px;
  margin: 0 auto 0 0;
  padding: 0 64px;
}

/* ---------- Nav ---------- */

header.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 34px 0;
}

/* Dopo il primo schermo l'header diventa fisso: si nasconde mentre si
   scorre verso il basso e ricompare appena si scorre verso l'alto, così
   menu e "Contattami" sono sempre a portata di mano (assets/site.js). */
header.nav.is-fixed {
  position: fixed;
  padding: 14px 0;
  background: rgba(28, 28, 26, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}

header.nav.is-fixed.is-visible { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  header.nav.is-fixed { transition: none; }
}

header.nav .wrap {
  max-width: none;
  width: 100%;
  padding: 0 64px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 34px;
  width: auto;
  display: block;
}

.brand span {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.2px;
}

/* ---------- Bottone Contattaci + apertura menu fullscreen ---------- */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-contattaci {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  height: 44px;
  padding: 2px 26px 0;
  background: var(--accent);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  transition: opacity 0.2s ease;
}

.btn-contattaci:hover { opacity: 0.82; }

.menu-trigger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.menu-trigger span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text-primary);
}

.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: var(--accent);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.fullscreen-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.fullscreen-menu-close {
  position: absolute;
  top: 34px;
  right: 64px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.fullscreen-menu-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 2px;
  background: #101010;
}

.fullscreen-menu-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.fullscreen-menu-close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

.fullscreen-menu-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 0 64px;
}

.fullscreen-menu-links a {
  display: flex;
  align-items: baseline;
  gap: 28px;
  width: 100%;
  padding: clamp(14px, 2.2vw, 22px) 0;
  border-bottom: 1px solid rgba(16, 16, 16, 0.25);
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 7.5vw, 110px);
  line-height: 1.05;
  color: #101010;
  transition: color 0.25s ease;
}

.fullscreen-menu-links a:first-child {
  border-top: 1px solid rgba(16, 16, 16, 0.25);
}

.fullscreen-menu-links a:hover {
  color: var(--text-primary);
}

.fm-num {
  font-size: clamp(15px, 1.4vw, 22px);
  font-weight: 500;
  opacity: 0.6;
  flex-shrink: 0;
}

body.menu-open { overflow: hidden; }

/* ---------- Hero (solo home) ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 100px;
  overflow: hidden;
}

.hero video,
.hero .hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 55%);
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-logo {
  height: clamp(52px, 9vw, 100px);
  width: auto;
  display: block;
  margin-bottom: 20px;
  opacity: 0;
  animation: fade-up 0.9s ease-out 0.05s forwards;
}

.hero h1 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.5px;
  max-width: 14ch;
  opacity: 0;
  animation: fade-up 0.9s ease-out 0.15s forwards;
}

.hero h1 .accent-word {
  color: var(--accent);
}

.hero p {
  margin-top: 22px;
  font-size: 17px;
  color: var(--text-primary);
  max-width: 46ch;
  opacity: 0;
  animation: fade-up 0.9s ease-out 0.35s forwards;
}

.hero .cta {
  display: inline-block;
  margin-top: 36px;
  padding: 14px 28px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
  opacity: 0;
  animation: fade-up 0.9s ease-out 0.55s forwards;
}

.hero .cta:hover {
  background: var(--accent);
  color: #101010;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo, .hero h1, .hero p, .hero .cta,
  .page-head h1, .page-head p {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Intestazione di pagina (Bio, Portfolio) ---------- */

.page-head {
  padding-top: 130px;
  padding-bottom: 60px;
}

.page-head h1 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.3px;
  opacity: 0;
  animation: fade-up 0.9s ease-out 0.1s forwards;
}

.page-head p {
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 52ch;
  opacity: 0;
  animation: fade-up 0.9s ease-out 0.25s forwards;
}

/* ---------- Lavori (categorie) ---------- */

section.lavori {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

section.lavori .wrap,
.cta-section .wrap {
  margin: 0 auto;
}

section.lavori h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(34px, 5vw, 52px);
  max-width: 20ch;
  margin-bottom: 56px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .cat-grid { grid-template-columns: 1fr; }
}

.cat-card {
  position: relative;
  background: var(--bg);
  padding: clamp(36px, 3vw, 52px) clamp(28px, 2.4vw, 40px);
  display: flex;
  flex-direction: column;
  min-height: clamp(200px, 16vw, 320px);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.2s ease;
}


/* Riquadri Servizi: tutti i video sono sempre in loop, ma solo UN riquadro
   alla volta è a colori e pienamente visibile (classe .is-active, all'avvio
   "Weddings"). Gli altri sono in bianco e nero al 40% di opacità. Il
   riquadro attivo cambia al passaggio del mouse (desktop) o, su touch, al
   tocco e allo scorrimento (quello che attraversa il centro dello schermo). */
.cat-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(1);
  opacity: 0.4;
  transform: scale(1.02);
  transition: filter 0.6s ease, opacity 0.6s ease, transform 0.8s ease;
  pointer-events: none;
}

.cat-card.is-active .cat-preview {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.06);
}

.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.25) 100%);
  z-index: 1;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.cat-card.is-active::before { opacity: 0.8; }

.cat-card .num,
.cat-card h3,
.cat-card p {
  position: relative;
  z-index: 2;
}

.cat-card .num {
  font-size: 13px;
  color: var(--text-primary);
  opacity: 0.8;
}

.cat-card h3 {
  font-size: clamp(20px, 1.4vw, 26px);
  font-weight: 500;
  margin-top: clamp(60px, 7vw, 130px);
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}

.cat-card p {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(242, 242, 238, 0.82);
  max-width: 30ch;
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}

.cat-card .num, .cat-card h3, .cat-card p { transition: color 0.6s ease, opacity 0.6s ease; }
.cat-card:not(.is-active) h3 { color: rgba(242, 242, 238, 0.85); }

@media (prefers-reduced-motion: reduce) {
  .cat-preview, .cat-card.is-active .cat-preview { transform: none; transition: none; }
}

/* ---------- Pulsante Portfolio (home) ---------- */

/* Stesso spazio tra griglia Servizi → box Portfolio → box "Progetti in cantiere" */
section.lavori { padding-bottom: 64px; }

.portfolio-link-section { padding: 0 0 64px; }
.portfolio-link-section .wrap { margin: 0 auto; }

.pf-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: clamp(20px, 2.4vw, 36px) clamp(20px, 2.8vw, 44px);
  background: var(--bg);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.pf-link.is-on { background: var(--bg-raised); border-color: #4a4a43; }

.pf-iris {
  position: relative;
  display: block;
  width: clamp(84px, 8.5vw, 136px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  flex: none;
}

.pf-iris svg {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  display: block;
}

.pf-iris .blades { fill: var(--text-primary); fill-rule: evenodd; }
.pf-iris .seams { fill: none; stroke: var(--bg); stroke-width: 2.6; stroke-linecap: round; }
.pf-link.is-on .pf-iris .seams { stroke: var(--bg-raised); }

.pf-text { min-width: 0; }

.pf-word {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1;
  transition: color 0.3s ease;
}

.pf-sub {
  display: block;
  color: var(--text-secondary);
  margin-top: 10px;
  font-size: 15px;
}

.pf-arrow {
  width: clamp(46px, 4.2vw, 60px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.pf-arrow svg { width: 45%; height: 45%; transition: transform 0.3s ease; }

.pf-link.is-on .pf-word { color: var(--accent); }
.pf-link.is-on .pf-arrow { background: var(--accent); border-color: var(--accent); color: #101010; }
.pf-link.is-on .pf-arrow svg { transform: translateX(3px); }

@media (max-width: 520px) {
  .pf-link { grid-template-columns: auto 1fr; }
  .pf-arrow { display: none; }
  .pf-iris { width: 76px; }
  .pf-word { font-size: 32px; }
  .pf-sub { font-size: 14px; margin-top: 6px; }
}

/* ---------- Bio ---------- */

section.bio-section {
  padding-bottom: 130px;
}

.bio-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(64px, 6vw, 110px);
  align-items: center;
}

.bio-media { width: 100%; max-width: clamp(340px, 33vw, 560px); }

.bio-photo-ring {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.bio-photo-clip {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-raised);
}

.bio-photo-clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.bio-photo-ring:hover .bio-photo-clip img,
.bio-photo-ring.ring-tap-active .bio-photo-clip img {
  transform: scale(1.05);
}

.ring-svg {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  pointer-events: none;
  transform: rotate(-90deg);
}

.ring-svg circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 295.3;
  stroke-dashoffset: 295.3;
  transition: stroke-dashoffset 0.8s ease;
}

.bio-photo-ring:hover .ring-svg circle,
.bio-photo-ring.ring-tap-active .ring-svg circle,
.bio-photo-ring:focus-visible .ring-svg circle {
  stroke-dashoffset: 0;
}

.bio-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-secondary);
}

.bio-photo-placeholder svg { width: 40px; height: 40px; stroke: var(--text-secondary); }
.bio-photo-placeholder span { font-size: 13px; }

.bio-text .bio-meta {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 22px;
}

.bio-text p {
  margin-top: 18px;
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 68ch;
}

.bio-text p:first-of-type { margin-top: 0; }

@media (min-width: 900px) {
  body.bio-page .page-head,
  body.bio-page .bio-grid {
    margin-left: clamp(0px, 7vw, 120px);
  }
}

/* ---------- Portfolio (carosello) ---------- */

section.gallery-section {
  padding-bottom: 130px;
}

.gallery-carousel {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 32px);
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-stage {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 1240px;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  margin: 0 auto;
}

.gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(.65,0,.35,1);
}

.gallery-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gallery-slide span {
  font-size: 13px;
  color: rgba(242, 242, 238, 0.4);
  letter-spacing: 0.02em;
}

.gallery-slide img,
.gallery-slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.gallery-arrow svg { width: 20px; height: 20px; }

.gallery-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.gallery-dots {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.gallery-dot {
  width: 7px;
  height: 7px;
  position: relative;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.gallery-dot::after {
  content: "";
  position: absolute;
  inset: -10px;
}

.gallery-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* Mobile: il video occupa tutta la larghezza (formato 4:3, più vicino al
   quadrato) e le frecce stanno SOTTO il riquadro, ai lati dei puntini. */
@media (max-width: 720px) {
  .gallery-carousel { gap: 16px 0; margin: 0 -8px; justify-content: space-between; }
  .gallery-stage { order: 0; flex: 0 0 100%; aspect-ratio: 4 / 3; border-radius: 16px; }
  .gallery-prev { order: 1; }
  .gallery-dots { order: 2; flex: 1 1 auto; margin-top: 0; }
  .gallery-next { order: 3; }
  .gallery-arrow { width: 46px; height: 46px; }
  .gallery-arrow svg { width: 18px; height: 18px; }
}

/* ---------- Skills ---------- */

section.skills-section {
  padding-bottom: 130px;
}

.skills-grid {
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: clamp(48px, 6vw, 110px);
  align-items: center;
}

.skills-buttons {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}

.skill-btn {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 18px;
  width: 100%;
  background: var(--bg);
  border: none;
  color: var(--text-primary);
  font-family: 'Archivo', sans-serif;
  text-align: left;
  padding: clamp(18px, 2.1vw, 26px) clamp(22px, 2.2vw, 30px);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.skill-btn:hover { background: var(--bg-raised); }

.skill-btn:active { opacity: 0.85; }

.skill-num {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.25s ease;
  flex-shrink: 0;
}

.skill-label {
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 500;
}

.skill-btn.active {
  background: var(--accent);
  color: #101010;
}

.skill-btn.active .skill-num { color: rgba(16, 16, 16, 0.6); }

.skills-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #111113;
  overflow: hidden;
}

.skills-poster,
.skills-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.skills-video {
  opacity: 0;
  background: #111113;
  pointer-events: none;
}

.skills-video.active { opacity: 1; }

.skills-stage.is-playing .skills-poster { opacity: 0; }

@media (max-width: 720px) {
  .skills-grid { grid-template-columns: 1fr; gap: 28px; }
  .skills-stage { order: -1; max-width: 420px; margin: 0 auto; width: 100%; }
}

/* ---------- Privacy Policy ---------- */

section.legal-section {
  padding-bottom: 130px;
}

.legal-content {
  max-width: 72ch;
}

.legal-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.legal-content h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2vw, 24px);
  margin-top: 48px;
  margin-bottom: 14px;
}

.legal-content h2:first-of-type { margin-top: 0; }

.legal-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-top: 12px;
}

.legal-content a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover { color: var(--accent); }

.legal-content strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ---------- Contatti ---------- */

footer.contatti {
  border-top: 1px solid var(--border);
  padding: 90px 0 60px;
}

footer.contatti h2 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 32px;
}

.contatti-list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  font-size: 16px;
}

.contatti-list a:hover { color: var(--accent); }

.contatti-list .label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  display: inline-flex;
  color: var(--text-primary);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:hover { color: var(--accent); }

footer .bottom-row {
  margin-top: 70px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.privacy-link:hover { color: var(--accent); }

@media (max-width: 720px) {
  .hero { align-items: flex-end; padding-top: 110px; padding-bottom: 56px; }
  .hero-logo { height: 44px; margin-bottom: 14px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 14px; margin-top: 14px; }
  .hero .cta { margin-top: 20px; }
  section.lavori { padding: 80px 0 36px; }
  .portfolio-link-section { padding-bottom: 36px; }
  .page-head { padding-top: 100px; padding-bottom: 40px; }
  .bio-grid { grid-template-columns: 1fr; gap: 36px; }
  .bio-media { max-width: 280px; margin: 0 auto; }
  footer .bottom-row { flex-direction: column; gap: 14px; align-items: flex-start; }
}

@media (max-width: 420px) {
  .btn-contattaci { height: 40px; padding: 0 18px; font-size: 13px; }
  .menu-trigger { width: 40px; height: 40px; }
  .fullscreen-menu-close { top: 22px; right: 22px; }
  .fullscreen-menu-links { padding: 0 22px; }
  .fullscreen-menu-links a { gap: 16px; }
}

@media (max-width: 600px) {
  .wrap { padding-left: 22px; padding-right: 22px; }
  header.nav { padding: 26px 0; }
  header.nav .wrap { padding: 0 22px; }
  .brand img { height: 28px; }
  .brand span { font-size: 14px; }
}

/* ---------- CTA Preventivo ---------- */

.cta-section { padding: 0 0 100px; }

.cta-box {
  background: var(--accent);
  border-radius: 32px;
  padding: 64px;
}

.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.cta-copy h2 {
  color: #101010;
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.1;
}

.cta-copy p {
  color: rgba(16, 16, 16, 0.72);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 28px);
  margin-top: 4px;
}

.cta-form-card {
  background: #fff;
  border-radius: 22px;
  padding: 36px;
}

.cta-form-card form { display: flex; flex-direction: column; gap: 14px; }

.cta-form-card .hp-field { display: none; }

.cta-form-card input,
.cta-form-card textarea {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 13px 16px;
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  color: #101010;
  resize: none;
  background: #fff;
}

.cta-form-card input::placeholder,
.cta-form-card textarea::placeholder {
  color: #8a8a85;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #55554f;
  cursor: pointer;
}

.privacy-check input {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.privacy-check a {
  color: #101010;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-check a:hover { color: var(--accent); }

.cta-form-card button {
  margin-top: 4px;
  background: #101010;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.cta-form-card button:hover { opacity: 0.85; }

@media (max-width: 800px) {
  .cta-split { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .cta-box { padding: 36px 28px; border-radius: 24px; }
  .pf-link { border-radius: 24px; }
  .cta-split { gap: 32px; }
}

/* ---------- Area di tocco più ampia per i link piccoli (mobile) ----------
   L'aspetto non cambia: si allarga solo la zona "toccabile" invisibile
   attorno a icone social, email, telefono e Privacy Policy. */
.contatti-list a,
.bottom-row a,
.privacy-check a { position: relative; }

.contatti-list a::after,
.bottom-row a::after,
.privacy-check a::after {
  content: "";
  position: absolute;
  inset: -12px -4px;
}

.contatti-list a.social-link::after { inset: -12px -8px; }
