/* =============================================================
   FAMA GRAPHICS — CSS Design System (Fully Fluid & Responsive)
   Palette: Nero profondo · Bianco caldo · Oro elegante
   ============================================================= */

/* ── VARIABILI ─────────────────────────────────────────────── */
/* ── VARIABILI ─────────────────────────────────────────────── */
:root {
  --bg:          #0c0c0e;
  --bg-2:        #111116;
  --bg-3:        #18181f;
  --surface:     #1e1e28;
  --border:      rgba(255,255,255,0.08);
  
  /* NUOVO ORO SPECIFICO: #A58124 */
  --accent:      #A58124; 
  --accent-glow: rgba(165, 129, 36, 0.25); /* Trasparenza esatta calcolata in RGB */
  --accent-2:    #C09A32; /* Tinta in scala leggermente più chiara per gradienti e hover */
  
  --white:       #f5f4f0;
  --muted:       #8a8a9a;
  --text:        #d8d7d3;
  --font-head:   'Bebas Neue', sans-serif;
  --font-body:   'Inter', sans-serif;
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.3s cubic-bezier(0.4,0,0.2,1);
  --shadow:      0 8px 40px rgba(0,0,0,0.5);
  --shadow-accent: 0 0 30px var(--accent-glow);
  
  /* Variabile di spaziatura fluida globale per le sezioni */
  --section-pad: clamp(4rem, 10vw, 7rem);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  /* Il cursor: none viene applicato solo se è presente un mouse (evita bug su touch) */
}
@media (hover: hover) { body { cursor: none; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
@media (hover: hover) { button, a { cursor: none; } }

input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
}

/* ── CURSORE PERSONALIZZATO (Solo per dispositivi con mouse) ── */
.cursor, .cursor-follower { display: none; }

@media (hover: hover) {
  .cursor {
    display: block;
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.3s, height 0.3s;
  }
  .cursor-follower {
    display: block;
    width: 36px; height: 36px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.3s, height 0.3s, opacity 0.3s;
    opacity: 0.6;
  }
  body:has(a:hover, button:hover, .portfolio-item:hover) .cursor {
    width: 20px; height: 20px;
  }
  body:has(a:hover, button:hover, .portfolio-item:hover) .cursor-follower {
    width: 56px; height: 56px; opacity: 0.3;
  }
}

/* ── LOADER "SQUEEGEE" ─────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.loader-inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
}
.loader-logo-wrap {
  position: relative;
  padding: 1rem 2rem;
  overflow: hidden; /* Mantiene l'animazione pulita nei bordi */
}
.loader-text {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
  display: block;
}
.loader-text-base {
  color: transparent;
  /* Effetto contorno delicato per simulare il design prima della stampa */
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1); 
}
.loader-text-fill {
  position: absolute;
  top: 1rem; left: 2rem; /* Allineato perfettamente col testo base */
  color: var(--accent);
  /* LA MAGIA: Taglia il testo dorato. All'inizio è tagliato al 100% da destra */
  clip-path: inset(0 100% 0 0);
}

/* La Spatola */
.squeegee {
  position: absolute;
  top: 0; bottom: 0;
  left: 0; /* Posizione di partenza */
  width: 8px;
  transform: translateX(-50%) rotate(7deg); /* Leggermente inclinata per sembrare vera */
  z-index: 10;
}
.squeegee-blade {
  width: 100%; 
  height: 140%; /* Più alta del testo */
  background: linear-gradient(to bottom, #2a2a35, #4a4a5a);
  /* Ombra a sinistra (vuoto), bagliore d'oro a destra (inchiostro fresco) */
  box-shadow: -8px 0 20px rgba(0,0,0,0.9), 3px 0 15px var(--accent-glow);
  border-radius: 4px;
  transform: translateY(-15%);
}

/* ── CONTAINER ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px; /* Previene l'estensione su monitor giganti */
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem); /* Padding dinamico per i bordi */
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 2px;
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  
  /* FONDAMENTALE: Taglia via tutto ciò che sta sotto al bottone */
  overflow: hidden !important; 
  transform: translateZ(0); /* Evita bug visivi su Chrome/Safari */
  
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.btn-text-base {
  position: relative;
  z-index: 1;
  display: flex; align-items: center; gap: 0.5rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-overlay {
  /* FONDAMENTALE: Forza il livello oro a staccarsi e nascondersi sotto */
  position: absolute !important; 
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  z-index: 2;
  transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .btn:hover { 
    border-color: var(--accent); 
    transform: translateY(-2px); 
    box-shadow: var(--shadow-accent); 
  }
  .btn:hover .btn-overlay { top: 0; }
  .btn:hover .btn-text-base { transform: translateY(-150%); }
}

/* ── Variante Primaria ── */
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}
.btn-primary .btn-overlay {
  background: var(--bg-2); 
}
@media (hover: hover) {
  .btn-primary:hover { 
    border-color: var(--accent); 
    /* L'ombra ora viene ereditata automaticamente dalla regola generale sopra! */
  }
}
.btn-ghost {}

