/*
Theme Name: Adriano Colonna - Tutor DSA
Theme URI: https://adrianotutordsa.example
Author: Adriano Colonna
Description: Tema WordPress su misura per il sito vetrina di Adriano Colonna, Tutor DSA a Roma e online. Convertito da un progetto Lovable (React) a tema WordPress statico, nessuna build richiesta.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: adriano-tutor-dsa
*/

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
:root {
  --radius: 1rem;
  --radius-sm: 12px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-3xl: 28px;
  --radius-4xl: 32px;

  --font-sans: "Nunito", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Baloo 2", "Nunito", ui-sans-serif, sans-serif;

  --background: oklch(0.99 0.008 95);
  --foreground: oklch(0.26 0.035 210);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.26 0.035 210);

  --primary: oklch(0.48 0.078 202);
  --primary-foreground: oklch(0.99 0.008 95);
  --primary-soft: oklch(0.93 0.03 195);

  --secondary: oklch(0.95 0.025 150);
  --secondary-foreground: oklch(0.32 0.05 175);

  --muted: oklch(0.96 0.012 120);
  --muted-foreground: oklch(0.47 0.025 210);

  --accent: oklch(0.68 0.16 42);
  --accent-foreground: oklch(0.99 0.008 95);
  --accent-soft: oklch(0.94 0.045 55);

  --sage: oklch(0.68 0.06 150);
  --sage-soft: oklch(0.94 0.03 150);
  --honey: oklch(0.82 0.13 82);

  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.99 0.008 95);

  --border: oklch(0.9 0.02 190);
  --input: oklch(0.9 0.02 190);
  --ring: oklch(0.48 0.078 202);

  --gradient-warm: linear-gradient(135deg, var(--primary), oklch(0.58 0.09 175));
  --shadow-soft: 0 10px 30px -12px oklch(0.48 0.078 202 / 0.25);
  --shadow-lift: 0 22px 45px -18px oklch(0.48 0.078 202 / 0.38);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea { font: inherit; color: inherit; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  padding-bottom: 6rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

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

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.container { max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; }
.container--md { max-width: 56rem; }
.container--lg { max-width: 64rem; }
.container--sm { max-width: 42rem; }

.gradient-warm { background-image: var(--gradient-warm); }
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-lift { box-shadow: var(--shadow-lift); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

.float-slow { animation: float-slow 7s ease-in-out infinite; }
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-slow { animation: none; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn--full { width: 100%; }
.btn--accent {
  background-color: var(--accent);
  color: var(--accent-foreground);
  box-shadow: var(--shadow-soft);
}
.btn--accent:hover { background-color: oklch(from var(--accent) l c h / 0.9); transform: translateY(-2px); }
.btn--primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}
.btn--primary:hover { opacity: 0.92; }
.btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}
.btn--outline:hover { background-color: var(--secondary); }
.btn--outline-invert {
  background: transparent;
  border: 1px solid oklch(0.99 0.008 95 / 0.4);
  color: var(--primary-foreground);
}
.btn--outline-invert:hover { background-color: oklch(0.99 0.008 95 / 0.1); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-scrolled {
  background-color: oklch(0.99 0.008 95 / 0.85);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}
.nav {
  max-width: 72rem;
  margin-inline: auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.nav__brand-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: var(--radius-2xl);
  color: var(--primary-foreground);
}
.nav__brand-icon svg { width: 1.25rem; height: 1.25rem; }
.nav__brand-text { min-width: 0; }
.nav__brand-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav__brand-sub { display: block; font-size: 0.75rem; color: var(--muted-foreground); }

.nav__links { display: none; align-items: center; gap: 0.25rem; }
.nav__link {
  border-radius: 9999px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-foreground);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav__link:hover { background-color: var(--secondary); color: var(--secondary-foreground); }
.nav__links .btn { margin-left: 0.5rem; }

.nav__toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background-color: var(--card);
}
.nav__toggle svg { width: 1.25rem; height: 1.25rem; }

.nav__mobile {
  display: none;
  border-top: 1px solid var(--border);
  background-color: oklch(0.99 0.008 95 / 0.95);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1.25rem 1.25rem;
}
.nav__mobile.is-open { display: block; }
.nav__mobile-link {
  display: block;
  border-radius: var(--radius-xl);
  padding: 0.75rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}
.nav__mobile-link:hover { background-color: var(--secondary); }
.nav__mobile .btn { margin-top: 0.75rem; }

@media (min-width: 64rem) {
  .nav { flex-wrap: nowrap; }
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .nav__mobile { display: none !important; }
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */
.whatsapp-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.5rem;
  min-width: 3.5rem;
  padding-inline: 1rem;
  border-radius: 9999px;
  background-color: var(--sage);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-lift);
  transition: transform 0.3s ease;
}
.whatsapp-btn:hover { transform: scale(1.05); }
.whatsapp-btn svg { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.whatsapp-btn span { display: none; font-size: 0.9rem; font-weight: 700; }
@media (min-width: 40rem) {
  .whatsapp-btn span { display: inline; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: 7rem 0 4rem; }
@media (min-width: 40rem) { .hero { padding: 9rem 0 6rem; } }

.hero__blob {
  position: absolute;
  pointer-events: none;
  border-radius: 9999px;
  filter: blur(64px);
}
.hero__blob--1 { top: -6rem; right: -6rem; width: 28rem; height: 28rem; background-color: var(--sage-soft); }
.hero__blob--2 { top: 10rem; left: -8rem; width: 24rem; height: 24rem; background-color: var(--accent-soft); }

.hero__grid {
  position: relative;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 64rem) { .hero__grid { grid-template-columns: 1fr 1fr; } }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}
.hero__badge-dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background-color: var(--sage); }

