:root {
  --color-primary: #013130;
  --color-primary-light: #0a4b49;
  --color-orange: #d36439;
  --color-orange-dark: #b8502c;
  --color-yellow: #ffac11;
  --color-beige: #f7f3f0;
  --color-text: #013130;
  --color-text-light: #f7f3f0;
  --color-muted: #5c6f6e;
  --color-muted-light: #cfe0de;
  --color-border: rgba(1, 49, 48, 0.12);
  --max-width: 1100px;
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-beige);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
}

h2 {
  font-size: 2rem;
}

em {
  font-style: italic;
  color: var(--color-orange);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Iscriviti form */
.form-section {
  padding: 2rem 0 4rem;
}

.form-embed {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.form-embed-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 320px;
  padding: 2rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
}

.form-embed-consent p {
  max-width: 480px;
  margin: 0;
  color: var(--color-muted);
}

/* Header */
.site-header {
  background: var(--color-beige);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.375rem;
  text-decoration: none;
  color: var(--color-primary);
}

.header-info {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.header-date {
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.header-countdown {
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.header-countdown strong {
  color: var(--color-orange);
  font-weight: 700;
}

.btn-nav {
  padding: 0.5rem 1.125rem;
  font-size: 0.9375rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--color-orange);
  color: var(--color-text-light);
}

.btn-primary:hover {
  background: var(--color-orange-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-light);
  border: 1px solid var(--color-muted-light);
}

.btn-secondary:hover {
  background: rgba(247, 243, 240, 0.1);
}

/* Hero */
.hero {
  background: var(--color-primary);
  padding: 4rem 0 5rem;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.hero-copy {
  flex: 1 1 420px;
  max-width: 620px;
}

.hero-photo {
  flex: 0 1 320px;
}

.hero-photo img {
  width: 100%;
  max-width: 320px;
  display: block;
  margin: 0 auto;
  border-radius: 1.25rem;
  border: 4px solid var(--color-primary-light);
}

.hero-date-badge {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-orange);
  color: var(--color-text-light);
  box-shadow: 0 8px 24px rgba(1, 49, 48, 0.25);
}

.hero-date-badge-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  font-size: 1.1875rem;
  font-weight: 600;
}

.hero-date-badge-countdown {
  font-variant-numeric: tabular-nums;
  padding-left: 1rem;
  border-left: 1px solid rgba(247, 243, 240, 0.4);
}

.hero-date-badge-countdown strong {
  color: var(--color-text-light);
}

.superline {
  color: var(--color-yellow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.875rem;
  margin: 0 0 1.25rem;
}

.hero h1 {
  color: var(--color-text-light);
  font-size: 2.75rem;
  margin: 0 auto 1.25rem;
  max-width: 780px;
}

.hero em {
  color: var(--color-yellow);
}

.hero-sub {
  color: var(--color-muted-light);
  font-size: 1.125rem;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.hero-small {
  padding: 2.5rem 0 3rem;
}

.hero-small h1 {
  font-size: 2rem;
  margin-bottom: 0;
}

/* Il problema / Ti presento howtoteacher */
.problem-intro {
  padding: 4rem 0 3rem;
}

.problem-intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.problem-intro-col {
  text-align: left;
}

.problem-intro-col h2 {
  margin-bottom: 1rem;
}

.problem-intro-col p {
  color: var(--color-muted);
  font-size: 1.0625rem;
  margin: 0 0 1rem;
}

.problem-intro-col p:last-child {
  margin-bottom: 0;
}

.problem-intro-col p strong {
  color: var(--color-primary);
}

/* Perché ascoltare proprio me? */
.why-me {
  padding: 4rem 0;
  background: #fff;
}

.why-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
}

.why-photo {
  flex: 0 1 280px;
}

.why-photo img {
  width: 100%;
  max-width: 280px;
  display: block;
  margin: 0 auto;
  border-radius: 1.25rem;
}

.why-text {
  flex: 1 1 380px;
}

.why-text h2 {
  margin: 0 0 1rem;
}

.why-text h2 strong {
  color: var(--color-orange);
}

.why-text p {
  color: var(--color-muted);
  margin: 0 0 1rem;
}

.why-text p strong {
  color: var(--color-primary);
}

.why-text p:last-child {
  margin-bottom: 0;
}

/* Program ("Cosa scoprirai") */
.program {
  padding: 4rem 0;
  background: #fff;
}

.program h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.program-card {
  padding: 2rem 1.5rem;
  background: var(--color-beige);
  border-radius: 1rem;
  text-align: center;
}

.program-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-orange);
  margin-bottom: 0.5rem;
}

.program-card h3 {
  margin: 0 0 0.5rem;
}

.program-card p {
  color: var(--color-muted);
  margin: 0;
}

/* Prima / Dopo */
.compare {
  padding: 4rem 0;
  background: var(--color-primary);
  color: var(--color-text-light);
}

.compare h2 {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.compare-card {
  padding: 1.75rem;
  border-radius: 1rem;
  background: var(--color-primary-light);
}

.compare-card h3 {
  margin: 0 0 1rem;
}

.compare-before h3 {
  color: var(--color-orange);
}

.compare-after h3 {
  color: var(--color-yellow);
}

.compare-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.compare-card li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-muted-light);
}