/* ── Variante WhatsApp ── */
.btn-whatsapp {
  margin-top: 2rem;
  padding: 0.875rem 1.75rem;
  border-color: rgba(37, 211, 102, 0.4); 
}
.btn-whatsapp .btn-overlay { 
  background: #25d366; 
}
@media (hover: hover) {
  .btn-whatsapp:hover { 
    border-color: #25d366; 
    /* Stesso bagliore ampio degli altri bottoni, ma verde WhatsApp! */
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4); 
  }
}

/* ── TEXT UTILITIES ─────────────────────────────────────────── */
.text-accent { color: var(--accent); }
.section-eyebrow {
  font-size: clamp(0.7rem, 2vw, 0.75rem); letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent); font-weight: 600;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 3.5rem); /* Scala in modo fluido */
  color: var(--white); line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--muted); max-width: 580px; margin: 0 auto;
  font-size: clamp(0.95rem, 2vw, 1.05rem); line-height: 1.7;
}
.section-header { text-align: center; margin-bottom: clamp(2.5rem, 8vw, 4rem); }

/* ── HEADER / NAV ───────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.25rem 0; transition: var(--transition);
}
.header.scrolled {
  background: rgba(12,12,14,0.95); backdrop-filter: blur(20px);
  padding: 0.875rem 0; border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.nav-logo-img { height: clamp(40px, 5vw, 50px); width: auto; display: block; }
.footer-logo-img { height: 60px; width: auto; display: block; margin-bottom: 1rem; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  font-size: 0.85rem; font-weight: 500; color: var(--muted); letter-spacing: 0.04em;
  padding: 0.5rem 0.9rem; border-radius: var(--radius); transition: var(--transition); text-transform: uppercase;
}
.nav-link:hover { color: var(--white); }
.nav-link.nav-cta { background: var(--accent); color: #fff; margin-left: 0.5rem; border-radius: 2px; padding: 0.5rem 1.25rem; }
.nav-link.nav-cta:hover { background: var(--accent-2); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--white);
  border-radius: 2px; transition: var(--transition);
}

/* ── HERO PORTAL ZOOM ──────────────────────────────────────── */
.hero-portal-section {
  position: relative;
  min-height: min(100vh, 900px);
  height: auto;
  width: 100vw;
  background: var(--bg);
  overflow: hidden;
  perspective: 1000px; 
}

@media (max-height: 1000px) {
  .hero-portal-section {
    min-height: 1050px;
  }
}

.hero-giant-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(100vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  will-change: transform, filter, opacity;
}

.hero-main-title {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.9;
  letter-spacing: 0.05em;
  color: var(--white);
  margin: 0;
  text-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.hero-reveal-mask {
  position: absolute;
  inset: 0;
  padding-top: 100px;          /* ← AGGIUNTO */
  background: radial-gradient(circle at center, rgba(165,129,36,0.08) 0%, var(--bg-2) 70%);
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  clip-path: circle(0% at 50% 50%);
  will-change: clip-path;
}

.hero-inner {
  text-align: center;
  padding: 2rem;
  transform: translateY(50px);
  opacity: 0;
}

.hero-reveal-logo {
  height: 80px; /* Adattato per la tua immagine logo */
  margin-bottom: 1.5rem;
}

.hero-reveal-text {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* IL CONTENUTO SVELATO (Interno) */
.reveal-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  background: radial-gradient(circle at center, rgba(165,129,36,0.05) 0%, transparent 60%);
}

.hero-inner {
  text-align: center;
  padding: 2rem;
  will-change: transform, opacity, filter;
}

.hero-reveal-logo {
  height: 80px; /* Regola questa altezza in base al tuo logo */
  margin-bottom: 1.5rem;
}

.hero-reveal-text {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* LA LINEA DI LUCE (Il taglio fluido) */
.golden-cut {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0%; /* Inizia invisibile */
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent);
  z-index: 15;
}

/* LE PORTE SCORREVOLI */
.split-door {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50vh;
  background: var(--bg);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  will-change: transform;
}

.door-top { top: 0; }
.door-bottom { bottom: 0; }

/* Allineamento del testo tagliato */
.door-text-wrapper {
  position: absolute;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.door-top .door-text-wrapper { top: 0; }
.door-bottom .door-text-wrapper { bottom: 0; }

.hero-main-title {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.9;
  letter-spacing: 0.05em;
  color: var(--white);
  margin: 0;
}

/* ── STATS ──────────────────────────────────────────────────── */
.stats {
  padding: clamp(3rem, 6vw, 5rem) 0;
  margin-top: 3rem;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; text-align: center;
}
.stat-item { padding: 1rem; opacity: 1; }
.stat-number { font-family: var(--font-head); font-size: clamp(3rem, 6vw, 4.5rem); color: var(--white); line-height: 1; font-weight: 700; }
.stat-plus { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); color: var(--accent); vertical-align: super; font-weight: 700; }
.stat-label { font-size: 0.9rem; color: var(--white); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.5rem; opacity: 0.8; }

/* ══════════════════════════════════════════════════════════════
   SEZIONE SERVIZI — Griglia & Onde di Luce
═══════════════════════════════════════════════════════════════ */
.services-section {
  padding: 8rem 2vw;
  background: var(--bg);
  position: relative;
}

.services-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.services-header {
  text-align: center;
  margin-bottom: 5rem;
}

.highlight-gold {
  color: var(--accent);
}

.services-intro {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 600px;
  margin: 1.5rem auto 0;
  line-height: 1.6;
}

/* ── LA GRIGLIA ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* ── LE CARD ── */
.service-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  /* Lieve trasparenza iniziale per l'animazione di entrata */
  opacity: 0.8; 
  transform: translateY(20px);
}