.hero__title { margin-top: 1.5rem; font-size: 2.25rem; font-weight: 700; }
.hero__title-highlight { color: var(--primary); }
@media (min-width: 40rem) { .hero__title { font-size: 3rem; } }
@media (min-width: 64rem) { .hero__title { font-size: 3.75rem; } }

.hero__desc { margin-top: 1.5rem; max-width: 36rem; font-size: 1.125rem; color: var(--muted-foreground); }

.hero__ctas { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 40rem) { .hero__ctas { flex-direction: row; } }

.hero__image-wrap { position: relative; }
.hero__image-glow {
  position: absolute; inset: 1.5rem;
  border-radius: 3rem;
  background-color: var(--primary-soft);
  filter: blur(32px);
}
.hero__image { position: relative; margin-inline: auto; width: 100%; max-width: 32rem; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 5rem 0; }
@media (min-width: 40rem) { .section { padding: 7rem 0; } }
.section--muted { background-color: oklch(0.96 0.012 120 / 0.6); }

.section-title { max-width: 42rem; margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.section-title__title { margin-top: 1rem; font-size: 1.875rem; font-weight: 700; }
@media (min-width: 40rem) { .section-title__title { font-size: 2.25rem; } }
.section-title__subtitle { margin-top: 1rem; font-size: 1.125rem; color: var(--muted-foreground); }

.card {
  border-radius: var(--radius-3xl);
  border: 1px solid var(--border);
  background-color: var(--card);
  box-shadow: var(--shadow-soft);
}

/* ---- Chi sono ---- */
.chi-sono__grid { margin-top: 3rem; display: grid; gap: 1.5rem; }
@media (min-width: 64rem) { .chi-sono__grid { grid-template-columns: 2fr 1fr; } }
.chi-sono__text { height: 100%; padding: 2rem; }
.chi-sono__text p { margin-top: 1rem; color: var(--muted-foreground); }
.chi-sono__text p:first-child { margin-top: 0; font-size: 1.125rem; line-height: 1.75; color: var(--foreground); }
.chi-sono__info { display: grid; gap: 1rem; height: 100%; }
.chi-sono__info-item { border-radius: var(--radius-3xl); background-color: var(--secondary); color: var(--secondary-foreground); padding: 1.5rem; }
.chi-sono__info-item p:first-child { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.chi-sono__info-item p:last-child { font-size: 0.9rem; }

/* ---- Servizi ---- */
.servizi__grid { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .servizi__grid { grid-template-columns: 1fr 1fr; } }
.servizi__card {
  display: block;
  height: 100%;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, rotate 0.3s ease;
}
.servizi__card:hover { transform: translateY(-8px) rotate(-0.4deg); box-shadow: var(--shadow-lift); }
.servizi__icon {
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: var(--radius-2xl);
  background-color: var(--primary-soft);
  color: var(--primary);
  transition: transform 0.3s ease;
}
.servizi__icon svg { width: 1.75rem; height: 1.75rem; }
.servizi__card:hover .servizi__icon { transform: scale(1.1) rotate(6deg); }
.servizi__card h3 { margin-top: 1.5rem; font-size: 1.25rem; font-weight: 700; }
.servizi__card p { margin-top: 0.75rem; color: var(--muted-foreground); }
.servizi__cta {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.servizi__cta svg { width: 1rem; height: 1rem; }
.servizi__card:hover .servizi__cta { opacity: 1; }

/* ---- Metodo ---- */
.metodo__list { margin-top: 3.5rem; display: grid; gap: 1rem; }
.metodo__item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (min-width: 40rem) { .metodo__item { padding: 2rem; } }
.metodo__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.metodo__num-col { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.metodo__num {
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border-radius: var(--radius-2xl);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-foreground);
}
.metodo__connector { display: none; margin-top: 0.75rem; width: 1px; flex: 1; background-color: var(--border); }
@media (min-width: 40rem) { .metodo__connector.show { display: block; } }
.metodo__body { min-width: 0; }
.metodo__body h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 700; }
.metodo__body h3 svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: var(--sage); transition: transform 0.3s ease; }
.metodo__item:hover h3 svg { transform: scale(1.25); }
.metodo__body p { margin-top: 0.5rem; color: var(--muted-foreground); }

/* ---- Perché ---- */
.perche__grid { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .perche__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .perche__grid { grid-template-columns: repeat(4, 1fr); } }
.perche__card { height: 100%; padding: 1.75rem; text-align: center; transition: transform 0.3s ease; }
.perche__card:hover { transform: translateY(-8px); }
.perche__icon {
  margin-inline: auto;
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 9999px;
  background-color: var(--accent-soft);
  color: var(--accent);
  transition: transform 0.3s ease;
}
.perche__icon svg { width: 1.75rem; height: 1.75rem; }
.perche__card:hover .perche__icon { transform: scale(1.1); }
.perche__card h3 { margin-top: 1.25rem; font-size: 1.125rem; font-weight: 700; }
.perche__card p { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted-foreground); }

