/* ============================================================
   ESTATE.CSS (ripulito) — valido per:
   - corsi-estivi.html
   - viaggi-studio.html
   - summer-camp.html
   Mantiene: HERO + Corsi Estivi + Altri Eventi + Summer Camp
   ============================================================ */

/* ===== HERO BASE ===== */
.hero {
  padding: 120px 20px 100px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  font-family: 'Quicksand', sans-serif;
}

.hero .hero-decor {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: url('../images/hero-wave.svg') no-repeat center bottom / cover;
  z-index: 1;
}

.hero .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero h1 span {
  color: #00bfff;
  text-shadow: 0 0 8px #00bfff, 0 0 14px #00bfff;
}

.hero p {
  font-size: 1.2rem;
  color: #e0eaf6;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  background-color: #00bfff;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s;
}

.hero-btn:hover {
  background-color: #009ace;
}

@media (max-width: 768px) {
  .hero {
    padding: 90px 20px 80px;
    clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
  }
  .hero h1 { font-size: 2rem; }
  .hero p  { font-size: 1rem; }
  .hero-btn { padding: 12px 24px; font-size: 0.95rem; }
}

/* ===== HERO SPECIFICI (SOLO ESTATE) ===== */

/* Corsi Estivi */
.hero-estivi {
  background-image: url("../images/estate/hero-corsi-estivi.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-estivi::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}
.hero-estivi .hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 40px 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* Summer Camp */
.hero-summer {
  background-image: url("../images/estate/hero-summer-camp.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-summer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}
.hero-summer .hero-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 40px 20px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* Viaggi Studio */
.hero-viaggi-studio {
  background-image: url("../images/estate/viaggi-studio-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-viaggi-studio::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}
.hero-viaggi-studio .hero-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 40px 20px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* ============================================================
   CORSI ESTIVI — sezioni centrali della pagina corsi-estivi.html
   ============================================================ */
.intro-corsi-estivi {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}
.intro-corsi-estivi .section-title {
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: #2c3e50;
  margin-bottom: 24px;
}
.intro-corsi-estivi .intro-paragraph {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #2f3e50;
  font-family: 'Open Sans', sans-serif;
}

.corsi-estivi {
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 20px;
}
.corsi-estivi .section-title {
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: #2c3e50;
  margin-bottom: 40px;
  text-align: center;
}

.course-box {
  border-radius: 14px;
  padding: 28px 28px 24px 80px;
  margin-bottom: 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-left: 8px solid;
  background-color: #ffffff;
}
.course-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}
.course-box::before {
  content: attr(data-icon);
  position: absolute;
  top: 28px;
  left: 28px;
  font-size: 1.5rem;
  line-height: 1;
}
.course-box h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a202c;
  font-family: 'Poppins', sans-serif;
}
.course-box p {
  margin-bottom: 14px;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  font-family: 'Open Sans', sans-serif;
}
.course-box ul { padding-left: 20px; margin-bottom: 16px; }
.course-box li {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 6px;
  line-height: 1.5;
}

.course-button {
  background: linear-gradient(135deg, #0066cc, #0099ff);
  color: #fff;
  padding: 10px 24px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.course-button:hover {
  background: linear-gradient(135deg, #005bb5, #007ee5);
  transform: scale(1.05);
}

/* Varianti box */
.course-box.recovery { border-left-color: #0099ff; background-color: #e6f3ff; }
.course-box.homework { border-left-color: #38b000; background-color: #edfbe7; }
.course-box.nextlevel { border-left-color: #ff8c00; background-color: #fff3e5; }
.course-box.speakup  { border-left-color: #d62828; background-color: #ffe5e5; }
.course-box.recovery::before { color: #0099ff; }
.course-box.homework::before { color: #38b000; }
.course-box.nextlevel::before { color: #ff8c00; }
.course-box.speakup::before  { color: #d62828; }

/* ============================================================
   ALTRI EVENTI — sezione “Scopri anche…”
   ============================================================ */
.altri-eventi-estate {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}
.altri-eventi-estate .section-title {
  font-size: 2rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin-bottom: 20px;
  color: #2c3e50;
}
.section-description {
  font-size: 1.1rem;
  color: #444;
  max-width: 750px;
  margin: 0 auto 40px;
  line-height: 1.7;
  font-family: 'Open Sans', sans-serif;
}
.eventi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.evento-box {
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid #dce3ea;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.evento-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
  height: 160px;
  object-fit: cover;
}
.evento-box h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #1a202c;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}
.evento-box p {
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
  margin-bottom: 20px;
  font-family: 'Open Sans', sans-serif;
  text-align: center;
  flex-grow: 1;
}
.evento-button {
  background: linear-gradient(135deg, #0066cc, #0099ff);
  color: #fff;
  padding: 10px 24px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
  margin-top: auto;
  align-self: center;
}
.evento-button:hover {
  background: linear-gradient(135deg, #005bb5, #007ee5);
  transform: scale(1.05);
}

/* ============================================================
   SUMMER CAMP — sezioni contenuto di summer-camp.html
   ============================================================ */
.summer-camp-section {
  background: linear-gradient(to bottom, #fdfdfd, #f7f7f7);
  padding: 60px 20px;
}
.camp-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  border-radius: 16px;
  display: flex;
  align-items: stretch;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 0;
  border: 5px solid #f7941d;
}
.camp-img { flex: 1; overflow: hidden; }
.camp-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}
.camp-text {
  flex: 1;
  padding: 40px;
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}
.camp-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #f7941d;
}
.camp-text p { margin-bottom: 16px; }

@media (max-width: 768px) {
  .camp-wrapper { flex-direction: column; padding: 0; }
  .camp-img, .camp-text { width: 100%; }
  .camp-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
  }
  .camp-text {
    padding: 30px 24px !important;
    box-sizing: border-box;
    text-align: left;
  }
  .camp-text h2 {
    font-size: 1.5rem;
    text-align: left;
  }
}
@media (min-width: 769px) {
  .camp-wrapper.reverse { flex-direction: row-reverse; }
}