/* La luce interna dorata (invisibile di default) */
.card-glow {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(165,129,36,0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.card-content {
  position: relative;
  z-index: 1;
}

.card-title {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--white);
  margin: 0 0 1rem 0;
  letter-spacing: 0.03em;
  transition: color 0.4s;
}

.card-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

/* Tags (Pillole) */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  transition: all 0.4s;
}

/* ── EFFETTO ILLUMINAZIONE (Hover Manuale & Auto-Glow via JS) ── */
.service-card:hover, 
.service-card.is-glowing {
  transform: translateY(0);
  opacity: 1;
  border-color: rgba(165, 129, 36, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(165, 129, 36, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.service-card:hover .card-glow,
.service-card.is-glowing .card-glow {
  opacity: 1;
}

.service-card:hover .card-title,
.service-card.is-glowing .card-title {
  color: var(--accent);
}

.service-card:hover .tag,
.service-card.is-glowing .tag {
  background: rgba(165, 129, 36, 0.1);
  border-color: rgba(165, 129, 36, 0.3);
  color: var(--accent);
}
/* ── PORTFOLIO (Horizontal Scroll) ──────────────────────────── */
.portfolio-section {
  position: relative;
  background: var(--bg-2);
  height: 100vh; 
  height: 100dvh; /* Aggiungi questo! Si adatta in modo dinamico alla barra del browser mobile */
  display: flex;
  flex-direction: column;
  overflow: hidden; 
}
/* BLOCCO TOP (Testi) */
.portfolio-intro {
  flex: 0 0 auto; /* Non si espande, prende solo il suo spazio */
  padding: clamp(4rem, 8vh, 6rem) 2rem 1rem 2rem;
  text-align: center;
  z-index: 10;
}
.portfolio-intro .section-subtitle { margin: 0 auto; }

/* BLOCCO BOTTOM (La pista per le card) */
.horizontal-track-wrap {
  flex: 1 1 auto; /* Prende tutto lo spazio rimanente in basso */
  display: flex;
  align-items: center; /* Centra le card verticalmente in questo spazio */
  width: 100%;
}

.horizontal-track {
  display: flex;
  gap: 3rem;
  padding: 0 10vw; /* Spazio a sinistra all'inizio */
  width: max-content;
  will-change: transform;
}

/* SINGOLA CARD */
.port-card {
  position: relative;
  /* IL SEGRETO: L'altezza è calcolata in base allo schermo, impossibile che tocchi il testo! */
  height: clamp(300px, 55vh, 600px); 
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  cursor: none; /* Lascia che si veda il tuo cursore dorato personalizzato! */
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.port-spacer { width: 10vw; height: 10px; } /* Lo spazio extra alla fine */

.port-img-wrap { width: 100%; height: 100%; overflow: hidden; position: relative; }
.port-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.port-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,12,14,0.95) 0%, transparent 60%);
  opacity: 0.8; transition: opacity 0.4s;
}


.port-number { font-family: var(--font-head); font-size: 3rem; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; }
.port-title { font-family: var(--font-head); font-size: 1.8rem; color: var(--white); margin: 0 0 0.2rem 0; letter-spacing: 0.02em; }
.port-category { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase; }

/* EFFETTI HOVER */
@media (hover: hover) {
  .port-card:hover .port-img { transform: scale(1.08); }
  .port-card:hover .port-overlay { opacity: 1; }
  .port-card:hover .port-info { transform: translateY(-10px); }
}

/* Responsive Tablet/Mobile */
@media (max-width: 768px) {
  .portfolio-intro { padding: 3rem 1rem 1rem 1rem; }
  .horizontal-track { gap: 1.5rem; padding: 0 5vw; }
  .port-card { 
    height: 50vh; /* Più corte su mobile per sicurezza */
    aspect-ratio: 3 / 4; 
  }
  .port-info { padding: 1.5rem; }
  .port-title { font-size: 1.5rem; }
}
/* ══════════════════════════════════════════════════════════════
   SITI WEB — Fisarmonica "Editorial Edge" (Nessun Riquadro)
═══════════════════════════════════════════════════════════════ */
.websites-accordion-section {
  padding: 10vh 0 15vh;
  background: transparent;
  width: 100%;
}

.accordion-container {
  display: flex;
  gap: 1.5rem;
  height: 70vh; 
  width: 100%;
}

.web-panel {
  position: relative;
  flex: 1; 
  border-radius: 20px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255,255,255,0.05);
  transition: flex 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.web-panel:hover {
  flex: 4;
}

.panel-img-wrap {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  overflow: hidden;
}

.website-image {
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 6s linear; 
  will-change: transform;
}

.web-panel:hover .website-image {
  transform: translateY(calc(-100% + 70vh)); 
}

/* L'OSCURAMENTO INVISIBILE (Si fonde col nero del sito) */
.panel-gradient-edge {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(8,8,10,0.8) 25%, transparent 65%);
  opacity: 0.8;
  transition: opacity 0.4s ease;
  pointer-events: none; /* Lascia passare i click al bottone */
}

