/* =========================================================
   ACCADEMIA DI CHITARRA - RIEQUILIBRIO PARTE FINALE HOME
   Caricato dopo style.css per non alterare header/menu.
   ========================================================= */

/* AREA PERSONALE: contenuto centrato nella pagina, non incollato a sinistra */
.student-section{
  display:grid;
  grid-template-columns:minmax(520px, 690px) minmax(440px, 590px);
  justify-content:center;
  align-items:stretch;
  gap:48px;
  min-height:350px;
  padding:28px clamp(32px, 5vw, 100px);
  background:
    radial-gradient(circle at 80% 50%, rgba(16,82,158,.22), transparent 36%),
    #020d1d;
  overflow:hidden;
}

.student-photo{
  min-height:294px;
  border-radius:18px;
  overflow:hidden;
  position:relative;
  background:#07111e;
  box-shadow:0 20px 48px rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.08);
}

.student-photo:after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg, transparent 76%, rgba(2,13,29,.28) 100%);
}

.student-photo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center center;
  transform:scale(1.01);
}

.student-copy{
  align-self:center;
  width:100%;
  max-width:590px;
  padding:24px 22px 24px 4px;
  background:none;
}

.student-copy h2{
  font-size:clamp(32px, 2.25vw, 42px);
  line-height:1.03;
  margin-bottom:20px;
}

.student-copy li{
  font-size:14px;
  line-height:1.7;
  margin:7px 0;
}

.student-actions{
  margin-top:22px;
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}

/* CTA BIANCA: logo + testo come un unico gruppo centrato */
.journey-section{
  padding:26px 0 22px;
  background:#031328;
}

.journey-card{
  width:min(1220px, calc(100% - 56px));
  min-height:205px;
  margin:0 auto;
  display:grid;
  grid-template-columns:270px 1px minmax(440px, 560px);
  justify-content:center;
  align-items:center;
  column-gap:52px;
  padding:20px 44px;
  border-radius:20px;
}

.journey-logo-box{
  width:230px;
  height:170px;
  margin:0 auto;
  padding:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.journey-logo-box img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
  transform:none !important;
}

.journey-divider{
  width:1px;
  height:118px;
  background:#d5d9df;
}

.journey-copy{
  width:100%;
  max-width:560px;
  padding-left:0;
  justify-self:start;
}

.journey-copy h2{
  font-size:clamp(31px, 2vw, 38px);
  line-height:1.04;
  margin-bottom:17px;
}

.journey-button{
  width:min(100%, 410px);
  min-width:0;
}

/* FOOTER: gruppo complessivo centrato e distribuito su tutta la larghezza utile */
.site-footer{
  padding:20px 0;
}

.compact-footer{
  width:min(1220px, calc(100% - 56px));
  margin:0 auto;
  display:grid;
  grid-template-columns:150px minmax(260px, 1fr) auto;
  align-items:center;
  gap:48px;
  min-height:108px;
}

.footer-logo-link{
  justify-self:center;
}

.footer-logo-box{
  width:88px;
  height:88px;
}

.footer-copy{
  justify-self:start;
  font-size:13px;
  line-height:1.55;
}

.footer-links{
  justify-self:end;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:28px;
}

/* Notebook / schermi medi */
@media (max-width:1180px){
  .student-section{
    grid-template-columns:minmax(440px, 1.1fr) minmax(390px, .9fr);
    gap:30px;
    padding:26px 34px;
  }

  .journey-card{
    grid-template-columns:230px 1px minmax(390px, 1fr);
    column-gap:36px;
    padding:20px 32px;
  }

  .journey-logo-box{
    width:205px;
    height:158px;
  }

  .compact-footer{
    grid-template-columns:120px 1fr auto;
    gap:32px;
  }
}

/* Tablet */
@media (max-width:900px){
  .student-section{
    grid-template-columns:1fr;
    width:100%;
    gap:22px;
    padding:28px max(22px, 5vw) 34px;
  }

  .student-photo{
    width:min(720px, 100%);
    min-height:300px;
    margin:0 auto;
  }

  .student-copy{
    max-width:720px;
    margin:0 auto;
    padding:6px 4px;
    text-align:center;
  }

  .student-copy ul{
    display:inline-block;
    text-align:left;
  }

  .student-actions{
    justify-content:center;
  }

  .journey-card{
    grid-template-columns:1fr;
    row-gap:12px;
    padding:26px 24px 30px;
    text-align:center;
  }

  .journey-logo-box{
    width:220px;
    height:165px;
    margin:0 auto;
  }

  .journey-divider{
    display:none;
  }

  .journey-copy{
    justify-self:center;
    max-width:620px;
  }

  .journey-button{
    margin:0 auto;
  }

  .compact-footer{
    grid-template-columns:1fr;
    justify-items:center;
    text-align:center;
    gap:14px;
  }

  .footer-copy,
  .footer-links{
    justify-self:center;
  }

  .footer-links{
    justify-content:center;
  }
}

@media (max-width:560px){
  .student-section{
    padding:22px 16px 28px;
  }

  .student-photo{
    min-height:225px;
    border-radius:14px;
  }

  .student-copy h2{
    font-size:30px;
  }

  .journey-card,
  .compact-footer{
    width:calc(100% - 28px);
  }

  .journey-card{
    padding:22px 16px 26px;
  }

  .journey-logo-box{
    width:190px;
    height:150px;
  }

  .footer-links{
    flex-wrap:wrap;
    gap:14px;
  }

  .footer-links span{
    display:none;
  }
}
