/* ═══════════════════════════════════════════
   ABSTRA STUDIO — style.css
═══════════════════════════════════════════ */

/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
  --bg-body:       #141414;
  --bg-card:       #1c1c1c;
  --bg-card-hover: #242424;
  --border:        #2c2c2c;
  --border-subtle: #242424;
  --accent:        #ff204e;
  --accent-soft:   #ff204e18;
  --accent-border: #ff204e44;
  --text-h:        #f5f4f0;
  --text-card:     #cecdcd;
  --text-body:     #b3b4b3;
  --text-muted:    #6f6f6f;
  --text-struck:   #2c2c2c;
  --font-heading:  'League Spartan', sans-serif;
  --font-body:     'Open Sans', sans-serif;
  --font-scrib:    'Indie Flower', cursive;
  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     12px;
  --radius-pill:   999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-body);
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─────────────────────────────────────────
   LAYOUT
───────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition:
    background      300ms ease,
    border-color    300ms ease,
    backdrop-filter 300ms ease;
}

.site-header.scrolled {
  
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-link img {
  height: 48px;
  width: auto;
}

/* Search */
.search-wrap {
  position: relative;
  max-width: 420px;
  justify-self: center;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  background: #1a1a1acc;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 72px 10px 40px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-card);
  outline: none;
  transition: border-color 200ms;
  
}

.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--accent-border); }

.search-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 2px 6px;
  border-radius: 3px;
  pointer-events: none;
}

/* Hamburger */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: background 200ms;
  flex-shrink: 0;
}

.hamburger:hover { background: rgba(255,255,255,0.06); }

.ham-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.ham-icon span {
  display: block;
  height: 2px;
  background: var(--text-muted);
  border-radius: 1px;
  transition: background 200ms, transform 250ms, opacity 200ms;
}

.ham-icon span:nth-child(1) { width: 22px; }
.ham-icon span:nth-child(2) { width: 22px; }
.ham-icon span:nth-child(3) { width: 13px; margin-left: auto; }

.hamburger:hover .ham-icon span { background: var(--text-h); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: #0e0e0ef5;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

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

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 700;
  color: var(--text-h);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 200ms;
}

.mobile-nav a:hover { color: var(--accent); }

.mobile-nav-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 20px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: color 200ms;
}

.mobile-nav-close:hover { color: var(--text-h); }

@media (max-width: 767px) {
  .search-wrap { display: none; }
  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: calc(100svh - 68px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Hero background: dot-matrix overlay (salvato, non attivo) ── */
/*
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
  pointer-events: none;
}
*/

/* ── Hero logos slider (due righe) ── */
.hero-logos {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(28px, 4vh, 44px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  margin-top: 40px;
}

.logos-row {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image:         linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.logos-inner {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.5vw, 48px);
  width: max-content;
}

.logos-inner img {
    height: 55px;
    width: auto;
    max-width: 70px;
    object-fit: contain;
    opacity: 0.10;
    flex-shrink: 0;
    transition: opacity 200ms;
}

.logos-inner img:hover { opacity: 0.85; }

.logos-row:nth-child(1) .logos-inner { animation: logos-left  90s linear infinite; }
.logos-row:nth-child(2) .logos-inner { animation: logos-right 90s linear infinite; }

@keyframes logos-left  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes logos-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

@media (max-width: 767px) {
  .logos-inner { gap: clamp(18px, 4vw, 28px); }
  .logos-inner img { height: 45px; max-width: 48px; }
}

/* ── Hero content ── */
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  padding: clamp(32px, 6vh, 64px) clamp(20px, 4vw, 48px);
}

.hero-inner {
  max-width: 820px;
}

/* Heading */
.hero-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(55px, 8.5vw, 78px);
  line-height: 1.04;
  letter-spacing: 0.5px;
  color: var(--text-h);
  margin-bottom: clamp(28px, 4vh, 44px);
}

/* "rallenta" struck row */
.hero-struck-wrap {
  position: relative;
  display: inline-block;
  /* leave room for the handwriting above */
  padding-top: clamp(20px, 3vh, 32px);
}

.hero-scrib {
    position: absolute;
    top: 16px;
    left: 0;
    font-family: var(--font-scrib);
    font-size: clamp(19px, 2.8vw, 23px);
    color: var(--accent);
    white-space: nowrap;
    line-height: 1;
    pointer-events: none;
    letter-spacing: 1.8px;
    transform: rotate(-3deg);
    z-index: 1;
}

.hero-struck {
  color: var(--text-struck);
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
}

/* Subtitle with fire gifs */
.hero-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: clamp(19px, 4.4vw, 32px);
  font-weight: 600;
  color: var(--text-card);
  margin-bottom: 14px;
  line-height: 1.3;
}

