/* =========================================================
   ONE Digital Team — global styles
   Palette: black / white / ottanio / smeraldo
   ========================================================= */

:root {
  --black: #0A0B0D;
  --ink: #14161A;
  --ink-2: #1B1E24;
  --white: #FFFFFF;
  --bone: #F4F5F2;
  --bone-2: #ECEDE8;
  --line: rgba(20,22,26,.10);
  --line-dark: rgba(255,255,255,.10);

  /* Accent — switched by Tweaks */
  --accent: #00C4C4;          /* ottanio default */
  --accent-2: #00E0D2;
  --accent-deep: #006E73;
  --accent-soft: #C6F4F1;

  --emerald: #00B07A;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 22px;

  --max: 1440px;
  --pad: clamp(20px, 4vw, 64px);

  --font-display: "Space Grotesk", "Inter Tight", system-ui, sans-serif;
  --font-body: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

[data-accent="emerald"] {
  --accent: #00B07A;
  --accent-2: #2DDB9D;
  --accent-deep: #066B4D;
  --accent-soft: #C6F0DE;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

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

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

button { font-family: inherit; cursor: pointer; }

/* ───── utility ──────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

[data-accent="emerald"] .eyebrow { color: var(--accent-deep); }

.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
}

.h1 { font-size: clamp(40px, 6.4vw, 96px); }
.h2 { font-size: clamp(32px, 4.6vw, 64px); }
.h3 { font-size: clamp(22px, 2.2vw, 32px); }

.lede {
  font-size: clamp(16px, 1.2vw, 19px);
  color: rgba(20,22,26,.72);
  max-width: 60ch;
}

/* ───── buttons ──────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-2); }

.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover { background: var(--ink-2); }

.btn-outline {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}
.btn-outline:hover { background: currentColor; color: var(--white); }
.btn-outline.on-dark:hover { color: var(--black); }

.btn-ghost {
  background: transparent;
  color: inherit;
  padding-inline: 4px;
}
.btn-ghost:hover { color: var(--accent-deep); }

.btn .arrow {
  width: 16px;
  height: 16px;
  transition: transform .25s ease;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.btn:hover .arrow { transform: translateX(4px); }

/* Safety: prevent any unsized SVG icon from ballooning in flex containers */
.icon, button svg, a svg { flex-shrink: 0; }

/* ───── header ───────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin: 0 2px 0 1px;
  align-self: center;
  display: inline-block;
}
.brand small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(20,22,26,.6);
  margin-left: 10px;
  border-left: 1px solid var(--line);
  padding-left: 10px;
  font-family: var(--font-mono);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}
.nav-links a {
  color: rgba(20,22,26,.78);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transition: right .25s ease;
}
.nav-links a:hover::after { right: 0; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-cta .phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.nav-cta .phone:hover { border-color: var(--ink); }
.nav-cta .phone svg { width: 14px; height: 14px; }

/* Icon-only phone button for mobile */
.nav-cta .phone-icon {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--black);
  border: 0;
  align-items: center;
  justify-content: center;
}
.nav-cta .phone-icon svg { width: 18px; height: 18px; }

.menu-toggle {
  display: none;
  background: var(--black);
  color: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

/* ───── hero slider ──────────────────────────────────────── */

.hero {
  position: relative;
  height: calc(100vh - 80px);
  min-height: 620px;
  max-height: 900px;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

.hero-track {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform 900ms cubic-bezier(.7,0,.2,1);
  will-change: transform;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.hero-slide.is-active .bg { transform: scale(1.0); }

.hero-slide .scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,11,13,.35) 0%, rgba(10,11,13,.55) 50%, rgba(10,11,13,.9) 100%),
    linear-gradient(120deg, rgba(10,11,13,.7) 0%, rgba(10,11,13,.25) 60%, rgba(10,11,13,0) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(80px, 12vh, 140px);
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.92;
  font-size: clamp(48px, 8.2vw, 132px);
  margin: 0 0 24px;
  max-width: 14ch;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-title .strike {
  position: relative;
  display: inline-block;
}
.hero-title .strike::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 52%;
  height: 0.08em;
  background: var(--accent);
  transform: rotate(-3deg);
}

.hero-sub {
  font-size: clamp(16px, 1.25vw, 20px);
  max-width: 52ch;
  color: rgba(255,255,255,.85);
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Counter — top right */
.hero-counter {
  position: absolute;
  top: clamp(28px, 5vh, 52px);
  right: var(--pad);
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.hero-counter .num {
  font-size: 14px;
  color: var(--white);
}
.hero-counter .accent { color: var(--accent); }

/* Index label of current slide (top-left) */
.hero-label {
  position: absolute;
  top: clamp(28px, 5vh, 52px);
  left: var(--pad);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.hero-label .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,196,196,.18);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,196,196,.45); }
  100% { box-shadow: 0 0 0 12px rgba(0,196,196,0); }
}

/* Hero nav (arrows + dots + progress) */
.hero-nav {
  position: absolute;
  z-index: 3;
  left: var(--pad);
  right: var(--pad);
  bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hero-progress {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,.18);
  position: relative;
  overflow: hidden;
}
.hero-progress .fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--accent);
  transition: width 80ms linear;
}

