/* Design System & Premium Stylesheet for Tutoring Premium Funnel */

:root {
  --brand: #0A5B63;
  --brand-light: #f0fdfa;
  --brand-deep: #042f35;
  --accent: #d97706; /* Warm premium gold/amber */
  --accent-hover: #b45309;
  --accent-light: #fef3c7;
  --bg: #f8fafc; /* Very light slate bg */
  --card: #ffffff;
  --ink: #0f172a; /* Slate 900 */
  --ink-2: #475569; /* Slate 600 */
  --border-gray: #e2e8f0;
  --shadow: 0 4px 20px rgba(10, 91, 99, 0.04);
  --shadow-hover: 0 10px 30px rgba(10, 91, 99, 0.08);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--brand-deep);
  line-height: 1.25;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Header
   Le tre pagine usano l'intestazione comune del sito
   (.site-header.barra-comune, in css/barra-intestazione.css): qui non c'e'
   niente da definire. C'era una "minimal-header" tutta sua — marchio
   centrato, Montserrat invece di Inter, senza nome della sezione, logo non
   cliccabile — ed era l'unica pagina del sito a comportarsi cosi'. */

/* Hero Section */
.hero {
  background: radial-gradient(1000px 500px at 90% -100px, rgba(217, 119, 6, 0.08), transparent 70%) no-repeat, 
              linear-gradient(135deg, #ffffff, #f1f5f9);
  border-bottom: 1px solid var(--border-gray);
  padding: 60px 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  text-align: center;
}

@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1.2fr 0.8fr;
    text-align: left;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-content {
    align-items: flex-start;
  }
}

.hero-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-hover);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--brand-deep);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--ink-2);
  margin-bottom: 35px;
  max-width: 650px;
}

/* Button Call to Action */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
  transition: all 0.25s ease;
}

.btn-cta:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.45);
}

.cta-container {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

@media (min-width: 992px) {
  .hero-content .cta-container {
    align-items: flex-start;
  }
}

.seats-warning {
  font-size: 0.88rem;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

@media (min-width: 992px) {
  .hero-content .seats-warning {
    justify-content: flex-start;
  }
}

.seats-warning .pulsing-dot {
  width: 8px;
  height: 8px;
  background: #22c55e; /* Green pulsing dot */
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.photo-placeholder {
  width: 100%;
  max-width: 340px;
  height: 480px;
  background: #cbd5e1 url('../img/prof. Agostino Perna.jpeg') center 15%/cover no-repeat;
  margin: 0 auto;
  border-radius: 24px;
  border: 5px solid #ffffff;
  box-shadow: 0 12px 35px rgba(0,0,0,0.1);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.photo-tag {
  background: rgba(4, 47, 53, 0.85);
  color: #fff;
  font-size: 0.85rem;
  padding: 8px 20px;
  backdrop-filter: blur(4px);
  width: 100%;
  text-align: center;
  font-weight: 600;
}

/* Section Common Styling */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  color: var(--brand-deep);
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--ink-2);
  max-width: 600px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
}

/* Authority Section */
.authority {
  background: #ffffff;
  border-bottom: 1px solid var(--border-gray);
  padding: 80px 0;
}

.authority-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;
}

@media (min-width: 768px) {
  .authority-intro {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

.badge-certified {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.authority-text-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  margin-bottom: 20px;
  color: var(--brand-deep);
  line-height: 1.25;
}

.authority-text-content p {
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.instructor-badge {
  background: var(--bg);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid var(--border-gray);
  text-align: center;
  box-shadow: var(--shadow);
}

.instructor-badge .instructor-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 5px;
  color: var(--brand-deep);
}

.instructor-title {
  font-size: 0.85rem;
  color: var(--brand);
  font-weight: 600;
}

.instructor-badge .stars {
  margin-top: 15px;
  font-size: 1.3rem;
}

.instructor-avatar {
  width: 100px;
  height: 100px;
  background: #ffffff url('../img/prof. Agostino Perna.jpeg') center 40%/cover no-repeat;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 4px solid #ffffff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.method-pillars-title {
  text-align: center;
  margin-bottom: 35px;
}

.method-pillars-title h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--brand-deep);
  font-weight: 800;
  max-width: 700px;
  margin: 0 auto;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pillar-card {
  background: var(--bg);
  border: 1px solid var(--border-gray);
  border-radius: 16px;
  padding: 25px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand);
}

.pillar-icon {
  font-size: 2rem;
}

.pillar-card h4 {
  font-size: 1.2rem;
  color: var(--brand-deep);
  font-weight: 800;
}

.pillar-card p {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.5;
}

.pillar-card p a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
}

.pillar-card p a:hover {
  color: var(--brand-deep);
}

/* Method Section */
.method {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-gray);
}

.method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .method-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.method-card {
  background: #ffffff;
  border: 1px solid var(--border-gray);
  border-radius: 20px;
  padding: 35px 30px;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: var(--shadow);
}