.boost-o {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fire-bg {
  position: absolute;
  width: 1.6em;
  height: 1.6em;
  object-fit: contain;
  pointer-events: none;
  bottom: 8px;
}

.boost-letter {
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-size: clamp(15px, 1.9vw, 18px);
  color: var(--text-muted);
  letter-spacing: .03em;
}

/* ── CTA Button primario ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  min-height: 44px;
  transition: background 200ms;
}

.btn-primary:hover { background: #e01843; }

@media (max-width: 767px) {
  .btn-primary {
    font-size: 14px;
    padding: 10px 20px;
    min-height: 52px;
    width: 80%;
    max-width: 320px;
  }
}

/* Hero CTA spacing */
.hero-cta {
  margin-top: clamp(24px, 3.5vh, 40px);
}

/* Hero boost ("Boost" in accento) */
.hero-boost {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 0 8.5px;
}

/* ── Hero slider (marquee in basso) ── */
.hero-slider {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  mask-image:         linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.hero-slider-inner {
  display: flex;
  align-items: center;
  gap: clamp(42px, 4vw, 56px);
  width: max-content;
  animation: slide-left 28s linear infinite;
}

.hero-slider-inner img {
  height: 32px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  opacity: 0.6;
  flex-shrink: 0;
  transition: opacity 200ms;
}

/* ═══════════════════════════════════════════
   SERVICES — MENO CAOS
═══════════════════════════════════════════ */
.services {
  padding: clamp(80px, 12vh, 140px) 0;
}

.services-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(38px, 4vw, 56px);
  color: var(--text-h);
  letter-spacing: 0.5px;
  line-height: 1.05;
  text-align: center;
  margin-bottom: clamp(56px, 10vh, 100px);
}

.service-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(32px, 5vw, 56px);
  padding: clamp(48px, 8vh, 80px) 0;
 
  align-items: start;
}

.service-item:last-child {
  
}

.service-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 4px;
}

.service-x {
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.service-label-text {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  line-height: 1.3;
}

.service-question {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
  color: var(--text-h);
  letter-spacing: 0.3px;
  line-height: 1.2;
  margin-bottom: 22px;
}

.service-body {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.55;
}

.service-body + .service-body { margin-top: 10px; }

.service-bullet {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-card);
  line-height: 1.65;
}

.service-bullet::before {
  content: '';
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 5px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .service-item {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ═══════════════════════════════════════════
   TRAPPOLE
═══════════════════════════════════════════ */
.traps {
  padding: clamp(50px, 12vh, 80px) 0 0;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 5.5vw, 48px);
  color: var(--text-h);
  letter-spacing: 0.5px;
  line-height: 1.05;
  text-align: center;
  margin-bottom: clamp(40px, 6vh, 64px);
}

.traps-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: clamp(64px, 10vh, 96px);
}

.trap-card {
  background: var(--bg-card);
  margin:0 auto;
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 300px;
}

.trap-card-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: #f5f4f0;
  letter-spacing: 0.2px;
  line-height: 1.3;
  margin-bottom: 10px;
  margin-right: 15px;
}

.trap-card-body {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.55;
}

.trap-card-body p + p { margin-top: 10px; }

.trap-quote { color: var(--accent); }

.traps-cost {
  padding: clamp(0px, 0px, 0px) clamp(20px, 4vw, 48px) clamp(48px, 8vh, 80px);
}

.traps-cost-layout {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.traps-cost-img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.traps-cost-img {
  width: 100%;
  height: auto;
  display: block;
}

.traps-cost-inner {
  max-width: 100%;
}

.traps-cost-intro {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 24px;
}

.traps-cost-scrib {
      font-family: var(--font-scrib);
    font-size: clamp(18px, 2.5vw, 19px);
    color: var(--accent);
    margin-bottom: 21px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.cost-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.cost-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.55;
}

.cost-bullet-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

.cost-list strong {
  color: #f5f4f0;
  font-weight: 700;
}

.traps-cost-footer {
  font-size: 16px;
  font-weight: 700;
  color: #f5f4f0;
  line-height: 1.55;
}

@media (max-width: 1024px) {
  .traps-cost-layout {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
}

@media (max-width: 767px) {
  .traps-cards { grid-template-columns: 1fr; gap:40px}
  .traps-cost-layout { max-width: 367px; }
}

@media (min-width: 480px) and (max-width: 767px) {
  .traps-cards { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════
   OFFER CARDS
═══════════════════════════════════════════ */
.service-offer {
  padding: clamp(50px, 12vh, 80px) 0;
}

/* griglia colonne — ogni col ha header+card+link in colonna */
.offer-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(40px, 6vh, 64px);
}

.offer-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* header fuori dalla card — stesso layout trap-card */
.offer-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 12px;
}

.offer-badge {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4px;
}

.offer-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-h);
}

