/* === HERO BASE (copiato da hero-corsi.css) === */
/* 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;
}

/* === Keyframes necessari (copiati) === */
@keyframes fadeInUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow: 0 0 8px rgba(255,255,255,0.4);
  }
  50% {
    text-shadow: 0 0 16px rgba(255,255,255,0.8);
  }
}

/* === BLOG CSS ORIGINALE === */
/* ===========================
   BLOG — STILI PRINCIPALI
=========================== */

/* Accessibilità: titolo nascosto ma leggibile dai lettori di schermo */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Wrapper */
.blog-wrap {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Griglia articoli */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Card */
.blog-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

/* Thumb + segnaposto */
.blog-card .thumb {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  background: #f2f4f7;
  overflow: hidden;
  text-decoration: none;
}

.blog-card .thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;         /* riempi il riquadro: niente bande */
  object-position: 50% 50%;  /* “alza” l’inquadratura: evita di tagliare i volti */
}

/* Varianti per regolare il punto di focus */
.blog-card[data-focus="top"]    .thumb img { object-position: 50% 15%; }
.blog-card[data-focus="bottom"] .thumb img { object-position: 50% 85%; }
.blog-card[data-focus="left"]   .thumb img { object-position: 15% 50%; }
.blog-card[data-focus="right"]  .thumb img { object-position: 85% 50%; }

.blog-card .thumb .ph-img {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    45deg,
    #e9eef5, #e9eef5 10px,
    #dde4ee 10px, #dde4ee 20px
  );
  filter: saturate(.9);
}

/* Badge categoria */
.blog-card .badge {
  position: absolute;
  left: 10px; bottom: 10px;
  background: #1a252f;
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 999px;
}

/* Testo card */
.blog-card .card-body { padding: 14px 14px 16px; }
.blog-card .title { font-size: 1.05rem; margin: 0 0 6px; line-height: 1.25; }
.blog-card .title a { color: #1a252f; text-decoration: none; }
.blog-card .title a:hover { text-decoration: underline; }
.blog-card .excerpt { color: #4b5563; font-size: 0.92rem; line-height: 1.45; margin: 0 0 10px; }
.blog-card .meta { font-size: 0.8rem; color: #6b7280; }

/* Azioni */
.blog-actions { text-align: center; margin-top: 22px; }
.btn-loadmore {
  display: inline-block;
  border: 1px solid #d6d9de;
  background: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #1a252f;
  text-decoration: none;
  cursor: pointer;
}
.btn-loadmore:hover { background: #f8fafc; }

/* Stato "nascosto" per card extra (usato da blog.js) */
.blog-card.is-hidden { display: none; }
/* Stato "disabilitato" per il bottone */
.btn-loadmore.is-disabled { opacity: .6; pointer-events: none; }

/* ===========================
   SEZIONE CONDIVISIONE — SVG inline
=========================== */
.share-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.share-row .share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f3f5;
  border: 1px solid #e5e7eb;
  color: #344054;              /* gli SVG ereditano questo colore */
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .06s ease-in;
  cursor: pointer;             /* vale anche per il bottone "copia link" */
}

.share-row .share-btn:hover {
  background: #f9b233;
  border-color: #f9b233;
  color: #fff;
}

.share-row .share-btn:active { transform: translateY(1px); }

/* Focus visibile da tastiera */
.share-row .share-btn:focus-visible {
  outline: 2px solid #1a252f;
  outline-offset: 2px;
}

/* Dimensione SVG */
.share-row .share-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px)  {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ========================================
   HERO - Blog (clone stile IELTS, colore nuovo)
======================================== */

.hero.hero-blog {
  background-color: #244C9A; /* blu oltremare intenso */
  color: #ffffff;
}

.hero.hero-blog h1,
.hero.hero-blog p {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero.hero-blog h1 span {
  font-weight: 800;
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.6),
    0 0 20px rgba(255, 255, 255, 0.9);
}

.hero.hero-blog h1 {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.hero.hero-blog .hero-btn {
  background-color: #ffffff;
  color: #244C9A;
}

.hero.hero-blog .hero-btn:hover {
  background-color: #f3f3f3;
}

/* Rimuove immagine di sfondo solo per la hero del blog/articoli */
.hero-blog {
  background-image: none !important;
  background-color: var(--colore-hero-sfondo, #f5f5f5); /* colore di fallback */
}


/* === Alias di compatibilità: applica lo stile blog se l'HTML usa ancora .hero-ielts === */
.hero.hero-ielts {
  background-image: none !important;
  background-color: #244C9A;
  color: #ffffff;
}
.hero.hero-ielts h1,
.hero.hero-ielts p {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.hero.hero-ielts h1 {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}
.hero.hero-ielts .hero-btn {
  background-color: #ffffff;
  color: #244C9A;
}
.hero.hero-ielts .hero-btn:hover {
  background-color: #f3f3f3;
}