.web-panel:hover .panel-gradient-edge {
  opacity: 1; /* Si scurisce un filo per far brillare il titolo oro */
}

/* IL TESTO FLUTTUANTE PURO (Allineamento e scaling corretto) */
.panel-content-editorial {
  position: absolute;
  bottom: 0; left: 0; 
  width: 100%;
  padding: 2rem 1rem; /* Ridotto il padding laterale per dare più spazio al testo */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center; /* Centra orizzontalmente il contenuto */
  text-align: center; /* Centra il testo */
  box-sizing: border-box;
}

.panel-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3vw, 3.5rem); /* Dimensione di base più contenuta */
  margin: 0;
  line-height: 1.1;
  color: var(--white);
  /* FONDAMENTALE: Permette al testo di andare a capo elegantemente se il pannello è stretto */
  white-space: normal; 
  transition: color 0.4s ease, transform 0.4s ease, font-size 0.4s ease;
  transform-origin: center bottom; /* Centro perfetto per l'animazione */
}

.panel-action {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.5s ease;
  display: flex;
  justify-content: center; /* Centra il bottone */
  width: 100%;
}

/* Bottone Moderno Minimal con Freccia */
.btn-minimal {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--white);
  color: var(--bg); 
  width: max-content;
  transition: transform 0.3s, background 0.3s, color 0.3s;
}

.btn-minimal:hover { 
  transform: translateY(-3px); 
  background: var(--accent); 
  color: var(--white);
}

/* HOVER: Il pannello prende vita e il testo si ingrandisce */
.web-panel:hover .panel-action {
  max-height: 60px;
  opacity: 1;
  margin-top: 1.5rem;
}

.web-panel:hover .panel-title {
  color: var(--accent);
  transform: translateY(-5px);
  font-size: clamp(2.5rem, 4vw, 4.5rem); /* Il testo si ingrandisce fluidamente all'hover */
}

/* RESPONSIVE MOBILE */
@media (max-width: 900px) {
  .accordion-container {
    flex-direction: column;
    height: auto;
  }
  .web-panel {
    height: 300px;
    flex: none;
  }
  .web-panel:hover { flex: none; }
  .web-panel:hover .website-image { transform: none; }
  .panel-content-editorial { padding: 1.5rem; }
  .panel-title { font-size: 2.5rem; }
  .panel-action {
    max-height: 60px;
    opacity: 1;
    margin-top: 1rem;
  }
}

