/* ─────────────────────────────────────────────────
   Gulpi — Main Stylesheet
   Desktop-first. 1280px container.
   Palette: #FF5A5A · #FF8B5A · #FFA95A · #FFC94D
   ───────────────────────────────────────────────── */

/* ══════════════════════════════════════════
   1. DESIGN TOKENS
══════════════════════════════════════════ */
:root {
  /* Brand */
  --c-red:    #FF5A5A;
  --c-orange: #FF8B5A;
  --c-amber:  #FFA95A;
  --c-gold:   #FFC94D;

  --grad:      linear-gradient(135deg, #FFC94D 0%, #FFA95A 33%, #FF8B5A 66%, #FF5A5A 100%);
  --grad-h:    linear-gradient(135deg, #FFC94D 0%, #FF5A5A 100%);   /* short version for text */

  /* Neutrals */
  --ink:    #111111;
  --ink-2:  #1C1C1E;
  --muted:  #6B7280;
  --border: rgba(0, 0, 0, 0.08);
  --bg:     #FAF9F7;
  --white:  #FFFFFF;

  /* Typography */
  --font:      'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-head: 'Montserrat', sans-serif;

  /* Layout */
  --nav-h:     96px;
  --max-w:     1280px;
  --pad-x:     2.5rem;
  --section-y: 7.5rem;

  /* Radii */
  --r:    16px;
  --r-sm: 10px;
  --r-xs: 6px;

  /* Shadows */
  --sh-sm: 0 2px 8px  rgba(0,0,0,.06);
  --sh-md: 0 8px 32px rgba(0,0,0,.10);
  --sh-lg: 0 24px 64px rgba(0,0,0,.14);

  /* Motion */
  --ease:     cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);
  --dur:      .28s;
}


/* ══════════════════════════════════════════
   2. BASE
══════════════════════════════════════════ */
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}


/* ══════════════════════════════════════════
   3. UTILITIES
══════════════════════════════════════════ */

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* Gradient text */
.g-text {
  background: var(--grad-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section label */
.label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-red);
  margin-bottom: .875rem;
}

/* Section heading shared style */
.section-title {
  font-size: clamp(1.875rem, 3vw, 2.625rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1.125rem;
}

.section-body {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.8;
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .72s var(--ease-out), transform .72s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal--d1 { transition-delay: .06s; }
.reveal--d2 { transition-delay: .14s; }
.reveal--d3 { transition-delay: .22s; }
.reveal--d4 { transition-delay: .30s; }


/* ══════════════════════════════════════════
   4. BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9375rem 1.875rem;
  border-radius: 50px;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

/* Primary — solid red */
.btn--primary {
  background: var(--c-red);
  color: var(--white);
}
.btn--primary:hover {
  background: #e84848;
  box-shadow: 0 14px 36px rgba(255,90,90,.38);
}

/* Ghost dark */
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: rgba(0,0,0,.22);
  box-shadow: none;
}

/* Ghost white (on dark bg) */
.btn--ghost-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.22);
}
.btn--ghost-white:hover {
  border-color: rgba(255,255,255,.65);
  box-shadow: none;
}


/* ══════════════════════════════════════════
   5. PROGRESS BAR
══════════════════════════════════════════ */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--grad);
  z-index: 1200;
  pointer-events: none;
  transition: width .08s linear;
}


/* ══════════════════════════════════════════
   6. HEADER / NAV
══════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition:
    background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    backdrop-filter var(--dur) var(--ease);
}
.header.is-scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border);
}
.header > .container { width: 100%; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__logo-duck {
  height: 80px;
  width: auto;
}

.nav__logo-text {
  height: 62px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}
.nav__link {
  display: block;
  padding: .5rem .875rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--r-xs);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__link:hover,
.nav__link.is-active {
  color: var(--ink);
  background: rgba(0,0,0,.04);
}

.nav__cta { padding: .6875rem 1.375rem; font-size: .875rem; }


/* ══════════════════════════════════════════
   7. HERO
══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  background: var(--white);
  position: relative;
  overflow: hidden;
}

/* Duck decorativa — sezione servizi, bianco e nero */
.services__duck-bg {
  position: absolute;
  top: 160px;
  left: 40px;
  width: 430px;
  height: 430px;
  object-fit: contain;
  opacity: .09;
  pointer-events: none;
  user-select: none;
  filter: grayscale(1);
  z-index: 0;
}