/* ---- CTA banner ---- */
.cta-banner {
  max-width: 64rem;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 2.5rem;
  padding: 3.5rem 1.5rem;
  text-align: center;
  color: var(--primary-foreground);
  box-shadow: var(--shadow-lift);
}
@media (min-width: 40rem) { .cta-banner { padding: 3.5rem 3rem; } }
.cta-banner__title { font-size: 1.875rem; font-weight: 700; }
@media (min-width: 40rem) { .cta-banner__title { font-size: 2.25rem; } }
.cta-banner__desc { margin: 1rem auto 0; max-width: 42rem; font-size: 1.125rem; opacity: 0.9; }
.cta-banner__actions { margin-top: 2rem; display: flex; flex-direction: column; justify-content: center; gap: 0.75rem; }
@media (min-width: 40rem) { .cta-banner__actions { flex-direction: row; } }

/* ---- Contatti ---- */
.contatti__grid { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 64rem) { .contatti__grid { grid-template-columns: 1fr 1fr; } }
.contatti__cards { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.contact-card__icon {
  display: grid; place-items: center;
  width: 3rem; height: 3rem; flex-shrink: 0;
  border-radius: var(--radius-2xl);
  transition: transform 0.3s ease;
}
.contact-card__icon svg { width: 1.5rem; height: 1.5rem; }
.contact-card:hover .contact-card__icon { transform: scale(1.1); }
.contact-card__icon--sage { background-color: var(--sage-soft); color: var(--sage); }
.contact-card__icon--accent { background-color: var(--accent-soft); color: var(--accent); }
.contact-card__icon--primary { background-color: var(--primary-soft); color: var(--primary); }
.contact-card__text { min-width: 0; }
.contact-card__text span:first-child { display: block; font-weight: 700; }
.contact-card__text span:last-child { display: block; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contatti__banner { margin-top: auto; border-radius: var(--radius-3xl); background-color: var(--secondary); color: var(--secondary-foreground); padding: 1.5rem; }
.contatti__banner p:first-child { font-weight: 700; }
.contatti__banner p:last-child { margin-top: 0.25rem; font-size: 0.9rem; }

/* ---- Contact form ---- */
.contact-form { min-width: 0; padding: 1rem; }
@media (min-width: 40rem) { .contact-form { padding: 1.5rem; } }
@media (min-width: 64rem) { .contact-form { padding: 2rem; } }
.contact-form h3 { font-size: 1.25rem; font-weight: 700; }
.contact-form > p { margin-top: 0.25rem; font-size: 0.9rem; color: var(--muted-foreground); }
.form-fields { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.9rem; font-weight: 700; }
.form-group input, .form-group textarea {
  width: 100%;
  border: 1px solid var(--input);
  border-radius: var(--radius-lg);
  padding: 0.65rem 0.9rem;
  background-color: var(--card);
  font-size: 0.95rem;
}
.form-group input:focus, .form-group textarea:focus {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
}
.form-group textarea { resize: vertical; min-height: 7rem; }
.form-error { font-size: 0.9rem; font-weight: 600; color: var(--destructive); }
.form-success { padding: 2rem; text-align: center; }
.form-success svg { margin-inline: auto; width: 3rem; height: 3rem; color: var(--sage); }
.form-success h3 { margin-top: 1rem; font-size: 1.25rem; font-weight: 700; }
.form-success p { margin-top: 0.5rem; color: var(--muted-foreground); }
.form-success .btn { margin-top: 1.25rem; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); background-color: oklch(0.96 0.012 120 / 0.6); padding: 3.5rem 0; }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 40rem) { .footer__grid { grid-template-columns: repeat(3, 1fr); } }
.footer__brand p:first-child { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.footer__brand p:last-child { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted-foreground); }
.footer__col p:first-child { font-weight: 700; }
.footer__col ul { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; color: var(--muted-foreground); }
.footer__col ul a:hover { color: var(--foreground); }
.footer__bottom { max-width: 72rem; margin: 2.5rem auto 0; padding-inline: 1.25rem; font-size: 0.75rem; color: var(--muted-foreground); }