/* RESPONSIVE MOBILE */
@media (max-width: 900px) {
  .accordion-container {
    flex-direction: column;
    height: auto;
  }
  .web-panel {
    height: 300px;
    flex: none;
  }
  .web-panel:hover { flex: none; }
  .web-panel:hover .website-image { transform: none; }
  .panel-content-editorial { padding: 1.5rem; }
  .panel-title { font-size: 2.5rem; white-space: normal; }
  .panel-action {
    max-height: 60px;
    opacity: 1;
    margin-top: 1rem;
  }
}

/* ── CHI SIAMO (Layout Invertito Minimal) ───────────────────────────── */
.chi-siamo-premium { padding: var(--section-pad) 0; background: var(--bg); }

/* Header Centrale */
.chi-siamo-premium .section-header { margin-bottom: clamp(3rem, 10vh, 5rem); }

.chi-grid-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr; /* Leggermente più spazio al testo */
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center; /* Centra verticalmente il testo rispetto alla foto */
}

/* Colonna Testo (Sinistra) */
.chi-text-col { display: flex; flex-direction: column; }

/* ── CHI SIAMO (Fluid Word Reveal) ───────────────────────────── */
.chi-text-fluid {
  font-family: var(--font-body); /* Stesso font del sito (Inter) */
  font-size: clamp(1.4rem, 3vw, 2.2rem); 
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
  /* Il colore di base non ci serve qui, lo gestiscono le singole parole */
}

/* Questa classe verrà creata dal JavaScript per ogni parola */
.fluid-word {
  display: inline-block;
  color: var(--white); /* Il colore che prenderà la parola illuminata */
  opacity: 0.15; /* Parte quasi spenta */
  will-change: opacity;
}

/* Colonna Immagine (Destra) */
.chi-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden; /* Taglia l'immagine che esce per l'effetto parallasse */
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.chi-img {
  width: 100%; 
  height: 120%; /* Più alta del contenitore per permettere lo scorrimento interno */
  object-fit: cover;
  will-change: transform;
}

/* Responsive */
@media (max-width: 1024px) {
  .chi-grid-layout { grid-template-columns: 1fr; gap: 4rem; }
  .chi-img-wrapper { aspect-ratio: 16/10; order: -1; } /* Su mobile la foto passa sopra al testo */
}
/* ── PROCESSO ───────────────────────────────────────────────── */
.processo { padding: var(--section-pad) 0; background: var(--bg-2); }
.processo-steps { display: flex; align-items: flex-start; margin-top: 1rem; }
.step { flex: 1; text-align: center; padding: 0 clamp(0.5rem, 2vw, 1.5rem); }
.step-number { font-family: var(--font-head); font-size: clamp(2.5rem, 5vw, 3.5rem); color: var(--accent); opacity: 0.3; line-height: 1; margin-bottom: 1rem; transition: var(--transition); }
@media (hover: hover) { .step:hover .step-number { opacity: 1; } }
.step-content h4 { font-family: var(--font-head); font-size: 1.3rem; color: var(--white); letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.step-content p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.step-connector { width: clamp(30px, 5vw, 60px); height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); margin-top: 1.75rem; flex-shrink: 0; }

/* ── TESTIMONIANZE (Infinite Marquee) ───────────────────────── */
.testimonianze { padding: var(--section-pad) 0; background: var(--bg); overflow: hidden; }

.reviews-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
}

/* MASCHERE SFUMATE AI LATI (Effetto Fade) */
.reviews-container::before,
.reviews-container::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 15%;
  z-index: 10;
  pointer-events: none;
}
.reviews-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}
.reviews-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

/* ── TRACK DELLE RECENSIONI ── */
.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  /* Animazione lineare infinita (60s perché abbiamo tante card) */
  animation: scroll 60s linear infinite;
}

/* Ferma il nastro quando ci passi sopra col mouse */
@media (hover: hover) {
  .marquee-track:hover {
    animation-play-state: paused;
  }
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SINGOLA RECENSIONE ── */
.review-card {
  width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.3s, transform 0.3s;
  cursor: default;
}

@media (hover: hover) {
  .review-card:hover {
    border-color: var(--accent);
    background: #15151c;
    transform: translateY(-5px);
  }
}

.review-stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 1rem; letter-spacing: 0.1em; }
.review-text { font-size: 0.95rem; color: var(--white); line-height: 1.6; margin-bottom: 1.5rem; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 1rem; border-top: 1px solid var(--border); padding-top: 1.2rem; }

.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.8rem; color: var(--accent);
}

.author-info strong { display: block; font-size: 0.95rem; color: var(--white); }
.author-info span { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }
.google-icon { width: 14px; height: 14px; background: white; border-radius: 50%; padding: 2px; }

