/* ==========================================================================
   VUOTO PERFETTO - Global Stylesheet (Palette Antracite, Bianco & Azzurro)
   ========================================================================== */

:root {
  --anthracite: #18181b;         /* Grigio Antracite Scuro (Brand Primary) */
  --anthracite-hover: #27272a;   /* Antracite per stati di hover */
  --white: #ffffff;              /* Bianco Principale */
  --bg-light: #f8fafc;           /* Sfondo chiaro secondario */
  --azure: #0284c7;              /* Azzurro per titoletti, badge e accenti */
  --azure-light: #e0f2fe;        /* Azzurro chiaro per sfondi badge */
  --text-dark: #18181b;          /* Testi principali su sfondo chiaro */
  --text-muted: #52525b;         /* Testi secondari */
  --text-footer: #a1a1aa;        /* Testo chiaro per il footer antracite */
  --border: #e4e4e7;             /* Bordi puliti */
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(228, 228, 231, 0.8);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(24, 24, 27, 0.12), 0 8px 10px -6px rgba(24, 24, 27, 0.06);
  --radius-lg: 16px;
  --radius-md: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Sfondo con Pattern CSS a punti sfumati stile Editor a blocchi */
.pattern-bg {
  background-color: var(--white);
  background-image: radial-gradient(#d4d4d8 0.8px, transparent 0.8px);
  background-size: 24px 24px;
}

/* Container standard */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sub-heading / Titoletti in Azzurro */
.section-subtitle {
  color: var(--azure);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo VuotoPerfetto (Stile vettoriale doppio contorno in Antracite) */
.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-text {
  font-size: 28px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.8px var(--anthracite);
  letter-spacing: -0.5px;
  position: relative;
  font-family: Arial, Helvetica, sans-serif;
  transition: var(--transition);
}

.brand-logo:hover .logo-text {
  -webkit-text-stroke-color: var(--azure);
}

/* Menu di navigazione */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--anthracite);
  font-weight: 700;
  font-size: 15px;
  position: relative;
  padding: 6px 0;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--azure);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--azure);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Hamburger mobile */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--anthracite);
  margin: 5px 0;
  transition: var(--transition);
}

/* ==========================================================================
   HERO SLIDER (Homepage - A TUTTA LARGHEZZA)
   ========================================================================== */
.hero-slider-section {
  width: 100%;
  padding: 0;
  margin-bottom: 60px;
}

.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--anthracite);
}

.slide {
  display: none;
  position: relative;
  height: 560px;
  width: 100%;
}

.slide.active {
  display: block;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.2) 0%, rgba(24, 24, 27, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 8%;
  color: var(--white);
}

.slide-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--azure);
  color: var(--white);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  width: fit-content;
}

.slide-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  max-width: 800px;
  color: var(--white);
}

.slide-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
  margin-bottom: 28px;
}

/* Controlli Slider */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--anthracite);
  transition: var(--transition);
  z-index: 10;
}

.slider-btn:hover {
  background: var(--white);
  color: var(--azure);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 24px; }
.next-btn { right: 24px; }

.slider-dots {
  position: absolute;
  bottom: 24px;
  right: 8%;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--azure);
  width: 32px;
  border-radius: 12px;
}

/* ==========================================================================
   BLOCK EDITOR STYLES & PULSANTI
   ========================================================================== */
.block-section {
  padding: 60px 0;
}

.block-overlap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

.glass-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.overlap-left {
  margin-right: -60px;
}

.overlap-right {
  margin-left: -60px;
}

.block-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
  height: 420px;
}

.block-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PULSANTI: Sfondo Antracite, Scritta Bianca */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--anthracite);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(24, 24, 27, 0.25);
}

.btn-primary:hover {
  background: var(--anthracite-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(24, 24, 27, 0.35);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--anthracite);
  border: 2px solid var(--anthracite);
}

.btn-outline:hover {
  background: var(--anthracite);
  color: var(--white);
}

/* Feature Grid Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--azure);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--azure-light);
  color: var(--azure);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

/* ==========================================================================
   FOOTER (Sfondo Grigio Antracite Scuro)
   ========================================================================== */
.site-footer {
  background: var(--anthracite);
  color: var(--white);
  padding: 60px 0 36px 0;
  margin-top: 80px;
  border-top: 1px solid #27272a;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.footer-link {
  color: #e4e4e7;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--azure);
}

.footer-divider {
  height: 1px;
  background: #27272a;
  margin: 30px 0;
}

.footer-legal {
  text-align: center;
  font-size: 14px;
  color: var(--text-footer);
  line-height: 1.7;
}

.footer-legal strong {
  color: var(--white);
}

/* ==========================================================================
   RESPONSIVE MOBILE
   ========================================================================== */
@media (max-width: 902px) {
  .nav-menu {
    position: fixed;
    top: 73px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 30px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .slide {
    height: 440px;
  }

  .slide-title {
    font-size: 28px;
  }

  .slide-desc {
    font-size: 15px;
  }

  .slide-overlay {
    padding: 40px 20px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .prev-btn { left: 10px; }
  .next-btn { right: 10px; }

  .block-overlap-grid {
    grid-template-columns: 1fr;
  }

  .overlap-left, .overlap-right {
    margin: 0;
  }
}