/* ═══════════════════════════════════════════════════
   TOKENS — ricavati dai JSON Elementor
   Primary bg:    #0B0B1E  (dark navy)
   Text:          #FFFFFF
   Accent blue:   #61B1FC  (bottoni Prenota)
   Accent orange: #FFAA53  (hover + testo in evidenza)
   Font display:  Plus Jakarta Sans
   Font mono:     Space Mono  (bottoni)
   Font serif:    Merriweather (body popup, copyright)
═══════════════════════════════════════════════════ */

/* ── RESET & BASE ────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: #0B0B1E;
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ── ACCESSIBILITÀ ──────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--orange);
  color: var(--bg);
  padding: 10px 20px;
  z-index: 2000;
  font-weight: 700;
  transition: top 0.3s ease;
}
.skip-link:focus {
  top: 0;
}

/* Focus visibile per navigazione da tastiera */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

/* ── VARIABILI ───────────────────────────────────── */
:root {
  --bg:        #0B0B1E;
  --bg-card:   #12122A;
  --border:    rgba(255, 255, 255, 0.10);
  --blue:      #61B1FC;
  --orange:    #FFAA53;
  --orange-alt:#ffAA35;
  --text:      #FFFFFF;
  --text-dim:  rgba(255, 255, 255, 0.60);
  --text-mute: rgba(255, 255, 255, 0.55);
  --radius:    12px;
  --transition: 0.3s ease;
  --max-w:     1200px;
}


/* ── UTILITÀ ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 20px;
}

.accent-orange,
.orange {
  color: var(--orange);
}

.about-body strong.accent-orange,
.about-body strong.orange {
  color: var(--orange);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.20s; }
.reveal-d3 { transition-delay: 0.30s; }
.reveal-d4 { transition-delay: 0.40s; }


/* ── BOTTONI ─────────────────────────────────────── */
.btn-prenota {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  background-color: var(--orange);
  border: 2px solid var(--orange);
  border-radius: 20px;
  padding: 8px 14px;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
}
.btn-prenota:hover {
  opacity: 0.85;
  transform: scale(0.97);
  box-shadow: 3px 0 10px rgba(255, 170, 83, 0.64);
}

.btn-ghost {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 20px;
  transition: color var(--transition), border-color var(--transition);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-scopri {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 20px;
  padding: 6px 16px;
  background: transparent;
  transition: background var(--transition), color var(--transition);
  margin-top: 12px;
}
.btn-scopri:hover {
  background: var(--orange);
  color: #fff;
}

/* link-btn (usato nel footer contatti) */
.link-btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
}
.link-btn:hover {
  color: var(--orange);
}


/* ══════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--bg);
  transition: box-shadow var(--transition);
}
#site-header.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 80px;
  padding-inline: 20px;
  max-width: var(--max-w);
  margin-inline: auto;
}

/* Logo */
.site-logo img {
  width: 150px;  /* mobile */
  aspect-ratio: 150 / 40; /* Sostituisci con l'altezza reale del tuo logo */
  height: auto;
}
.logo-fallback {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
}

/* Nav Desktop — nascosto su mobile */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 0;
}
.nav-desktop a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  padding: 6px 15px;
  transition: color var(--transition);
}
.nav-desktop a:hover {
  color: var(--orange);
}

/* Header right */
.header-right {
  display: none;
  align-items: center;
  gap: 20px;
}

/* Social icons nel header */
.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-icons a {
  display: flex;
  min-width: 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
  transition: color var(--transition), border-color var(--transition);
}
.social-icons a:hover {
  color: var(--orange);
  border-color: var(--orange);
}

/* Hamburger */
.hamburger {
  font-size: 28px;
  color: var(--orange);
  background: none;
  border: none;
  padding: 8px 14px 5px;
  line-height: 1;
}


/* ── OFF-CANVAS MOBILE MENU ──────────────────────── */
.offcanvas-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.offcanvas-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.offcanvas-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background-color: var(--bg);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 50px 24px 40px;
  gap: 0;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
.offcanvas-menu.open {
  transform: translateX(0);
}

.offcanvas-close {
  position: absolute;
  top: 0;
  right: 5%;
  font-size: 28px;
  color: var(--orange);
  background: none;
  border: none;
  padding: 12px 14px 5px;
  cursor: pointer;
}

.offcanvas-menu ul {
  width: 100%;
  margin-bottom: 24px;
}
.offcanvas-menu ul li {
  border-bottom: 1px solid var(--border);
}
.offcanvas-menu ul li:first-child {
  border-top: 1px solid var(--border);
}
.offcanvas-link {
  display: block;
  text-align: right;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  padding: 12px 0;
  margin-right: 70px;
  transition: color var(--transition);
}
.offcanvas-link:hover {
  color: var(--orange);
}

.offcanvas-social {
  display: flex;
  gap: 10px;
  margin-right: 70px;
  margin-top: -10px;
}
.offcanvas-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 16px;
  color: #FFFFFF;
  transition: color var(--transition), border-color var(--transition);
}
.offcanvas-social a:hover {
  color: var(--orange);
  border-color: var(--orange);
}