.method-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand);
}

.method-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(10, 91, 99, 0.1);
  position: absolute;
  top: 15px;
  right: 25px;
  line-height: 1;
}

.method-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.method-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--brand-deep);
}

.method-card p {
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* Testimonials / Social Proof */
.social-proof {
  background: #ffffff;
  padding: 80px 0;
  border-bottom: 1px solid var(--border-gray);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border-gray);
  border-radius: 20px;
  padding: 30px;
}

.quote-icon {
  font-size: 2.5rem;
  color: var(--brand);
  opacity: 0.2;
  line-height: 0.1;
  margin-bottom: 10px;
}

.testimonial-text {
  font-size: 1.02rem;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-info .author-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.author-info p {
  font-size: 0.8rem;
  color: var(--ink-2);
}

/* Call To Action Block (Section Bottom) */
.cta-block {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.cta-block h2 {
  color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 15px;
}

.cta-block p {
  color: var(--brand-light);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 35px;
}

.cta-block .btn-cta {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
}

.cta-block .btn-cta:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.6);
}

.cta-block .seats-warning {
  color: var(--brand-light);
}

/* Footer Minimal */
.minimal-footer {
  background: var(--brand-deep);
  color: #e2e8f0;
  padding: 30px 0;
  text-align: center;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.minimal-footer p {
  margin-bottom: 8px;
}

.minimal-footer a {
  color: #ffffff;
  text-decoration: none;
}

.minimal-footer a:hover {
  text-decoration: underline;
}

/* Thank You Page Specific Styles */
.thankyou-wrapper {
  max-width: 650px;
  margin: 50px auto;
  background: #ffffff;
  border: 1px solid var(--border-gray);
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: inline-block;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.thankyou-title {
  font-size: 2.2rem;
  color: var(--brand-deep);
  margin-bottom: 15px;
}

.thankyou-text {
  font-size: 1.1rem;
  color: var(--ink-2);
  margin-bottom: 30px;
}

.action-card {
  background: var(--brand-light);
  border: 1.5px dashed var(--brand);
  border-radius: 16px;
  padding: 24px;
  text-align: left;
  margin-bottom: 30px;
}

.action-card h3 {
  font-size: 1.1rem;
  color: var(--brand-deep);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-card p {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.5;
}

/* Free Resources Section */
.free-resources {
  background: var(--brand-light);
  border-bottom: 1px solid var(--border-gray);
  padding: 80px 0;
}

.resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .resources-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.resource-card {
  background: #ffffff;
  border: 1px solid var(--border-gray);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.resource-card h3 {
  font-size: 1.35rem;
  color: var(--brand-deep);
  margin-bottom: 10px;
}

.resource-card p {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.btn-resource {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand);
  color: #ffffff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: none;
}

.btn-resource:hover {
  background-color: var(--brand-deep);
  color: #ffffff;
}

.btn-cta-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(10, 91, 99, 0.2);
  transition: all 0.25s ease;
}

.btn-cta-brand:hover {
  background-color: var(--brand-deep);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 91, 99, 0.35);
}


/* Booking Section */
.booking-section {
  background: #ffffff;
  border-top: 1px solid var(--border-gray);
  padding: 80px 0;
}

.calendar-wrapper {
  border: 1px solid var(--border-gray);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #ffffff;
  height: 650px;
  -webkit-overflow-scrolling: touch;
  margin-top: 30px;
}

/* Mobile-specific optimizations */
@media (max-width: 767px) {
  .hero {
    padding: 40px 0;
  }
  
  .authority,
  .method,
  .free-resources,
  .social-proof,
  .cta-block {
    padding: 45px 0;
  }

  .container {
    padding: 20px 0;
  }

  .section-subtitle {
    margin-bottom: 30px;
  }

  .authority-intro {
    gap: 25px;
    margin-bottom: 30px;
  }

  .instructor-badge {
    padding: 20px 15px;
  }

  .photo-placeholder {
    height: 400px;
  }

  .method-card {
    padding: 25px 20px;
  }

  .pillar-card {
    padding: 20px;
  }

  .resource-card {
    padding: 20px;
  }

  .testimonial-card {
    padding: 20px;
  }
  
  .cta-block {
    padding: 50px 15px;
  }

  .calendar-wrapper {
    height: 520px;
  }
}

/* ==========================================
   MODAL DI PRENOTAZIONE (Colloquio Funnel)
   ========================================== */
.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 2000;
  background: rgba(4, 47, 53, 0.7);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease-out;
}

.modal__panel {
  width: min(650px, 100%);
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--border-gray);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(4, 47, 53, 0.2);
  padding: 36px 30px;
  max-height: 90vh;
  overflow: auto;
  animation: slideUp 0.3s ease-out;
  position: relative;
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.modal__close:hover {
  color: var(--accent);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