/* Responsive per telefoni */
@media (max-width: 768px) {
  .review-card { width: 300px; padding: 1.5rem; }
  .reviews-container::before, .reviews-container::after { width: 5%; }
}
/* ── CONTATTI ───────────────────────────────────────────────── */
/* ── CONTATTI ───────────────────────────────────────────────── */
.contatti { padding: var(--section-pad) 0; background: var(--bg-2); }
.contatti-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; /* Due colonne su PC */
  gap: clamp(3rem, 6vw, 5rem); 
  align-items: center; 
}
.contatti-info { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.contatti-info .section-title { margin-bottom: 1.5rem; }
.contatti-desc { color: var(--muted); font-size: 1rem; line-height: 1.7; margin-bottom: 2rem; max-width: 450px; }
.contatti-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; align-items: flex-start; }
.contatti-list li { display: flex; align-items: center; justify-content: flex-start; gap: 0.75rem; font-size: clamp(0.85rem, 2vw, 0.95rem); }
.contatti-icon { color: var(--accent); font-size: 1.1rem; width: 22px; text-align: center; }
.contatti-list a { color: var(--text); transition: var(--transition); }
@media (hover: hover) { .contatti-list a:hover { color: var(--accent); } }

/* La Mappa "Figa" */
.contatti-map-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* Quadrata su PC */
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateZ(0); /* Ottimizzazione rendering per evitare scatti */
}

/* ATTENZIONE: .map-frame ora è un tag <a> nell'HTML */
.map-frame { 
  display: block; /* Essendo un link, forziamolo a comportarsi come un blocco intero */
  width: 100%; 
  height: 100%; 
  position: relative; 
  background: var(--bg); 
  cursor: none !important; /* Nasconde la "manina" standard di Google Chrome/Safari */
}

.map-frame iframe {
  width: 100%; 
  height: 100%; 
  border: none;
  /* MAGIA VISIVA: Grayscale totale, inversione scura, aumento contrasto */
  filter: grayscale(100%) invert(92%) contrast(1.15);
  opacity: 0.5; /* Più trasparente per fondersi col buio */
  transition: opacity 0.5s ease, filter 0.5s ease;
  
  /* MAGIA TECNICA: Rende la mappa ignorabile dal mouse. 
     Il tuo cursore d'oro personalizzato non verrà mai interrotto! */
  pointer-events: none; 
}

.map-overlay-glow {
  position: absolute; 
  inset: 0; 
  pointer-events: none; /* Lascia passare i click al tag <a> sottostante */
  background: radial-gradient(circle at center, transparent 30%, rgba(12,12,14,0.6) 100%);
  z-index: 1;
}

@media (hover: hover) {
  /* Al passaggio del mouse la mappa si "sveglia", si schiarisce e riprende un filo di contrasto */
  .contatti-map-wrapper:hover iframe {
    opacity: 0.85;
    filter: grayscale(70%) invert(92%) contrast(1.15);
  }
}

/* Modifiche per Mobile & Tablet */
@media (max-width: 900px) {
  .contatti-map-wrapper { 
    aspect-ratio: 16 / 9; /* Su telefono diventa un rettangolo orizzontale perfetto */ 
  }
}

/* Modifiche per Mobile & Tablet */
@media (max-width: 900px) {
  .contatti-map-wrapper { 
    aspect-ratio: 16 / 9; /* Diventa rettangolare su telefono per non rubare troppo schermo in altezza */ 
  }
}

/* Modifiche per Mobile & Tablet (DA INCOLLARE QUI, non serve spostarle in basso) */
@media (max-width: 900px) {
  .contatti-grid { grid-template-columns: 1fr; }
  .contatti-info { align-items: center; text-align: center; }
  .contatti-info .section-title { text-align: center; }
  .contatti-desc { max-width: 100%; }
  .contatti-list { align-items: center; }
  .contatti-list li { justify-content: center; }
  .contatti-map-wrapper { aspect-ratio: 16 / 9; /* Diventa rettangolare su telefono per non rubare troppo schermo */ }
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding-top: 5rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 4rem; }
.footer-brand p { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; line-height: 1.7; max-width: 280px; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: var(--transition); }
@media (hover: hover) { .footer-social a:hover { border-color: var(--accent); color: var(--accent); } }
.footer-links h5 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--white); margin-bottom: 1.25rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.88rem; color: var(--muted); transition: var(--transition); }
@media (hover: hover) { .footer-links a:hover { color: var(--accent); } }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.5rem 0; }
.footer-bottom p { font-size: 0.78rem; color: var(--muted); text-align: center; }