/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Ottimizzazione Mobile: nascondiamo il video sotto i 768px per migliorare le performance */
@media (max-width: 768px) {
  .hero-video {
    display: none;
  }
  .hero {
    background: linear-gradient(135deg, rgba(11, 11, 30, 0.62) 0%, rgba(11, 11, 30, 0.52) 100%),
                url('../img/Screenshot 2026-05-17 223154-sm.jpg') center/cover no-repeat;
  }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 11, 30, 0.75) 0%, rgba(11, 11, 30, 0.65) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
  animation: fadeUp 0.8s 0.2s both;
}

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(40px, 8vw, 84px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
  animation: fadeUp 0.8s 0.4s both;
}

.hero-title em {
  font-style: italic;
  color: var(--orange);
}

.hero-title .accent-white {
  display: block;
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--text);
  margin-top: 16px;
}

.hero-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 36px;
  animation: fadeUp 0.8s 0.6s both;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeUp 0.8s 0.8s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ══════════════════════════════════════════════════
   CHI SONO
══════════════════════════════════════════════════ */
.about {
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  margin-bottom: 20px;
}

/* Colonna immagine */
.about-img-col {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  flex-shrink: 0;
}
.about-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Colonna testo */
.about-text-col {
  display: flex;
  align-items: center;
  padding: 60px 32px;
  background-color: var(--bg);
}

/* Testo */
.about-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
}

.about-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
}

.about-rotating {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 600;
  color: var(--text-dim);
  min-height: 32px;
}
.rotating-accent {
  color: var(--orange);
  display: inline-block;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.rotating-accent.fade-out {
  opacity: 0;
  transform: translateY(8px);
}

.about-body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-dim);
}
.about-body strong {
  color: var(--text);
  font-weight: 600;
}

/* Tool logos */
.tool-marquee-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: rgba(255, 255, 255, 0.03);
  padding: 24px 0;
  overflow: hidden;
}
.tool-marquee {
  display: flex;
  align-items: center;
  width: 100%;
  animation: marquee 25s linear infinite;
}
.tool-marquee:hover {
  animation-play-state: paused;
}
.tool-marquee-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  flex-shrink: 0;
}
.tool-marquee img {
  height: 100px;
  width: 100px;
  object-fit: contain;
  filter: none;
  opacity: 0.95;
  transition: opacity var(--transition), transform var(--transition);
}
.tool-marquee img:hover {
  opacity: 1;
  transform: scale(1.05);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


/* ══════════════════════════════════════════════════
   SERVIZI
══════════════════════════════════════════════════ */
.servizi {
  padding: 80px 20px;
  background-color: var(--bg);
  border-top: 1px solid var(--border);
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(26px, 5vw, 48px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.15;
  text-align: center;
}

.section-title .accent-orange {
  color: var(--orange);
}

.section-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 400;
  color: var(--text-dim);
  margin-bottom: 40px;
  text-align: center;
}

.servizi-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.servizio-card {
  background: #FFFFFF;
  border: none;
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.servizio-card .btn-scopri {
  margin-top: auto;
  align-self: center;
}
.servizio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 700;
  color: #0B0B1E;
  margin-bottom: 8px;
}

.card-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #666666;
  line-height: 1.6;
  margin-bottom:15px;
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  color: var(--orange);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  display: block;
  margin-bottom: 12px;
}

.card-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.servizio-card .card-body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #555555;
  line-height: 1.7;
  margin-bottom: 24px;
  text-align: left;
  padding: 0;
}

.servizio-card {
  text-align: left;
}

.servizio-card .btn-scopri {
  align-self: flex-start;
}


/* ══════════════════════════════════════════════════
   METODO
══════════════════════════════════════════════════ */
.metodo {
  padding: 100px 20px;
  background-color: var(--bg);
  border-top: 1px solid var(--border);
}

.metodo-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 56px;
}

.metodo-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  padding: 32px 28px;
  border-radius: var(--radius);
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.metodo-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(255, 170, 83, 0.08);
  border-color: rgba(255, 170, 83, 0.4);
  border-left-color: var(--orange);
}

.metodo-step::before {
  position: absolute;
  top: -12px;
  right: 14px;
  font-size: 100px;
  font-weight: 900;
  color: var(--orange);
  opacity: 0.05;
  line-height: 1;
  font-family: 'Plus Jakarta Sans', sans-serif;
  pointer-events: none;
  user-select: none;
}
.metodo-step:nth-child(1)::before { content: '01'; }
.metodo-step:nth-child(2)::before { content: '02'; }
.metodo-step:nth-child(3)::before { content: '03'; }
.metodo-step:nth-child(4)::before { content: '04'; }

.step-num {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.step-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: block;
}

.step-title::before {
  display: none;
}

.step-body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(14px, 2vw, 15px);
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-dim);
}


/* ══════════════════════════════════════════════════
   PORTFOLIO
══════════════════════════════════════════════════ */
.portfolio {
  padding: 80px 20px;
  background-color: var(--bg);
  border-top: 1px solid var(--border);
}

/* Filtri */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