/* Ambient glows */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 680px; height: 680px;
  top: -220px; right: -160px;
  background: radial-gradient(ellipse, rgba(255,201,77,.18) 0%, transparent 62%);
}
.hero::after {
  width: 440px; height: 440px;
  bottom: -140px; left: -100px;
  background: radial-gradient(ellipse, rgba(255,90,90,.10) 0%, transparent 62%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 2rem;
  align-items: center;
  padding-block: 5.5rem;
  width: 100%;
}

/* Left content */
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4375rem 1rem;
  background: rgba(255,90,90,.08);
  color: var(--c-red);
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.625rem;
}
.hero__tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-red);
  display: block;
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(3rem, 4.5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 1.625rem;
}
.hero__title em { font-style: normal; }

.hero__desc {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.78;
  max-width: 500px;
  margin-bottom: 2.625rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3.75rem;
}

/* Stats strip */
.hero__stats {
  display: flex;
  align-items: center;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
}

.stat {
  flex: 1;
  padding-inline: 1.75rem;
}
.stat:first-child { padding-left: 0; }

.stat__num {
  display: block;
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: .3rem;
}

.stat__label {
  display: block;
  font-size: .8125rem;
  color: var(--muted);
  font-weight: 500;
}

.stat-sep {
  width: 1px;
  height: 52px;
  background: var(--border);
  flex-shrink: 0;
}

/* Right visual — orbit */
.hero__visual {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  transform: scale(0.82) translate(40px, -30px);
  transform-origin: top right;
}

.hero__glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(255,201,77,.22) 0%,
    rgba(255,90,90,.10) 40%,
    transparent 68%
  );
  pointer-events: none;
}

.hero__orbit-wrap {
  position: relative;
  width: 420px;
  height: 420px;
}

/* Dashed orbit ring — matches badge orbit radius (r=175px, ⌀=350px) */
.hero__ring {
  position: absolute;
  width: 350px; height: 350px;
  top: calc(50% - 175px);
  left: calc(50% - 175px);
  border-radius: 50%;
  border: 1.5px dashed rgba(0,0,0,.09);
  pointer-events: none;
}

/* Language badges — each animates independently along its own orbit path */
.lbadge {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -24px;   /* half of 48px: centers badge on orbit origin */
  margin-left: -24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 12px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--ink);
  box-shadow: var(--sh-md);
  border: 1px solid var(--border);
  /*
    outer rotate(N)   → positions badge on the circle
    translateX(175px) → sets orbit radius
    inner rotate(-N)  → keeps text perfectly upright at every frame
    animation-delay (negative) sets each badge's starting angle
  */
  animation: orbit-badge 34s linear infinite;
}

/* Duck center */
.hero__center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 190px; height: 190px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px var(--border),
    0 0 0 10px rgba(255,201,77,.08),
    0 24px 64px rgba(255,90,90,.2),
    0 4px 20px rgba(0,0,0,.10);
}
.hero__center img {
  width: 118px; height: 118px;
  object-fit: contain;
}

.hero__hello {
  font-family: var(--font-head, 'Montserrat', sans-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.02em;
  opacity: 1;
  transition: opacity .4s ease;
  user-select: none;
  text-align: center;
  line-height: 1.1;
}

.hero__hello.is-hidden {
  opacity: 0;
}

@keyframes orbit-badge {
  from { transform: rotate(0deg)   translateX(175px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(175px) rotate(-360deg); }
}


/* ══════════════════════════════════════════
   8. SERVICES
══════════════════════════════════════════ */
.services {
  padding-block: var(--section-y);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

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

.services__head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 4.5rem;
}
.services__head .section-body {
  max-width: 520px;
  margin-inline: auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Card */
.scard {
  background: var(--white);
  border-radius: var(--r);
  padding: 2.25rem 2rem 2rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: .9375rem;
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

/* Top accent line */
.scard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent, var(--c-red));
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 0 0 2px 2px;
  transition: transform var(--dur) var(--ease);
}

.scard:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}
.scard:hover::before { transform: scaleX(1); }

/* Background number */
.scard__num {
  position: absolute;
  top: 1rem; right: 1.375rem;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--accent, var(--c-red));
  opacity: .07;
  pointer-events: none;
  user-select: none;
}