/* ── WHATSAPP FLOAT ─────────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 2rem; right: clamp(1rem, 3vw, 2rem);
  width: clamp(50px, 12vw, 58px); height: clamp(50px, 12vw, 58px);
  background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; z-index: 999; box-shadow: 0 4px 20px rgba(37,211,102,0.35); transition: var(--transition);
  animation: waBounce 3s ease-in-out infinite;
}
@media (hover: hover) { .wa-float:hover { transform: scale(1.1); background: #1ebe5a; } }
@keyframes waBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ══════════════════════════════════════════════════════════════
   MOBILE & TABLET BREAKPOINTS (RESPONSIVE MASTER)
   ══════════════════════════════════════════════════════════════ */

/* NAV MENU MOBILE */
@media (max-width: 900px) {
  .nav-links {
    position: fixed; 
    top: 0; 
    left: 0;
    /* Rompiamo la "gabbia" dell'header forzando le dimensioni assolute */
    width: 100vw; 
    height: 100vh; /* Fallback per browser vecchi */
    height: 100dvh; /* Altezza dinamica perfetta per mobile moderno (es. Safari iOS) */
    background: var(--bg); /* Sfondo pieno */
    flex-direction: column; 
    justify-content: center; 
    align-items: center; /* Centra perfettamente i testi */
    gap: 2.5rem; /* Più respiro tra i link */
    z-index: 999; /* Sta sotto all'hamburger (X) */
    opacity: 0; 
    pointer-events: none; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-20px); /* Effetto scivolamento verso il basso */
  }
  
  .nav-links.open { 
    opacity: 1; 
    pointer-events: all; 
    transform: translateY(0);
  }
  
  .nav-link { 
    font-size: 1.5rem; /* Più grande e leggibile da telefono */
    font-weight: 600;
    letter-spacing: 0.05em;
  }
  
  .nav-link.nav-cta {
    margin-left: 0; /* Rimuove il margine del PC */
    margin-top: 1rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
  }
  
  .hamburger { 
    display: flex; 
    z-index: 1000; 
    position: relative; 
  }
  
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* TABLET (fino a 1024px) */
@media (max-width: 1024px) {
  .servizi-grid { grid-template-columns: repeat(2, 1fr); }
  .servizio-card:nth-child(3n) { border-right: 1.5px solid var(--border); }
  .servizio-card:nth-child(2n) { border-right: none; }
  
  /* Portfolio Grid Logica Span: per non rompere il grid a 3 colonne */
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .portfolio-item--wide { grid-column: span 2; } /* Adattamento da 3 a 2 per bilanciare */
}

/* TABLET PICCOLI / ORIZZONTALI (fino a 768px) */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .servizi-grid { grid-template-columns: 1fr; }
  .servizio-card { border-right: none; }
  .chi-siamo-grid { grid-template-columns: 1fr; }
  .chi-badge { right: 1rem; }
  
  /* Portfolio passa a 2 Colonne */
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item--wide { grid-column: span 2; } /* Ora occupa tutta la larghezza */
  
  /* Processo in verticale */
  .processo-steps { flex-direction: column; align-items: center; gap: 2rem; }
  .step-connector { width: 1px; height: 40px; background: linear-gradient(to bottom, transparent, var(--accent), transparent); margin-top: 0; }
  
  .contatti-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: span 2; }

  /* Testimonianze (Floating App Cards per mobile/tablet) */
  .testimonials-track { align-items: center; gap: 1.5rem; }
  .testimonials-controls { display: none; } /* Nasconde frecce in favore dello swipe */
}

/* SMARTPHONE (fino a 480px) */
@media (max-width: 480px) {
  /* Bottoni full width su schermi piccoli */
  .hero-actions .btn { width: 100%; }
  
  /* Portfolio a 1 singola colonna per massimizzare la foto */
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item--big, .portfolio-item--tall, .portfolio-item--wide { 
    grid-column: span 1 !important; 
    grid-row: span 1 !important; 
  }
  
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  
  /* Testimonianze Floating App Card */
  .testimonials-track-wrapper {
    max-width: 100vw; margin-left: -1.25rem; margin-right: -1.25rem; padding-left: 1.25rem;
  }
  .testimonial-card {
    flex: 0 0 82vw; height: max-content; padding: 1.5rem; border-radius: 20px;
    background: linear-gradient(145deg, var(--surface) 0%, rgba(30, 30, 40, 0.4) 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }
  .testimonial-text { font-size: 0.88rem; margin-bottom: 1.25rem; }
}

/* ── ANIMAZIONI SCROLL (stato iniziale) ─────────────────────── */
.fade-up { opacity: 0; transform: translateY(40px); }
.fade-left { opacity: 0; transform: translateX(-40px); }
.fade-right { opacity: 0; transform: translateX(40px); }


/* ══════════════════════════════════════════════════════════════
   SEZIONE FORM — Immersive Brutalism (Sotto la Mappa)
═══════════════════════════════════════════════════════════════ */
.form-awwwards-section {
  padding: 6rem 0 10rem 0; /* Spazio per separarlo dalla mappa sopra */
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.05); /* Sottile linea di divisione */
}