/* card = solo il box scuro */
.offer-card {
  background: var(--bg-card);

  border-radius: var(--radius-lg);
  padding: 24px 22px;
  max-width: 300px;
  flex: 1;
}

.offer-card-body {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.45;
}

.offer-card-body p + p { margin-top: 10px; }

/* link fuori dalla card — sotto */
.offer-card-link {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-h);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 200ms;
}

.offer-card-link:hover { opacity: 0.7; }

/* ── Drawer ── */
#drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

#quando-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 100vh;
  background: #111111;
  border-left: 1px solid #2a2a2a;
  z-index: 1000;
  padding: 40px 32px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

#quando-drawer.active { transform: translateX(0); }

#drawer-handle { display: none; }

#drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

#drawer-card-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

#drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

#drawer-close:hover { color: var(--text-h); }

.drawer-title {
  font-family: var(--font-body);
  font-size: clamp(18px, 2vw, 18px);
  font-weight: 700;
  color: var(--text-h);
  margin-bottom: 24px;
}

.drawer-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  color: #f5f4f0;
}

.drawer-bullets li {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #1e1e1e;
  font-size: 15px;
  color: var(--text-card);
  line-height: 1.7;
}

.drawer-bullets li.last { border-bottom: none; }

.bullet-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  #quando-drawer {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 85vh;
    border-left: none;
    border-top: 1px solid #2a2a2a;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: 28px 20px;
    transform: translateY(100%);
  }
  #quando-drawer.active { 
    transform: translateY(0); 
    max-width: 90%;
        margin: auto;
        padding: 30px;
  }

  #drawer-handle {
    display: block;
    width: 36px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin: 0 auto 20px;
  }
  #drawer-content { overflow-y: auto; }
}

@media (max-width: 1024px) {
  .offer-cards { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 767px) {
  .offer-cards { max-width: 300px; gap: 70px; }
  .offer-card  { max-width: 100%; }
}

/* ═══════════════════════════════════════════
   PER CHI — Ma non per tutti
═══════════════════════════════════════════ */
.perchi-wrap {
  margin-top: clamp(72px, 10vh, 100px);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.perchi-title {
  margin-bottom: clamp(40px, 6vh, 64px);
}


h2.section-title.perchi-title {
 font-size: clamp(23px, 5.5vw, 28px);
}

.perchi-rows {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.perchi-row {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  gap: 0;
}

/* scroll reveal */
.perchi-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease var(--perchi-delay, 0s), transform 0.5s ease var(--perchi-delay, 0s);
}
.perchi-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* card sinistra */
.perchi-no {
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  font-size: 16px;
  line-height: 1.6;
}
.perchi-no strong { font-weight: 700; color: var(--text-h); }
.perchi-no span   { color: var(--text-muted); }

/* card destra */
.perchi-yes {
  background: var(--bg-card);

  border-radius: var(--radius-md);
  padding: 28px 32px;
  font-size: 16px;
  line-height: 1.6;
}
.perchi-yes strong { font-weight: 700; color: var(--accent); }
.perchi-yes span   { color: var(--text-h); }

/* frecce centrali */
.perchi-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
}

.perchi-arrow-right,
.perchi-arrow-left { display: block; }

/* mobile */
@media (max-width: 768px) {
  .perchi-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .perchi-no,
  .perchi-yes { padding: 20px 24px; margin-top:10px }
  .perchi-arrows {
    flex-direction: row;
    justify-content: center;
  }
  .perchi-arrow-left { display: none; }
  .perchi-arrow-right { transform: rotate(90deg); }
  .perchi-rows { gap: 79px; }
  .perchi-wrap {max-width: 300px;}
}

/* ─── vecchio for-who (non usato) ─── */
/* ═══════════════════════════════════════════
   PER CHI (legacy)
═══════════════════════════════════════════ */
.for-who {
  padding: clamp(50px, 12vh, 80px) 0;
}

.for-who-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 920px;
  margin: clamp(40px, 6vh, 64px) auto 0;
}

.for-who-row {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: center;
  gap: 12px;
}

.for-no, .for-yes {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  font-size: 13px;
  line-height: 1.65;
}

