/* ===== Variabili ===== */
:root {
  --blue: #0866FF;
  --blue-dark: #0349C4;
  --blue-light: #EAF1FF;
  --ink: #0A0F1E;
  --muted: #5B6472;
  --white: #FFFFFF;
  --border: #E4E9F2;
  --wa-green: #0C7C3D;
  --wa-green-dark: #095E2E;
  --radius: 18px;
  --shadow: 0 10px 34px rgba(8, 102, 255, 0.14);
  --font-head: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

a, button { outline: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.02em; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ===== Immagini vere (hero, chi siamo) ===== */
.image-wrap {
  position: relative;
  isolation: isolate;
}

.image-wrap::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: radial-gradient(60% 60% at 30% 25%, rgba(8, 102, 255, 0.28), rgba(8, 102, 255, 0) 72%);
  filter: blur(32px);
  z-index: -1;
  pointer-events: none;
}

.media-frame {
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(8, 102, 255, 0.22), 0 2px 8px rgba(10, 15, 30, 0.05);
}

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

.proof-frame {
  border-radius: var(--radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  padding: 10px;
  box-shadow: 0 24px 48px -12px rgba(8, 102, 255, 0.22), 0 2px 8px rgba(10, 15, 30, 0.05);
}

.proof-frame img {
  display: block;
  width: 640px;
  max-width: none;
  height: auto;
  border-radius: calc(var(--radius) - 6px);
}

.proof-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  margin: 14px auto 0;
  padding: 6px 14px;
  background: var(--blue-light);
  color: var(--blue-dark);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.proof-hint-icon { flex-shrink: 0; }

@media (min-width: 900px) {
  .proof-frame img { width: auto; max-width: 100%; }
  .proof-hint { display: none; }
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.75rem;
}

.logo-evo { color: var(--ink); }
.logo-shop { color: var(--blue); }

.logo-tagline {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

/* ===== Bottoni ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.9rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: none;
  cursor: pointer;
}

.btn:active { transform: scale(0.96); }

.btn-whatsapp {
  background: var(--wa-green);
  color: var(--white);
  box-shadow: 0 10px 34px rgba(12, 124, 61, 0.3);
}
.btn-whatsapp:hover { background: var(--wa-green-dark); box-shadow: 0 14px 30px rgba(12, 124, 61, 0.38); }

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--blue); background: var(--blue-light); }

.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* ===== Hero ===== */
.hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(600px 300px at 50% -10%, var(--blue-light), transparent);
}

.hero-inner { text-align: center; }

.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-dark);
  background: var(--blue-light);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 7vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

.highlight { color: var(--blue); }

.hero-sub {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 480px;
  margin: 0 auto 28px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 40px;
}

.hero-image { margin-top: 8px; }

/* ===== Sezioni generiche ===== */
section { padding: 56px 0; }

section h2 {
  font-size: clamp(1.5rem, 5vw, 1.9rem);
  margin-bottom: 16px;
}

.about .container,
.services .container > h2,
.services .container > .section-sub,
.process .container > h2,
.process .container > .section-sub,
.proof .container > h2,
.proof .container > .section-sub {
  text-align: center;
}

.about p {
  color: var(--muted);
  margin: 0 auto 24px;
  max-width: 640px;
}

/* ===== Come lavoriamo ===== */
.process-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 12px;
}

.process-step {
  position: relative;
  isolation: isolate;
  padding: 4px;
}

.process-step::before {
  content: "";
  position: absolute;
  inset: 6px -8%;
  background: linear-gradient(90deg, rgba(8, 102, 255, 0.1) 0%, rgba(8, 102, 255, 0.01) 100%);
  filter: blur(22px);
  z-index: -1;
  pointer-events: none;
}

.process-number {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 8px;
}

.process-step h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--muted);
  font-size: 0.95rem;
}

.process-cta {
  text-align: center;
  margin-top: 40px;
}

.section-sub { color: var(--muted); margin-bottom: 28px; margin-top: -8px; }

.proof .section-sub { max-width: 520px; margin-left: auto; margin-right: auto; }

/* ===== Servizi / accordion ===== */
.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.service-card {
  border: 1px solid transparent;
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(10, 15, 30, 0.04), 0 8px 24px rgba(10, 15, 30, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  border-color: var(--blue-light);
  box-shadow: 0 4px 10px rgba(8, 102, 255, 0.08), 0 16px 32px rgba(8, 102, 255, 0.1);
  transform: translateY(-2px);
}

.service-card.open {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-toggle {
  position: relative;
  width: 100%;
  min-height: 108px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  padding: 20px 20px 20px 24px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  overflow: hidden;
}

.service-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.service-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6, 10, 20, 0.46) 0%, rgba(6, 10, 20, 0.44) 45%, rgba(6, 10, 20, 0.42) 100%);
}

.service-title {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
}

.service-title-chip {
  display: inline-block;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.service-chevron {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(6, 10, 20, 0.75);
  color: var(--white);
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.service-card.open .service-chevron {
  transform: rotate(90deg);
}

.service-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.service-card.open .service-panel {
  grid-template-rows: 1fr;
}

.service-panel-inner {
  overflow: hidden;
}

.service-panel-inner p {
  padding: 18px 24px 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ===== Contatti ===== */
.contact { background: var(--blue-light); border-radius: 28px; margin: 0 16px; }
.contact .container { text-align: center; padding-top: 8px; padding-bottom: 8px; }
.contact p { color: var(--muted); margin-bottom: 28px; }

.contact-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.contact-or {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ===== Footer ===== */
.site-footer {
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.85rem;
}

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

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-piva {
  font-size: 0.78rem;
  opacity: 0.8;
}

.footer-piva a {
  color: inherit;
  text-decoration: underline;
}

.footer-piva a:hover { color: var(--blue); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.social-link:hover { color: var(--blue); }

.social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ===== Animazioni scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Tablet / desktop ===== */
@media (min-width: 640px) {
  .hero-cta, .contact-cta { flex-direction: row; justify-content: center; }
  .header-inner { padding-top: 18px; padding-bottom: 18px; }
}

@media (min-width: 900px) {
  :root { --max: 860px; }
  .hero { padding: 96px 0 80px; }
  section { padding: 80px 0; }
  .service-list { grid-template-columns: 1fr 1fr; gap: 18px; }
  .process-list { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
}