.compare-before li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--color-orange);
  font-weight: 700;
}

.compare-after li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-yellow);
  font-weight: 700;
}

/* Audience ("Per chi è questo evento") */
.audience {
  padding: 4rem 0;
  text-align: center;
}

.audience h2 {
  margin-bottom: 2rem;
}

.audience-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 560px;
  text-align: left;
}

.audience-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.0625rem;
}

.audience-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-orange);
  font-weight: 700;
}

/* Team */
.team {
  padding: 4rem 0;
  background: #fff;
}

.team h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.team-card {
  padding: 1.75rem;
  background: var(--color-beige);
  border-radius: 1rem;
  text-align: center;
}

.team-photo {
  width: 88px;
  height: 88px;
  margin: 0 auto 1rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 50%;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-card h3 {
  margin: 0 0 0.5rem;
  color: var(--color-primary);
}

.team-card p {
  color: var(--color-muted);
  margin: 0;
}

/* Social proof placeholders */
.proof {
  padding: 4rem 0;
  background: #fff;
}

.proof h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.proof-carousel {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #fff 6%, #fff 94%, transparent);
}

.proof-track {
  display: flex;
  width: max-content;
  gap: 1.25rem;
  padding: 0 1.25rem;
  animation: proof-scroll 45s linear infinite;
}

.proof-carousel:hover .proof-track {
  animation-play-state: paused;
}

.proof-slide {
  position: relative;
  flex-shrink: 0;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
}

button.proof-slide {
  cursor: zoom-in;
}

.proof-slide img {
  height: 260px;
  width: auto;
  display: block;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
}

@keyframes proof-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .proof-track {
    animation: none;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(1, 49, 48, 0.85);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-content {
  position: relative;
  display: inline-block;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 0.75rem;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: var(--color-text-light);
  color: var(--color-primary);
  font-size: 1.125rem;
  cursor: pointer;
}

/* CTA */
.cta {
  padding: 4.5rem 0;
  text-align: center;
  background: var(--color-yellow);
}

.cta h2 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.cta p {
  color: var(--color-primary);
  margin: 0 0 1.75rem;
}

/* FAQ */
.faq {
  padding: 4rem 0;
}

.faq h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.faq-item {
  max-width: 700px;
  margin: 0 auto 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
}

.faq-item p {
  color: var(--color-muted);
  margin: 0.75rem 0 0;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background: var(--color-primary);
  border-top: 4px solid var(--color-orange);
  text-align: center;
  color: var(--color-muted-light);
  font-size: 0.875rem;
}

.footer-links {
  margin: 0.5rem 0 0;
}

.footer-links a {
  color: var(--color-muted-light);
  text-decoration: underline;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: var(--color-primary);
  border-top: 4px solid var(--color-orange);
  padding: 1rem 0;
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner-inner p {
  flex: 1 1 320px;
  margin: 0;
  color: var(--color-muted-light);
  font-size: 0.9375rem;
}

.cookie-banner-inner a {
  color: var(--color-yellow);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Legal page (Condizioni d'uso e Cookie) */
.legal {
  padding: 3rem 0 4.5rem;
  background: #fff;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-updated {
  margin: 0 0 2rem;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.legal-content h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.375rem;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.0625rem;
}

.legal-content p,
.legal-content li {
  color: var(--color-muted);
}

.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-content a {
  color: var(--color-orange);
}