/* Icon */
.scard__icon {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  background: var(--accent-soft, rgba(255,90,90,.08));
  color: var(--accent, var(--c-red));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.scard__icon svg { width: 26px; height: 26px; }

.scard h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.scard p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.72;
  flex: 1;
}


/* ══════════════════════════════════════════
   9. ABOUT / CHI SIAMO
══════════════════════════════════════════ */
.about {
  padding-block: var(--section-y);
  background: var(--white);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5.5rem;
  align-items: center;
}

/* Left – dark card */
.about__card {
  background: linear-gradient(150deg, #180900 0%, #0E0600 45%, #0D0D0D 100%);
  border-radius: var(--r);
  padding: 3rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,139,90,.10);
  box-shadow:
    inset 0 0 140px rgba(255,90,90,.04),
    0 32px 80px rgba(0,0,0,.45);
}

/* Gradient top bar */
.about__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad);
  opacity: .7;
}

/* Amber glow bottom-right */
.about__card::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,201,77,.10) 0%, transparent 60%);
  pointer-events: none;
}

/* Red glow top-left */
.about__card-glow {
  position: absolute;
  top: -60px; left: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,90,90,.10) 0%, transparent 65%);
  pointer-events: none;
}

.about__card-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: .1em;
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  line-height: 1;
}

.about__since {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: .625rem;
  position: relative;
  z-index: 1;
}


.about__big-num {
  display: flex;
  align-items: baseline;
  gap: .15rem;
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .375rem;
  position: relative;
  z-index: 1;
}

.about__big-label {
  font-size: 1rem;
  color: rgba(255,255,255,.55);
  font-weight: 500;
  margin-bottom: 2.625rem;
  position: relative;
  z-index: 1;
}

.about__mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
  position: relative;
  z-index: 1;
}

.about__mini-stat strong {
  display: block;
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: .2rem;
  white-space: nowrap;
}
.about__mini-stat > span {
  font-size: .8125rem;
  color: rgba(255,255,255,.45);
  font-weight: 500;
}

/* Right – text content */
.about__content { padding-block: .5rem; }

.about__content .section-body {
  margin-bottom: 2.75rem;
}

.about__points {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.about__point {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.about__point-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__point-icon svg { width: 22px; height: 22px; }

.about__point-text strong {
  display: block;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .25rem;
}
.about__point-text p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.72;
}


/* ══════════════════════════════════════════
   10. CONTACT / CONTATTI
══════════════════════════════════════════ */
.contact {
  padding-block: var(--section-y);
  background: linear-gradient(160deg, #1F0C04 0%, #150A04 40%, #0F0F0F 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Red glow top-center */
.contact::before {
  content: '';
  position: absolute;
  top: -280px; left: 15%;
  width: 800px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,90,90,.22) 0%, transparent 58%);
  pointer-events: none;
}
/* Gold glow bottom-right */
.contact::after {
  content: '';
  position: absolute;
  bottom: -180px; right: -60px;
  width: 600px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,201,77,.18) 0%, transparent 60%);
  pointer-events: none;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5.5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Left info */
.contact__info .label { color: var(--c-gold); }

.contact__info .section-title { color: var(--white); }

.contact__info .section-body {
  color: rgba(255,255,255,.60);
  max-width: 400px;
  margin-bottom: 3rem;
}

.contact__items {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 1.125rem;
}

.contact__item-icon {
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-gold);
  flex-shrink: 0;
}
.contact__item-icon svg { width: 20px; height: 20px; }

.contact__item-body strong {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .175rem;
}
.contact__item-body a,
.contact__item-body span {
  font-size: .9375rem;
  color: rgba(255,255,255,.82);
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}
.contact__item-body a:hover { color: var(--c-gold); }

/* Right – form */
.contact__form {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r);
  padding: 2.875rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.125rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.375rem;
}
.form-group:last-child { margin-bottom: 0; }

.form-group label {
  font-size: .775rem;
  font-weight: 600;
  color: rgba(255,255,255,.60);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-sm);
  padding: .9375rem 1.125rem;
  font-size: .9375rem;
  color: var(--white);
  outline: none;
  transition:
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,.30);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--c-gold);
  background: rgba(255,201,77,.06);
}