/* Griglia */
.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
  box-shadow: 0 20px 48px rgba(255, 170, 83, 0.10);
}
.portfolio-card[data-category].hidden {
  display: none;
}
.portfolio-card--soon {
  cursor: default;
  opacity: 0.7;
}
.portfolio-card--soon:hover {
  transform: none;
  border-color: inherit;
  box-shadow: none;
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.portfolio-card:hover .card-img-wrap img {
  transform: scale(1.05);
}
.card-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(11, 11, 30, 0.75);
  backdrop-filter: blur(8px);
  color: var(--orange);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 170, 83, 0.4);
}

.card-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.card-num {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.05em;
}
.card-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}
.card-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
}
.card-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  margin-top: 4px;
  transition: gap 0.3s ease;
}
.portfolio-card:hover .card-cta {
  gap: 14px;
}


/* ══════════════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════════════ */
.cta-section {
  padding: 120px 20px;
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255, 170, 83, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  max-width: 660px;
  margin-inline: auto;
  position: relative;
}

.cta-body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 400;
  color: var(--text-dim);
  line-height: 1.8;
  margin-top: 20px;
  margin-bottom: 40px;
}

.cta-note {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-mute);
  margin-top: 20px;
  letter-spacing: 0.02em;
}


/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
#footer {
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 20px 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 48px;
  text-align: center;
}

.footer-col-logo img {
  width: 140px;
  height: auto;
  display: block;
  margin-inline: auto;
}

.footer-tagline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-mute);
  margin-top: 12px;
  letter-spacing: 0.04em;
}

.footer-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 18px;
}

.footer-menu li {
  margin-bottom: 4px;
}
.footer-menu a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 5px 0;
  display: inline-block;
  transition: color var(--transition);
}
.footer-menu a:hover {
  color: var(--orange);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  justify-content: center;
}
.footer-contacts li i {
  margin-top: 3px;
  flex-shrink: 0;
  color: var(--text-mute);
}
.footer-contacts a {
  transition: color var(--transition);
}
.footer-contacts a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.copyright {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-mute);
  text-align: center;
}


/* ── BACK TO TOP ─────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 4%;
  right: 4%;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 32px;
  color: var(--orange);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  text-decoration: none;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-4px);
  color: var(--orange);
}


/* ══════════════════════════════════════════════════
   POPUP / MODAL
══════════════════════════════════════════════════ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.popup-overlay:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.popup-box {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 28px 36px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.popup-overlay:not([hidden]) .popup-box {
  transform: translateY(0);
}

/* Popup calendario più largo */
.popup-calendar {
  max-width: 820px;
  padding: 32px 24px;
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.4);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.popup-close:hover {
  color: #0B0B1E;
}

.popup-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 800;
  color:var(--bg-card);
  line-height: 1.15;
  margin-bottom: 20px;
  padding-right: 32px;
}

.popup-intro {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.75;
  margin-bottom: 32px;
}

.popup-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.popup-step h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--bg-card);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.popup-step-icon {
  color: var(--orange);
  font-size: 16px;
  flex-shrink: 0;
}

.popup-step p {
  font-family: 'Merriweather', serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.75;
}

.popup-quote {
  font-family: 'Merriweather', serif;
  font-size: 14px;
  font-weight: 300;
  font-style: italic;
  color: rgba(0, 0, 0, 0.6);
  border-left: 3px solid var(--orange);
  padding: 12px 16px;
  margin-bottom: 28px;
  background: rgba(255, 170, 83, 0.08);
  border-radius: 0 8px 8px 0;
  line-height: 1.75;
}


/* ══════════════════════════════════════════════════
   TABLET — min-width: 600px
══════════════════════════════════════════════════ */
@media (min-width: 600px) {

  .servizi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  /* 3a card a larghezza piena se necessario */
  .servizio-card:last-child {
    grid-column: auto;
    max-width: none;
    margin-inline: 0;
  }

  .portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .metodo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

}


/* ══════════════════════════════════════════════════
   DESKTOP — min-width: 1024px
══════════════════════════════════════════════════ */
@media (min-width: 1024px) {

  /* Header */
  .site-logo img {
    width: 190px;
  }

  .nav-desktop {
    display: flex;
  }

  .header-right {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  /* About */
  .about {
    flex-direction: row;
    min-height: 90vh;
  }
  .about-img-col {
    flex: 0 0 45%;
    aspect-ratio: unset;
    align-self: stretch;
  }
  .about-text-col {
    flex: 1;
    padding: 80px 72px;
  }

  /* Servizi */
  .servizi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
  }
  .servizio-card {
    width: 100%;
    max-width: none;
  }
  .servizio-card:last-child {
    grid-column: auto;
    max-width: none;
    margin-inline: 0;
  }

  .metodo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .metodo-step {
    border-left: 1px solid var(--border);
    border-top: 3px solid var(--orange);
    padding: 32px 24px;
  }

  .metodo-step:hover {
    border-left-color: rgba(255, 170, 83, 0.3);
    border-top-color: var(--orange);
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    text-align: left;
  }

  .footer-col-logo img {
    margin-inline: 0;
  }

  .footer-contacts li {
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  /* Popup service su desktop */
  .popup-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
  }

}
