/*
Theme Name: Succedo
Theme URI: https://adhocschool.it
Author: AdHoc School
Author URI: https://adhocschool.it
Description: Tema ufficiale Succedo — Assessment sul passaggio generazionale. AdHoc School × Mind4Children.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: Proprietario
Text Domain: succedo
*/

@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Lato:wght@400;700&family=Caveat:wght@400;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  color: #111111;
  background: #ffffff;
  line-height: 1.7;
  font-size: 16px;
}

:root {
  --orange:      #F2651F;
  --orange-dark: #D4520E;
  --orange-pale: #FAE8DC;
  --orange-mid:  #F5B99A;
  --black:       #111111;
  --grey:        #6B6B6B;
  --grey-light:  #F4F3F2;
  --border:      #E8E4DF;
  --white:       #FFFFFF;
}

/* ── Layout ── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }
.section    { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: 'Raleway', sans-serif; font-weight: 300; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
.tag {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: .73rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: .9rem;
}
.lead { font-size: 1.1rem; color: var(--grey); max-width: 660px; line-height: 1.8; }
.hand { font-family: 'Caveat', cursive; font-size: 1.3rem; color: var(--grey); }

/* ── Buttons ── */
.btn {
  display: inline-block; padding: .9rem 2.2rem;
  border-radius: 2px; font-family: 'Lato', sans-serif;
  font-size: .9rem; font-weight: 700; letter-spacing: .04em;
  text-decoration: none; cursor: pointer; border: none; transition: all .2s;
}
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(242,101,31,.3); }
.btn-outline { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-white { background: #fff; color: var(--orange); }
.btn-white:hover { background: var(--orange-pale); }

/* ── NAV ── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: .9rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Raleway', sans-serif; font-size: 1.5rem;
  font-weight: 400; color: var(--black); text-decoration: none; letter-spacing: -.01em;
}
.nav-logo span { color: var(--orange); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-family: 'Lato', sans-serif; font-size: .85rem; font-weight: 700;
  color: var(--black); text-decoration: none; letter-spacing: .04em; text-transform: uppercase;
}
.nav-links a:hover { color: var(--orange); }
@media (max-width: 640px) { .nav-links .hide-mobile { display: none; } }

/* ── TOP BAR ── */
.top-bar {
  background: var(--orange); color: #fff;
  font-family: 'Lato', sans-serif; font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-align: center; padding: .5rem 1rem;
}

/* ── HERO ── */
#hero {
  min-height: 100vh; background: var(--orange);
  display: flex; align-items: center; padding-top: 80px;
  position: relative; overflow: hidden;
}
#hero::before {
  content: ''; position: absolute; top: -20%; right: -8%;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(255,255,255,.06); pointer-events: none;
}
#hero::after {
  content: ''; position: absolute; bottom: -15%; left: -5%;
  width: 350px; height: 350px; border-radius: 50%;
  background: rgba(0,0,0,.06); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero-eyebrow {
  font-family: 'Lato', sans-serif; font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 1.4rem;
}
.hero-title { color: #fff; margin-bottom: .5rem; }
.hero-title em { font-style: italic; font-weight: 300; opacity: .85; }
.hero-hand { font-family: 'Caveat', cursive; font-size: 1.7rem; color: rgba(255,255,255,.8); margin-bottom: 2rem; display: block; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 560px; margin-bottom: 2.5rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-badge {
  position: absolute; bottom: 2.5rem; right: 2rem;
  font-family: 'Lato', sans-serif; font-size: .75rem;
  color: rgba(255,255,255,.45); text-align: right; line-height: 1.5;
}

/* ── INTRO STRIP ── */
#intro-strip { background: var(--grey-light); padding: 3.5rem 0; }
.intro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.intro-card {
  background: #fff; border-radius: 4px; padding: 1.6rem;
  border-left: 3px solid var(--orange); font-style: italic;
  font-family: 'Caveat', cursive; font-size: 1.15rem; color: var(--grey);
}

/* ── SUCCEDO ── */
#succedo { background: #fff; }
.meanings { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; margin-top: 3rem; }
.meaning-card {
  border: 1px solid var(--border); border-radius: 4px; padding: 2rem;
  border-top: 3px solid var(--orange);
}
.meaning-card .num { font-family: 'Raleway', sans-serif; font-size: 2.5rem; font-weight: 300; color: var(--orange); line-height: 1; margin-bottom: .7rem; }
.meaning-card h3 { color: var(--black); margin-bottom: .5rem; font-size: 1rem; font-weight: 700; font-family: 'Lato', sans-serif; }
.meaning-card p { font-size: .92rem; color: var(--grey); }

/* ── ASSESSMENT CARDS ── */
#assessment-cards { background: var(--grey-light); }
.assess-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 3rem; }
@media (max-width: 768px) { .assess-grid { grid-template-columns: 1fr; } }
.assess-card { background: #fff; border-radius: 4px; overflow: hidden; border: 1.5px solid var(--border); }
.assess-card.featured { border-color: var(--orange); box-shadow: 0 6px 36px rgba(242,101,31,.12); }
.assess-header { padding: 2rem; background: var(--grey-light); }
.assess-card.featured .assess-header { background: var(--orange); }
.assess-badge {
  display: inline-block; font-family: 'Lato', sans-serif;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .8rem; border-radius: 20px; margin-bottom: .8rem;
}
.assess-badge.free { background: #e6f5ee; color: #1e6e42; }
.assess-badge.paid { background: rgba(255,255,255,.2); color: #fff; }
.assess-name { font-family: 'Raleway', sans-serif; font-size: 1.5rem; font-weight: 300; margin-bottom: .4rem; }
.assess-card.featured .assess-name { color: #fff; }
.assess-price { font-family: 'Raleway', sans-serif; font-size: 2.6rem; font-weight: 300; color: var(--black); line-height: 1; }
.assess-card.featured .assess-price { color: #fff; }
.assess-price small { font-family: 'Lato', sans-serif; font-size: .9rem; color: var(--grey); font-weight: 400; }
.assess-card.featured .assess-price small { color: rgba(255,255,255,.7); }
.assess-body { padding: 2rem; }
.assess-features { list-style: none; display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
.assess-features li { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; color: var(--grey); }
.assess-features li::before { content: '✓'; color: var(--orange); font-weight: 700; min-width: 16px; flex-shrink: 0; }

/* ── QUIZ ── */
#quiz { background: #fff; }
.quiz-wrapper { max-width: 740px; margin: 0 auto; }
.quiz-intro {
  background: var(--grey-light); border-radius: 4px; padding: 2.5rem;
  margin-bottom: 2rem; text-align: center; border: 1px solid var(--border);
}
.quiz-intro .free-badge {
  display: inline-block; background: var(--orange-pale); color: var(--orange-dark);
  font-family: 'Lato', sans-serif; font-size: .73rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem 1rem; border-radius: 20px; margin-bottom: 1rem;
}
.quiz-intro h3 { font-family: 'Raleway', sans-serif; font-size: 1.5rem; margin-bottom: .6rem; color: var(--black); font-weight: 400; }
.quiz-intro p { font-size: .95rem; color: var(--grey); }
.quiz-dimensions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem;
  margin: 1.4rem 0;
}
@media (max-width: 560px) { .quiz-dimensions { grid-template-columns: 1fr 1fr; } }
.dim-tag {
  font-family: 'Lato', sans-serif; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 2px;
  background: var(--orange-pale); color: var(--orange-dark); text-align: center;
}
.quiz-progress { margin-bottom: 1.2rem; }
.quiz-progress-meta {
  display: flex; justify-content: space-between;
  font-family: 'Lato', sans-serif; font-size: .78rem; color: var(--grey); margin-bottom: .4rem;
}
.quiz-progress-track { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.quiz-progress-fill { height: 100%; background: var(--orange); border-radius: 2px; transition: width .4s ease; }
.quiz-card { background: #fff; border-radius: 4px; padding: 2.5rem; border: 1px solid var(--border); display: none; }
.quiz-card.active { display: block; }
.quiz-dim-label {
  font-family: 'Lato', sans-serif; font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: .8rem;
}
.quiz-q-text { font-family: 'Raleway', sans-serif; font-size: 1.15rem; font-weight: 400; color: var(--black); margin-bottom: 1.8rem; line-height: 1.5; }
.quiz-options { display: flex; flex-direction: column; gap: .7rem; }
.quiz-option {
  display: flex; align-items: flex-start; gap: .9rem;
  padding: 1rem 1.2rem; border: 1.5px solid var(--border);
  border-radius: 3px; cursor: pointer; transition: all .2s; background: #fafafa;
}
.quiz-option:hover { border-color: var(--orange-mid); background: var(--orange-pale); }
.quiz-option.selected { border-color: var(--orange); background: var(--orange-pale); }
.quiz-option input[type=radio] { display: none; }
.opt-label {
  font-family: 'Lato', sans-serif; font-size: .75rem; font-weight: 700;
  color: var(--orange); background: rgba(242,101,31,.12); border-radius: 2px;
  padding: .15rem .5rem; min-width: 22px; text-align: center; margin-top: .05rem; flex-shrink: 0;
}
.quiz-option.selected .opt-label { background: var(--orange); color: #fff; }
.opt-text { font-size: .93rem; color: var(--black); }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; }
.quiz-btn-back { background: none; border: none; color: var(--grey); cursor: pointer; font-family: 'Lato', sans-serif; font-size: .88rem; padding: .5rem; }
.quiz-btn-back:hover { color: var(--black); }

/* ── RESULT ── */
#quiz-result { background: #fff; border-radius: 4px; padding: 3rem 2.5rem; border: 1px solid var(--border); display: none; }
.result-header { text-align: center; margin-bottom: 2.5rem; }
.result-score { font-family: 'Raleway', sans-serif; font-size: 5rem; font-weight: 300; line-height: 1; }
.result-title { font-family: 'Raleway', sans-serif; font-size: 1.8rem; font-weight: 400; color: var(--black); margin: .5rem 0 .8rem; }
.result-desc { font-size: .97rem; color: var(--grey); max-width: 580px; margin: 0 auto; }
.result-dims { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.5rem 0; }
@media (max-width: 560px) { .result-dims { grid-template-columns: 1fr; } }
.dim-result { padding: 1.2rem; background: var(--grey-light); border-radius: 3px; }
.dim-result-label { font-family: 'Lato', sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); margin-bottom: .5rem; }
.dim-result-track { height: 5px; background: var(--border); border-radius: 2px; overflow: hidden; margin-bottom: .3rem; }
.dim-result-fill { height: 100%; background: var(--orange); border-radius: 2px; transition: width 1s ease; }
.dim-result-pct { font-family: 'Lato', sans-serif; font-size: .8rem; color: var(--grey); text-align: right; }
.result-cta { background: var(--orange); border-radius: 4px; padding: 2.5rem; margin-top: 2rem; text-align: center; }
.result-cta h3 { font-family: 'Raleway', sans-serif; font-size: 1.5rem; font-weight: 400; color: #fff; margin-bottom: .6rem; }
.result-cta p { color: rgba(255,255,255,.8); font-size: .95rem; margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.result-reset { display: block; text-align: center; font-family: 'Lato', sans-serif; font-size: .85rem; color: var(--grey); background: none; border: none; cursor: pointer; margin-top: 1.5rem; padding: .5rem; }
.result-reset:hover { color: var(--black); }

/* ── PREMIUM ASSESSMENT ── */
#premium { background: var(--grey-light); }
.premium-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
@media (max-width: 768px) { .premium-inner { grid-template-columns: 1fr; gap: 3rem; } }
.premium-price-box { background: #fff; border-radius: 4px; padding: 2.5rem; border: 1.5px solid var(--orange); }
.premium-price { font-family: 'Raleway', sans-serif; font-size: 4rem; font-weight: 300; color: var(--orange); line-height: 1; }
.premium-price small { font-family: 'Lato', sans-serif; font-size: 1rem; color: var(--grey); font-weight: 400; }
.premium-includes { list-style: none; margin: 1.8rem 0; display: flex; flex-direction: column; gap: .9rem; }
.premium-includes li { display: flex; gap: .8rem; align-items: flex-start; font-size: .95rem; color: var(--black); }
.premium-includes li::before { content: '→'; color: var(--orange); font-weight: 700; min-width: 18px; }
.premium-sample { background: var(--orange-pale); border-radius: 3px; padding: 1.2rem 1.5rem; margin-bottom: 1.5rem; }
.premium-sample h4 { font-family: 'Lato', sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: .7rem; }
.premium-sample ul { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.premium-sample li { font-size: .85rem; color: var(--grey); padding-left: 1rem; position: relative; }
.premium-sample li::before { content: '·'; position: absolute; left: 0; color: var(--orange); }

/* ── CHI SIAMO ── */
#chisiamo { background: #fff; }
.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 3rem; }
@media (max-width: 768px) { .partner-grid { grid-template-columns: 1fr; } }
.partner-card { padding: 2.5rem; border-radius: 4px; border: 1px solid var(--border); background: var(--grey-light); }
.partner-label { font-family: 'Lato', sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--orange); margin-bottom: .5rem; }
.partner-name { font-family: 'Raleway', sans-serif; font-size: 1.35rem; font-weight: 400; color: var(--black); margin-bottom: 1rem; }
.partner-card p { font-size: .92rem; color: var(--grey); }

/* ── FOOTER ── */
footer { background: #111; color: rgba(255,255,255,.6); padding: 4rem 0 2.5rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 2rem; }
@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand { font-family: 'Raleway', sans-serif; font-size: 2rem; font-weight: 300; color: #fff; margin-bottom: .7rem; }
.footer-brand span { color: var(--orange); }
.footer-tagline { font-size: .9rem; max-width: 260px; }
.footer-col h4 { font-family: 'Lato', sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 1rem; }
.footer-col a { display: block; color: rgba(255,255,255,.6); text-decoration: none; font-size: .9rem; margin-bottom: .5rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .8rem; }
.footer-bottom a { color: rgba(255,255,255,.4); text-decoration: none; }

/* ── FADE IN ── */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── TWO COL ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; gap: 3rem; } }
.stat-block { display: flex; flex-direction: column; gap: 2rem; }
.stat { display: flex; gap: 1.2rem; align-items: flex-start; }
.stat-num { font-family: 'Raleway', sans-serif; font-size: 2.8rem; font-weight: 300; color: var(--orange); line-height: 1; min-width: 88px; }
.stat-text { font-size: .93rem; color: var(--grey); padding-top: .4rem; }