/* ── Custom dropdown ── */
.custom-select { position: relative; }

.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-sm);
  padding: .9375rem 1.125rem;
  font-size: .9375rem;
  color: rgba(255,255,255,.45);
  cursor: pointer;
  user-select: none;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), border-radius var(--dur) var(--ease);
}
.custom-select__trigger.has-value { color: var(--white); }
.custom-select.is-open .custom-select__trigger {
  border-color: var(--c-gold);
  background: rgba(255,201,77,.06);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}

.custom-select__arrow {
  width: 16px; height: 16px;
  color: rgba(255,255,255,.35);
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}
.custom-select.is-open .custom-select__arrow { transform: rotate(180deg); }

.custom-select__options {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #1E1E20;
  border: 1px solid rgba(255,201,77,.25);
  border-top: none;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  z-index: 50;
  overflow: hidden;
  display: none;
  box-shadow: 0 20px 48px rgba(0,0,0,.5);
}
.custom-select.is-open .custom-select__options { display: block; }

.custom-select__option {
  padding: .9375rem 1.125rem;
  font-size: .9375rem;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  list-style: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.custom-select__option:last-child { border-bottom: none; }
.custom-select__option:hover {
  background: rgba(255,201,77,.1);
  color: var(--white);
}
.custom-select__option.is-selected {
  color: var(--c-gold);
  background: rgba(255,201,77,.07);
}

/* ── GDPR checkbox ── */
.checkbox-group {
  display: flex;
  gap: .875rem;
  align-items: flex-start;
  margin-bottom: 1.375rem;
}
.checkbox-group input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: .2rem;
  accent-color: var(--c-gold);
  cursor: pointer;
  border-radius: 4px;
}
.checkbox-group label {
  font-size: .8125rem;
  color: rgba(255,255,255,.60);
  line-height: 1.6;
  cursor: pointer;
}
.checkbox-group label a {
  color: var(--c-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--dur) var(--ease);
}
.checkbox-group label a:hover { color: var(--white); }

.form-group textarea {
  resize: vertical;
  min-height: 118px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 1.0625rem;
  margin-top: .5rem;
}


/* ══════════════════════════════════════════
   11. FOOTER
══════════════════════════════════════════ */
.footer {
  background: #080808;
  padding: 1.75rem 0;
}


.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8125rem;
  color: rgba(255,255,255,.60);
}

.footer__legal {
  display: flex;
  gap: 1.75rem;
}
.footer__legal a {
  color: rgba(255,255,255,.60);
  transition: color var(--dur) var(--ease);
}
.footer__legal a:hover { color: rgba(255,255,255,.90); }

.footer__madeby {
  color: rgba(255,255,255,.60);
  padding-left: .5rem;
  border-left: 1px solid rgba(255,255,255,.20);
}
.footer__madeby a {
  color: rgba(255,255,255,.75);
  transition: color var(--dur) var(--ease);
}
.footer__madeby a:hover { color: var(--c-red); }


/* ══════════════════════════════════════════
   12. LANGUAGE SWITCHER
══════════════════════════════════════════ */
.lang-switcher { position: relative; }