.form-awwwards-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: flex-start;
}

/* ── COLONNA SINISTRA (Intro e Titoli) ── */
.form-left {
  position: sticky;
  top: 8rem;
}

.mega-title {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 6vw, 6rem);
  line-height: 0.85;
  margin: 0 0 2rem 0;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.mega-title span {
  display: block;
  color: var(--muted);
}

.mega-title span.highlight {
  color: var(--white);
}

.form-intro {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 450px;
}

/* ── COLONNA DESTRA (Il Form Immersivo) ── */
.contact-form-awwwards {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  transition: opacity 0.4s ease;
}

/* Magia del focus */
.contact-form-awwwards:focus-within .input-wrapper:not(:focus-within) {
  opacity: 0.25;
  transform: scale(0.98);
}

.input-wrapper {
  position: relative;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform-origin: left center;
}

.input-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.input-number {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}

.input-label {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.awwwards-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 1.5vw, 2rem);
  padding: 0 0 1rem 0;
  outline: none;
  border-radius: 0;
  transition: border-color 0.4s;
  color-scheme: dark;
}

.awwwards-input::placeholder {
  color: rgba(255, 255, 255, 0.15);
  font-weight: 300;
}

textarea.awwwards-input {
  resize: vertical;
  min-height: 80px;
}

.input-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.awwwards-input:focus ~ .input-line {
  transform: scaleX(1);
}

/* ── BOTTONE INVIO (Stile allineato al resto del sito) ── */
.btn-submit-awwwards {
  margin-top: 1rem;
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--accent); /* Bordo dorato */
  padding: 1rem 2.5rem;
  border-radius: 35px; /* Stessa stondatura degli altri bottoni */
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: all 0.3s ease;
  align-self: flex-start;
}

/* Al passaggio del mouse si riempie d'oro e il testo diventa scuro */
.btn-submit-awwwards:hover {
  background-color: var(--accent);
  color: var(--bg);
}

/* Rimuoviamo il vecchio ::before che causava il bug */
.btn-submit-awwwards::before {
  display: none; 
}

/* Animazione della freccina */
.btn-submit-awwwards .btn-icon {
  width: 20px; 
  height: 20px;
  transition: transform 0.3s ease;
}

.btn-submit-awwwards:hover .btn-icon {
  transform: translateX(6px); /* La freccia scatta in avanti */
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .form-awwwards-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .form-left { position: relative; top: 0; }
  .btn-submit-awwwards { align-self: stretch; }
}


/* ══════════════════════════════════════════════════════════════
   LOGO TESTUALE HERO (Effetto Oro Premium)
═══════════════════════════════════════════════════════════════ */
.hero-text-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  user-select: none; /* Impedisce di selezionarlo come testo normale, agisce come un'immagine */
}

.hero-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  gap: 0.6rem;
}

.hero-qrcode-img {
  width: clamp(120px, 20vw, 180px);
  height: auto;
  border-radius: 12px;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-qrcode-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.hero-qrcode-link:hover {
  opacity: 0.75;
}

.brand-fama {
  font-family: var(--font-head);
  font-size: clamp(5rem, 15vw, 10rem); /* Diventa gigante su PC e si adatta su mobile */
  line-height: 0.8;
  letter-spacing: 0.02em;
  margin: 0;
  
  /* Effetto riflesso oro metallico */
  background: linear-gradient(135deg, #e8c871 0%, #A58124 50%, #7a5e17 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent); /* Fallback per browser vecchi */
  
  /* Leggera ombra per staccarlo dallo sfondo scuro */
  filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.5));
}

.brand-graphics {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.6em; /* Lettere molto spaziate per dare aria ed eleganza */
  color: var(--accent);
  margin-top: 0.5rem;
  text-transform: uppercase;
  /* Compensa lo spazio finale del letter-spacing per un centro perfetto */
  padding-left: 0.6em; 
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
}

/* Su mobile impiliamo tutto al centro */
@media (max-width: 768px) {
  .footer-bottom-flex {
    flex-direction: column-reverse;
    justify-content: center;
    text-align: center;
  }
}