.hero-dots {
  display: flex;
  gap: 10px;
}
.hero-dots button {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.5);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  padding: 6px 4px;
}
.hero-dots button.on { color: var(--accent); }

.hero-arrows {
  display: flex;
  gap: 8px;
}
.hero-arrows button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.04);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}
.hero-arrows button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
}
.hero-arrows svg { width: 18px; height: 18px; }

/* Diagonal cut between hero and next */
.hero::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  bottom: -1px;
  height: 90px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 100%, 100% 60%, 0 0);
  z-index: 4;
}

/* ───── sections ────────────────────────────────────────── */

.section {
  position: relative;
  padding-block: clamp(80px, 12vh, 140px);
}

.section--dark {
  background: var(--black);
  color: var(--white);
}

.section--bone {
  background: var(--bone);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(40px, 6vh, 72px);
}

@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 18px; }
}

/* Chi siamo */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.about-grid p { font-size: 17px; line-height: 1.65; color: rgba(20,22,26,.78); }
.about-grid p + p { margin-top: 1em; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  background: var(--bone);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat .num em {
  font-style: normal;
  color: var(--accent-deep);
}
.stat .lbl {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(20,22,26,.6);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.stat::after {
  content: "";
  position: absolute;
  width: 64px; height: 64px;
  right: -16px; top: -16px;
  background: var(--accent);
  opacity: .9;
  transform: rotate(45deg);
}

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

/* ───── Services (Digital Ads / Commerce) ────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
}
.service-card {
  background: var(--black);
  padding: clamp(28px, 3vw, 44px);
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background .3s ease;
  overflow: hidden;
}
.service-card:hover { background: var(--ink-2); }
.service-card .tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 10px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 2.6vw, 38px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 18px 0 16px;
}
.service-card p {
  color: rgba(255,255,255,.7);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.service-card .shape {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: var(--accent);
  opacity: 0.16;
  transform: rotate(20deg);
  transition: opacity .3s ease, transform .4s ease;
}
.service-card:hover .shape { opacity: 0.3; transform: rotate(28deg) translateY(-8px); }
.service-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,.4);
}

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

/* Methodology — data driven steps */
.methodology {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.method-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.method-list li {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  align-items: baseline;
}
.method-list .step {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.method-list .ttl {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.method-list .desc {
  color: rgba(255,255,255,.6);
  font-size: 14px;
  max-width: 32ch;
  text-align: right;
}
@media (max-width: 800px) {
  .methodology { grid-template-columns: 1fr; }
  .method-list li { grid-template-columns: 40px 1fr; }
  .method-list .desc { grid-column: 1 / -1; text-align: left; max-width: none; }
}

.method-aside {
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,.08);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.method-aside h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.method-aside p {
  color: rgba(255,255,255,.7);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 24px;
}
.method-aside .kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.method-aside .kpi {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 12px;
}
.method-aside .kpi .v {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.method-aside .kpi .l {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  font-family: var(--font-mono);
}

/* Commerce — different look, light background, big platforms grid */
.commerce-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.commerce-card {
  background: var(--white);
  padding: clamp(24px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  position: relative;
  transition: background .25s ease;
}
.commerce-card:hover { background: var(--bone-2); }
.commerce-card .ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--black);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.commerce-card .ico svg { width: 22px; height: 22px; }
.commerce-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 4px 0 0;
}
.commerce-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(20,22,26,.68);
}
.commerce-card .num {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(20,22,26,.35);
  letter-spacing: 0.1em;
}
@media (max-width: 1000px) { .commerce-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .commerce-grid { grid-template-columns: 1fr; } }

/* Commerce platforms strip */
.platforms {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.platforms .lbl {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(20,22,26,.55);
  margin-right: 8px;
}
.platforms .chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: var(--white);
  transition: all .2s ease;
}
.platforms .chip:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ───── Industries ──────────────────────────────────────── */

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.industry-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-md);
}
.industry-card .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  transition: transform .8s ease, opacity .4s ease;
}
.industry-card:hover .bg { transform: scale(1.06); opacity: 0.7; }
.industry-card .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,11,13,0) 30%, rgba(10,11,13,.9) 100%);
}
.industry-card .content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  z-index: 2;
}
.industry-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
}
.industry-card h4 {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 6px 0 0;
}
.industry-card .corner {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease;
}
.industry-card:hover .corner { background: var(--accent); color: var(--black); }
.industry-card .corner svg { width: 14px; height: 14px; }