.for-no {  color: var(--text-body); }
.for-no strong { color: var(--text-card); }

.for-yes { border: 0.5px solid var(--accent-border); color: var(--text-body); }
.for-yes strong { color: var(--accent); }

.for-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1;
}

@media (max-width: 767px) {
  .for-who-row { grid-template-columns: 1fr; }
  .for-arrows { display: none; }
}

/* ═══════════════════════════════════════════
   SU DI ME
═══════════════════════════════════════════ */
.about-me {
  padding: clamp(50px, 12vh, 80px) 0;
}

.about-me-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.about-me-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  color: var(--text-h);
  line-height: 1.1;
  margin-bottom: 48px;
  text-align: center;
}

/* ── Top: foto + scheda ── */
.about-top {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: clamp(36px, 8vh, 40px);
  max-width: 845px;
  margin-left: auto;
  margin-right: auto;
}

.about-photo-wrap { flex-shrink: 0; }

.about-photo {
  width: 100%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%);
  border: 3px solid var(--border);
  display: block;
}

/* scheda info */
.about-info { display: flex; flex-direction: column; gap: 16px; }

.about-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.about-label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: #f5f4f0;
  white-space: nowrap;
}

.about-value {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  color: var(--text-card);
  background: var(--bg-card);
  padding: 4px 20px;
  border-radius: var(--radius-sm);
}

.about-value--alt { background: var(--border); }

.about-info-row--full .about-value { flex: 1; }

/* toggle row */
.about-info-row--toggle { gap: 14px; flex-wrap: wrap; }

.about-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.3s;
}

.toggle-label--active {
  font-weight: 700;
  color: #f5f4f0;
}

.about-toggle {
  position: relative;
  width: 48px;
  height: 24px;
  background: var(--accent);
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s;
}

.about-toggle-circle {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.about-toggle.is-emergenza .about-toggle-circle {
  transform: translateX(-24px);
}

/* box dinamico */
.about-dynamic-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: opacity 0.3s ease;
  margin-top: 8px;
}

.about-dynamic-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 44px;
  align-items: start;
}

.about-dynamic-text {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.45;

}

.about-metrics { display: flex; flex-direction: column; gap: 10px; }

.metric-row {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.metric-label {
  font-size: 13px;
  color: var(--text-muted);
  min-width: 72px;
}

.metric-dots { display: flex; gap: 4px; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot--on  { background: var(--accent); }
.dot--off { background: var(--border); }

/* ── Bottom: testo + card ── */
.about-bottom {
  display: grid;
  grid-template-columns: 65fr 30fr;
  gap: 48px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.about-left {
  max-width: 500px;
  margin: 0 auto;
}

/* left */
.about-when-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: #f5f4f0;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-when-icon {
  color: var(--text-muted);
  font-style: normal;
}

.about-when-word { color: var(--accent); }

.about-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.45;
  margin-bottom: 24px;
}

.about-when-label {
  font-size: 16px;
  font-weight: 700;
  color: #f5f4f0;
  margin-bottom: 16px;
}

.about-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.45;
}

.about-bullet-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}

/* right */
.about-right-title {
  font-size: 18px;
  font-weight: 700;
  color: #f5f4f0;
  margin-bottom: 24px;
}

.about-cards { display: flex; flex-direction: column; gap: 16px; }

.about-exp-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.45;
}

.about-exp-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-exp-card p {
  font-size: 15px;
}

.about-ex-badge {
  
  color: var(--accent);
  font-size: 21px;
  font-weight: 700;
  padding-top: 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-scrib);
}

.about-exp-role {
  font-size: 16px;
  font-weight: 700;
  color: #f5f4f0;
}

/* dynamic fade */
.dynamic-content { transition: opacity 0.3s ease; }
.dynamic-content.fading { opacity: 0; }

