/* ============================================================
   ONE95 MX SCHOOL – JUNIOR — pages.css
   Stili condivisi pagine interne. Stile v1 clean + accenti v2
============================================================ */

section { padding: 80px 5vw; }

/* Page hero — sfondo rosso (colore ufficiale) con halftone + accent scura in alto */
.page-hero {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 5vw 60px;
  background: var(--red);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,.18) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ink);
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
}
.page-hero .page-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 90px);
  letter-spacing: .03em;
  line-height: .95;
  color: var(--white);
  transform: skewX(-2deg);
  display: inline-block;
  margin-bottom: 14px;
}
/* Sfondo rosso: l'accent word usa nero per contrasto forte */
.page-hero .page-title .red   { color: var(--ink); }
.page-hero .page-title .blue  { color: var(--ink); }
.page-hero .page-title .green { color: var(--ink); }
.page-hero .page-title .pink  { color: var(--ink); }
.page-hero .page-title .outline {
  -webkit-text-stroke: 2px rgba(255,255,255,.4);
  color: transparent;
}

.page-hero .page-sub {
  font-size: 17px;
  font-weight: 700;
  color: rgba(255,255,255,.82);
  line-height: 1.6;
  max-width: 640px;
}
.page-hero .page-sub strong { color: var(--white); font-weight: 900; }
.page-hero .breadcrumb {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .2em;
  color: rgba(255,255,255,.65);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-hero .breadcrumb a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.page-hero .breadcrumb a:hover { color: var(--white); text-decoration-color: var(--white); }
.page-hero .breadcrumb span { opacity: .75; }

/* Info band (tessere info) */
.info-band {
  background: var(--gray-section);
  padding: 56px 5vw;
}
.info-band .info-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.info-tile {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.08);
  border-left: 3px solid var(--red);
  border-radius: 10px;
  padding: 22px 20px;
  transition: transform .2s, box-shadow .2s;
}
.info-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.info-tile .info-icon {
  font-size: 26px;
  margin-bottom: 10px;
  line-height: 1;
}
.info-tile h4 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .06em;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1;
}
.info-tile p {
  font-size: 13px;
  font-weight: 700;
  color: rgba(0,0,0,.58);
  line-height: 1.55;
}

/* Content block generic */
.content-block { background: var(--white); }
.content-block h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: .03em;
  line-height: 1;
  color: var(--ink);
  transform: skewX(-2deg);
  display: inline-block;
  margin-bottom: 18px;
}
.content-block h2 .red { color: var(--red); }
.content-block p {
  font-size: 16px;
  font-weight: 700;
  color: rgba(0,0,0,.7);
  line-height: 1.7;
}
.content-block p + p { margin-top: 12px; }

/* CTA band (striscia rossa) */
.cta-band {
  background: var(--red);
  color: var(--white);
  padding: 70px 5vw;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,.15) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  pointer-events: none;
}
.cta-band-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-band h3 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: .03em;
  line-height: 1;
  color: var(--white);
  max-width: 640px;
}
.cta-band-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Card grid generica */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.08);
  border-top: 3px solid var(--red);
  border-radius: 12px;
  padding: 26px 22px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.card-icon.bg-red   { background: rgba(232,33,26,.12); color: var(--red); }
.card-icon.bg-blue  { background: rgba(26,107,255,.12); color: var(--blue); }
.card-icon.bg-green { background: rgba(0,200,83,.12);  color: var(--green-dark); }
.card-icon.bg-pink  { background: rgba(255,79,163,.12); color: var(--pink-dark); }
.card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .05em;
  color: var(--ink);
  line-height: 1;
}
.card-body {
  font-size: 14px;
  font-weight: 700;
  color: rgba(0,0,0,.62);
  line-height: 1.6;
}
.card-body ul {
  list-style: none;
  margin-top: 10px;
}
.card-body ul li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}
.card-body ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

/* Banner PRIMA PROVA GRATUITA (riutilizzabile) */
.free-trial-banner {
  display: flex;
  align-items: center;
  gap: 26px;
  background: var(--red);
  color: var(--white);
  border-radius: 14px;
  padding: 26px 30px;
  box-shadow: var(--shadow-red-glow);
  position: relative;
  overflow: hidden;
}
.free-trial-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.14) 1.3px, transparent 1.3px);
  background-size: 14px 14px;
  pointer-events: none;
}
.free-trial-bounce {
  flex-shrink: 0;
  width: 96px; height: 96px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  font-family: var(--font-display);
  color: var(--red);
  line-height: 1;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  animation: bounce 1.5s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
.free-trial-bounce .big {
  font-size: 30px;
  letter-spacing: .02em;
}
.free-trial-bounce .sm {
  font-size: 11px;
  letter-spacing: .18em;
  margin-top: 4px;
  color: rgba(0,0,0,.55);
}
.free-trial-content { position: relative; z-index: 1; flex: 1; min-width: 0; }
.free-trial-content h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  letter-spacing: .04em;
  line-height: 1;
  margin-bottom: 6px;
}
.free-trial-content p {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
  color: rgba(255,255,255,.92);
  max-width: 540px;
}
.free-trial-cta { flex-shrink: 0; position: relative; z-index: 1; }
@media (max-width: 900px) {
  .free-trial-banner { flex-direction: column; text-align: center; padding: 26px; }
  .free-trial-content h3 { font-size: 26px; }
}

/* Placeholder immagine */
.img-placeholder {
  aspect-ratio: 4/3;
  background: var(--white);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(0,0,0,.3);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.img-placeholder::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--red);
}
.img-placeholder .ph-icon { font-size: 42px; opacity: .4; }
.img-placeholder .ph-label {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .12em;
}

/* Responsive */
@media (max-width: 900px) {
  .page-hero { padding: 120px 5vw 48px; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .info-band { padding: 40px 5vw; }
}
@media (max-width: 600px) {
  section { padding: 60px 5vw; }
  .page-hero { padding: 110px 5vw 40px; }
  .page-hero .page-title { font-size: 44px; }
}