@media (max-width: 1000px) { .industries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .industries-grid { grid-template-columns: 1fr; } .industry-card { aspect-ratio: 16 / 9; } }

/* ───── Partners marquee ────────────────────────────────── */

.partners {
  background: var(--black);
  color: var(--white);
  padding-block: 64px;
  overflow: hidden;
  position: relative;
}
.partners .head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 40px;
  gap: 24px;
}
.partners .head h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 22ch;
}
.partners .head .tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: scroll-x 40s linear infinite;
  align-items: center;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee + .marquee { margin-top: 18px; }
.marquee + .marquee .marquee-track { animation-duration: 50s; animation-direction: reverse; }

@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.partner-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  font-weight: 600;
  font-size: 18px;
  color: rgba(255,255,255,.92);
  white-space: nowrap;
  transition: all .25s ease;
  flex: 0 0 auto;
}
.partner-logo:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.partner-logo .swatch {
  width: 18px; height: 18px;
  border-radius: 4px;
  display: inline-block;
}

/* ───── CTA banner ──────────────────────────────────────── */

.cta-banner {
  position: relative;
  background: var(--accent);
  color: var(--black);
  padding-block: clamp(60px, 10vh, 100px);
  overflow: hidden;
}
.cta-banner::before, .cta-banner::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: rgba(0,0,0,.06);
  transform: rotate(35deg);
}
.cta-banner::before { left: -80px; top: -120px; }
.cta-banner::after { right: -100px; bottom: -160px; }

.cta-banner .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 60px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}
.cta-banner h2 em {
  font-style: normal;
  border-bottom: 4px solid var(--black);
}
.cta-banner .cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 800px) {
  .cta-banner .container { grid-template-columns: 1fr; }
  .cta-banner .cta-actions { justify-content: flex-start; }
}

/* ───── Contact ─────────────────────────────────────────── */

.contact {
  background: var(--bone);
  position: relative;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-info h2 {
  margin-top: 16px;
}
.contact-info p {
  font-size: 17px;
  color: rgba(20,22,26,.72);
  max-width: 38ch;
  margin: 24px 0;
}
.contact-info .channels {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.contact-info .channels li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  font-size: 17px;
}
.contact-info .channels svg {
  width: 18px; height: 18px;
  color: var(--accent-deep);
}

.form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(28px, 3vw, 44px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  position: relative;
}
.form::before {
  content: "";
  position: absolute;
  top: -10px; right: 32px;
  width: 60px; height: 60px;
  background: var(--accent);
  transform: rotate(45deg);
  z-index: -1;
}
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(20,22,26,.65);
  font-family: var(--font-mono);
}
.field input, .field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--bone);
  border-radius: 4px;
  transition: border-color .2s ease, background .2s ease;
  color: var(--ink);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}
.form-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.privacy-note {
  font-size: 12px;
  color: rgba(20,22,26,.6);
  max-width: 40ch;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}