/* ── Tablet ── */
@media (max-width: 1024px) {
  .about-top {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  .about-bottom {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  .about-photo-wrap { display: flex; justify-content: center; }
  .about-photo { width: 200px; height: 200px; }
  .about-left { max-width: 100%; }
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .about-top, .about-bottom { max-width: 100%; }

  .about-photo { width: 160px; height: 160px; }

  /* righe scheda: impila etichetta + valore in colonna */
  .about-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* prima riga (Nome + Ruolo): due blocchi affiancati */
  .about-info-row:first-child {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
  }

  .about-info-row--full { flex-direction: row; flex-wrap: wrap; }
  .about-info-row--full .about-value { flex: 1; min-width: 0; }

  /* toggle: etichetta sopra, poi toggle centrato */
  .about-info-row--toggle {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .about-toggle-wrap { align-self: flex-start; }

  /* box dinamico: testo sopra metriche */
  .about-dynamic-inner { grid-template-columns: 1fr; gap: 20px; }
  .about-dynamic-box { padding: 16px 18px; }

  /* bottom */
  .about-when-title { font-size: 16px; }
  .about-right-title { margin-top: 8px; }
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: clamp(28px, 5vh, 44px) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo img {
  height: 26px;
  width: auto;
  opacity: 1;
  transition: opacity 200ms;
}



.footer-copy { font-size: 11px; color: var(--text-muted); }

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 200ms;
}

.footer-links a:hover { color: var(--accent); }

@media (max-width: 480px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { order: 3; }
}

/* ═══════════════════════════════════════════
   OAO — OTTIMIZZA · AUTOMATIZZA · ORGANIZZA
═══════════════════════════════════════════ */
.oao {
  padding: clamp(55px, 6vh, 60px) 0;
}

.oao-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.oao-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(38px, 4vw, 56px);
  color: var(--text-h);
  letter-spacing: 0.5px;
  line-height: 1.12;
  text-align: center;
  margin-bottom: clamp(34px, 10vh, 40px);
}

.oao-heading-xy {
    display: block;
    
  }

@media (max-width: 767px) {
  .oao-heading-x {
    display: block;
  }
}

.oao-dot { color: var(--accent); }

/* ── Block layout ── */
.oao-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
  padding: clamp(38px, 8vh, 42px) 0;
  max-width: 900px;
  margin: 0 auto;
}

/* ── Image cross-fade ── */
.oao-img-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  max-width: 400px;
 
}

.oao-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.oao-img--active { opacity: 1; }

/* ── Block header ── */
.oao-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.oao-icon {
  flex-shrink: 0;
  height: 25px;
  width: auto;
  margin-bottom:-3px;
}

.oao-block-title {
  font-family: var(--font-body);
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 800;
  color: var(--text-h);
  letter-spacing: 0.6px;
  line-height: 1.2;
}

/* ── Inline select (dropdown nel titolo) ── */
.oao-select {
  position: relative;
  display: inline-block;
  font-size: 0.954em;
  background-color: var(--bg-card);
  padding: 5px 10px;
  border-radius: 9px;
  color: var(--text-muted);
  line-height: 1em;
}


.oao-select-btn {
  font-family: var(--font-body);
  font-size: inherit;
  font-weight: 800;
  color: var(--text-h);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  line-height: inherit;


}



.oao-select-btn svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.oao-select--open .oao-select-btn svg { transform: rotate(180deg); }

.oao-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--bg-card);
  
  border-radius: var(--radius-md);
  list-style: none;
  padding: 4px 0;
  min-width: 130px;
  display: none;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.oao-select--open .oao-select-menu { display: block; }

.oao-select-opt {
  padding: 9px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.oao-icon-bullet {
  opacity: 0.8;
  padding-left: 4px;
}

.oao-select-opt:hover           { background: var(--bg-card-hover); color: var(--text-h); }
.oao-select-opt--active         { color: var(--accent); }

/* ── Panel content + reveal animation ── */
.oao-panel { display: none; }

.oao-panel--active {
  display: block;
  animation: panel-reveal 0.5s ease forwards;
}

@keyframes panel-reveal {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to   { opacity: 1; clip-path: inset(0 0% 0 0); }
}

.oao-question {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 700;
  color: #f5f4f0;
  line-height: 1.5;
  margin-bottom: 16px;
}

.oao-body {
  font-size: clamp(16px, 1.5vw, 16px);
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 10px;
}

.oao-bullet {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: clamp(16px, 1.5vw, 16px);
  color: var(--text-h);
  line-height: 1.7;
  margin-top: 18px;
}

.oao-bullet::before {
  content: '•';
  color: var(--accent);
  font-size: 22px;
  line-height: 1.2;
  flex-shrink: 0;
}

/* ── Tablet + Mobile: colonna singola, max 500px ── */
@media (max-width: 1024px) {
  .oao-block {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .oao-block {
    max-width: 367px;
    gap: 60px;
  }
  .oao-block-header {
    justify-content: center;
  }
  .oao-text {
    max-width: 367px;
    margin: auto;
  }
  .oao-panel--active {
    padding: 10px 20px;
    text-align: center;
  }
  .oao-bullet {
    justify-content: center;
    text-align: left;
  }
  .oao-question,
  .oao-body,
  .oao-bullet { font-size: 16px; }
}
