/* ==========================================================================
   VARIABILI E RESET
   ========================================================================== */
:root {
  --paper: #f5f0e8;
  --paper-light: #fbf9f5;
  --ink: #141413;
  --muted: #4a4844;
  --wine: #762f35;
  --wine-dark: #552126;
  --gold: #b48a55;
  --line: #d3c7b8;
  --shadow: 0 15px 40px rgba(45, 34, 25, 0.08);
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.75;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

/* ==========================================================================
   TIPOGRAFIA (Tutti i titoli h1, h2, h3 in grassetto)
   ========================================================================== */
h1, h2, h3, h4, h5, h6, .brand {
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-weight: bold; /* Forzato in grassetto per tutti i livelli di titoli */
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

h1 span {
  color: var(--wine);
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  color: var(--wine);
}

p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.small-text {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ==========================================================================
   PULSANTI STANDARD
   ========================================================================== */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 28px;
  border-radius: 99px;
  font-weight: 700;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--wine);
  color: #fff;
  box-shadow: 0 10px 20px rgba(118, 47, 53, 0.2);
}

.btn-primary:hover {
  background-color: var(--wine-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(245, 240, 232, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(118, 47, 53, 0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 75px;
}

.brand {
  font-size: 1.5rem;
  font-weight: bold;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 1rem;
  font-weight: 500;
}

.main-menu a:not(.btn):hover {
  color: var(--wine);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  padding: 5px;
}

/* ==========================================================================
   SEZIONE CHI SONO (FOTO QUADRATA)
   ========================================================================== */
.section-about {
  padding: 70px 0 90px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr; 
  gap: 60px;
  align-items: start;
}

.about-image-wrapper {
  width: 100%;
}

.portrait-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1; 
  object-fit: cover; 
  border-radius: 16px; 
  border: 6px solid var(--paper-light);
  box-shadow: var(--shadow);
}

.about-content p {
  color: var(--muted);
  font-size: 1.12rem;
}

/* ==========================================================================
   BOTTONI SOCIAL GIGANTI
   ========================================================================== */
.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 35px;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  transition: all 0.2s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.btn-social:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.btn-yt {
  background-color: #FF0000;
}

/* ==========================================================================
   SEZIONE VIDEO YOUTUBE
   ========================================================================== */
.section-video {
  background-color: var(--paper-light);
  border-top: 1px solid var(--line);
  padding: 90px 0;
}

.video-container {
  max-width: 800px;
  margin: 0 auto;
}

.video-text {
  text-align: center;
  margin-bottom: 40px;
}

.video-text p {
  color: var(--muted);
  font-size: 1.15rem;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background-color: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   SEZIONE 3 CORSI
   ========================================================================== */
.section-courses {
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

.section-head-center {
  text-align: center;
  margin-bottom: 50px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.course-card {
  background-color: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.course-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--wine);
}

.course-card p {
  color: var(--muted);
  font-size: 1.05rem;
  flex-grow: 1;
  margin-bottom: 25px;
}

.course-link {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--wine);
  transition: color 0.2s;
}

.course-link:hover {
  color: var(--wine-dark);
  text-decoration: underline;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--paper-light);
  border-top: 1px solid var(--line);
  padding: 45px 0;
  font-size: 0.95rem;
  color: var(--muted);
}

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

.footer-links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  font-weight: 600;
}

.footer-links a {
  color: var(--ink);
}

.footer-links a:hover {
  color: var(--wine);
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE (TABLET E SMARTPHONE)
   ========================================================================== */
@media (max-width: 992px) {
  .about-grid {
    gap: 40px;
  }
  .courses-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  .main-menu {
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    padding: 10px 20px 30px;
    gap: 15px;
    display: none; 
  }

  .main-menu.open {
    display: flex;
  }

  .main-menu a:not(.btn) {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  
  .main-menu .btn {
    margin-top: 15px;
    width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .portrait-img {
    max-width: 320px;
    margin: 0 auto;
  }
  
  .section-about, .section-video, .section-courses {
    padding: 60px 0;
  }
  
  .social-buttons {
    flex-direction: column;
  }
  .btn-social {
    width: 100%;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    gap: 18px;
  }
}
/* ==========================================================================
 *  PAGINA CORSO BASE GRATUITO
 *  ========================================================================== */
.section-corso-base {
  padding: 70px 0 90px;
}

.corso-base-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}

.corso-mockup-img {
  width: 100%;
  height: auto;
}

.corso-base-content p {
  color: var(--muted);
  font-size: 1.08rem;
}

@media (max-width: 992px) {
  .corso-base-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .corso-mockup-img {
    max-width: 380px;
    margin: 0 auto;
  }
}