.form-success {
  margin-top: 8px;
  padding: 12px 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-size: 14px;
  color: var(--accent-deep);
  font-weight: 500;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

/* ───── Footer ──────────────────────────────────────────── */

.site-footer {
  background: var(--black);
  color: var(--white);
  padding-block: 80px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(32px, 4vw, 64px);
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.footer-col a {
  color: rgba(255,255,255,.78);
  font-size: 15px;
}
.footer-col a:hover { color: var(--white); }

.footer-brand .brand {
  color: var(--white);
  margin-bottom: 18px;
}
.footer-brand .brand small {
  color: rgba(255,255,255,.55);
  border-left-color: rgba(255,255,255,.15);
}
.footer-brand p {
  color: rgba(255,255,255,.7);
  font-size: 15px;
  line-height: 1.6;
  max-width: 32ch;
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.social a {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  transition: all .2s ease;
}
.social a:hover { background: var(--accent); border-color: var(--accent); color: var(--black); }
.social svg { width: 16px; height: 16px; }

.newsletter-form {
  display: flex;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  margin-top: 8px;
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--white);
  padding: 14px 18px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form button {
  background: var(--accent);
  color: var(--black);
  border: 0;
  padding: 0 18px;
  font-weight: 600;
  font-family: inherit;
}
.newsletter-form button:hover { background: var(--accent-2); }

.legal {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.legal a:hover { color: var(--accent); }
.legal .links { display: flex; gap: 22px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ───── Floating call CTA on mobile (disabled — replaced by header icon) ─ */
.fab-call { display: none !important; }

/* ───── responsive nav ──────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta .phone { display: none; }
  .nav-cta .phone-icon { display: inline-flex; }
  /* hide the desktop "Contattaci" button on small screens — phone + menu cover it */
  .nav-cta .btn-primary { display: none; }
}

/* Mobile menu drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--black);
  color: var(--white);
  transform: translateY(-100%);
  transition: transform .5s cubic-bezier(.7,0,.2,1);
  display: flex;
  flex-direction: column;
  padding: 24px var(--pad);
  overflow: hidden;
}
.drawer.open { transform: translateY(0); }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-head .close {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--black);
  border: 0;
}
.drawer ul {
  list-style: none;
  margin: 80px 0 0;
  padding: 0;
}
.drawer li {
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.drawer a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 22px 0;
}
.drawer a:hover { color: var(--accent); }

/* ───── Section title with diagonal accent ─────────────── */
.title-block .eyebrow { margin-bottom: 20px; }
.title-block h2 { margin: 0; }
.title-block .sub {
  margin-top: 24px;
  font-size: clamp(16px, 1.2vw, 19px);
  color: rgba(20,22,26,.7);
  max-width: 55ch;
}
.section--dark .title-block .sub { color: rgba(255,255,255,.7); }
.section--dark .eyebrow { color: var(--accent); }
.section--dark .eyebrow::before { background: var(--accent); }

/* Diagonal slab decoration */
.slab {
  position: absolute;
  background: var(--accent);
  opacity: .12;
  pointer-events: none;
  z-index: 0;
}
.slab-1 {
  width: 220px;
  height: 220px;
  transform: rotate(20deg);
  top: 80px;
  right: -80px;
}
.slab-2 {
  width: 160px;
  height: 160px;
  transform: rotate(40deg);
  bottom: 40px;
  left: -60px;
  opacity: .08;
}

.section .container { position: relative; z-index: 1; }

/* ───── Landing page template ──────────────────────── */
.landing-page { width: 100%; }
.landing-content {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
  padding-block: clamp(48px, 8vh, 96px);
}

/* WordPress editor block alignment support */
.landing-content .alignwide  { max-width: 1200px; margin-inline: auto; }
.landing-content .alignfull  { max-width: 100vw; margin-inline: calc(-1 * var(--pad)); }

/* ───── WordPress core block resets ─────────────────── */
.wp-block-image img { border-radius: var(--r-md); }
.wp-block-button__link {
  background: var(--accent);
  color: var(--black);
  border-radius: 999px;
  font-weight: 600;
  padding: 14px 22px;
}
.wp-block-button__link:hover { background: var(--accent-2); }