.lang-switcher__btn {
  display: flex;
  align-items: center;
  gap: .375rem;
  padding: .375rem .75rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: var(--font);
  font-size: .8125rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  letter-spacing: .04em;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang-switcher__btn:hover {
  border-color: var(--c-red);
  color: var(--c-red);
}
.lang-switcher__btn svg {
  transition: transform var(--dur) var(--ease);
}
.lang-switcher.is-open .lang-switcher__btn {
  border-color: var(--c-red);
  color: var(--c-red);
}
.lang-switcher.is-open .lang-switcher__btn svg { transform: rotate(180deg); }

.lang-switcher__list {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: .375rem 0;
  min-width: 148px;
  list-style: none;
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
  z-index: 200;
}
.lang-switcher.is-open .lang-switcher__list {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.lang-switcher__option {
  padding: .5rem 1rem;
  font-size: .875rem;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.lang-switcher__option:hover {
  background: rgba(0,0,0,.05);
  color: var(--ink);
}
.lang-switcher__option.is-active {
  color: var(--c-red);
  font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════
   12b. SOCIAL ICONS (sezione contatti)
═══════════════════════════════════════════════════════════ */
.contact__social {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact__social-label {
  font-size: .8125rem;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.contact__social-icons {
  display: flex;
  gap: .625rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.55);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.social-icon svg {
  width: 17px;
  height: 17px;
}

.social-icon:hover {
  background: var(--c-red);
  color: var(--white);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   12c. COOKIE BANNER
═══════════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1100;
  padding: 1.25rem 1.5rem;
  background: rgba(12,12,12,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,.08);
  transform: translateY(100%);
  transition: transform .45s cubic-bezier(.16,1,.3,1);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: 1280px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  min-width: 240px;
}

.cookie-banner__text a {
  color: var(--c-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__text a:hover {
  color: var(--c-orange);
}

.cookie-banner__actions {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
}

/* Il banner usa .btn--ghost-white (già definita in sezione 4) */
/* ═══════════════════════════════════════════════════════════
   13a. HONEYPOT ANTI-SPAM
═══════════════════════════════════════════════════════════ */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   13. HAMBURGER + MOBILE NAV
═══════════════════════════════════════════════════════════ */

/* Hamburger button — hidden on desktop */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  z-index: 1001;
}

.nav__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease), width .3s var(--ease);
  transform-origin: center;
}

/* Animated X state */
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--c-red); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--c-red); }

/* Mobile nav overlay */
.mobile-nav {
  display: none; /* shown only via media query */
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.mobile-nav__link {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.01em;
  transition: color var(--dur) var(--ease);
}

.mobile-nav__link:hover { color: var(--c-red); }

.mobile-nav__cta {
  font-size: 1rem;
  padding: .85rem 2rem;
}

.mobile-nav__langs {
  display: flex;
  gap: 1rem;
  margin-top: .5rem;
}

.mobile-nav__lang-opt {
  font-size: .875rem;
  font-weight: 600;
  color: rgba(0,0,0,.35);
  cursor: pointer;
  transition: color var(--dur) var(--ease);
  letter-spacing: .03em;
}

.mobile-nav__lang-opt:hover { color: var(--ink); }
.mobile-nav__lang-opt.is-active { color: var(--c-red); }


/* ═══════════════════════════════════════════════════════════
   14. RESPONSIVE — BREAKPOINTS
═══════════════════════════════════════════════════════════ */

/* ── 1100px — Tablet landscape ── */
@media (max-width: 1100px) {

  /* Nav: hide desktop links + lang switcher, show burger */
  .nav__links,
  .lang-switcher,
  .nav__cta { display: none; }

  .nav__burger { display: flex; }

  .mobile-nav { display: flex; }

  /* Hero: single column */
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__visual { display: none; }

  .hero__stats { justify-content: center; }

  .hero__actions { justify-content: center; }

  /* Services: 2 columns */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* About: single column */
  .about__inner {
    grid-template-columns: 1fr;
  }

  .about__card {
    max-width: 480px;
    margin-inline: auto;
  }

  /* Contact: single column */
  .contact__inner {
    grid-template-columns: 1fr;
  }

  /* Footer: wrap */
  .footer__bottom {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* ── 768px — Tablet portrait ── */
@media (max-width: 768px) {

  /* Section vertical padding */
  section { padding-block: 4rem; }

  /* Hero text */
  .hero__title { font-size: clamp(2.4rem, 8vw, 3.5rem); }

  /* Services: 2 cols */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Form row: single column */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer: center-stack */
  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .75rem;
  }

  .footer__legal { justify-content: center; flex-wrap: wrap; }
}

/* ── 540px — Mobile ── */
@media (max-width: 540px) {

  /* Services: single column */
  .services__grid {
    grid-template-columns: 1fr;
  }

  /* Hero stats: griglia 3 colonne su mobile */
  .hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    justify-content: flex-start;
  }

  .stat { padding-inline: 0; }
  .stat-sep { display: none; }

  .stat__num { font-size: 1.5rem; }
  .stat__label { font-size: .75rem; }

  /* Hero CTAs: sinistra */
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  /* About big number */
  .about__big-num { font-size: clamp(3rem, 12vw, 5rem); }

  /* Contact info items */
  .contact__item { flex-direction: column; gap: .5rem; }

  /* Cards: tighter padding */
  .scard { padding: 1.5rem; }
  .contact__info,
  .contact__form { padding: 1.5rem 1.25rem; }
}
