/* ==========================================================================
   Open Day Piamarta - stili della landing
   (estratti dalla pagina htmlpub https://lp.gruppofoppa.it/openday-new)
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

/* Palette dalla grafica Open Day Piamarta */
:root {
  --primary: #14695D;   /* verde Piamarta (sfondo grafica) */
  --secondary: #0177BE; /* blu "RIM 4 anni + 2" */
  --accent: #F9EB12;    /* giallo */
  --petrol: #034C68;    /* testo "OPEN DAY", testo su giallo/crema */
  --indigo: #364888;    /* "Amministrazione" */
  --steel: #296481;     /* "Marketing" */
  --cream: #EFF1BD;     /* pill "OPEN DAY" */
  --grey-green: #648C84; /* "5 anni" */
  --bg: #FFFFFF;
  --text: #1A1A1A;
  --sage: #A0C2CA;      /* azzurro "Finanza" */
  --teal: #14695D;
  --yellow: #F9EB12;
  --ink: #1A1A1A;
  --container: 1240px;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo {
  font-family: "Inter", sans-serif;
}

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

a {
  color: inherit;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--petrol);
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(3, 76, 104, .25);
}

.link-cta {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: 1rem;
}

.link-cta svg {
  transition: transform .2s ease;
}

.link-cta:hover svg {
  transform: translateX(4px);
}

header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--primary);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: 24px;
}

.logo {
  font-weight: 900;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.02em;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: auto;
  margin-right: clamp(20px, 3vw, 40px);
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: .9rem;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--primary);
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
}

#hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#hero .bg {
  position: absolute;
  inset: 0;
  background-image: url(../img/hero.jpg);
  background-size: cover;
  background-position: center 30%;
}

#hero .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 48, 42, .88) 0%, rgba(8, 48, 42, .72) 42%, rgba(20, 105, 93, .35) 100%);
}

#hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-eyebrow {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage);
  font-size: .8rem;
  margin: 0 0 22px;
}

#hero h1 {
  color: #fff;
  font-weight: 900;
  font-size: clamp(1.9rem, 9vw, 65px);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 0 0 26px;
  max-width: 17ch;
}

#hero h1 em {
  font-style: normal;
  color: var(--accent);
}

#hero .sub {
  color: rgba(255, 255, 255, .92);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 400;
  max-width: 56ch;
  margin: 0 0 36px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-note {
  color: rgba(255, 255, 255, .75);
  font-size: .9rem;
  font-weight: 600;
}

section {
  padding: clamp(70px, 9vw, 130px) 0;
}

.eyebrow {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--primary);
  font-size: .78rem;
  margin: 0 0 16px;
}

h2.sec {
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.05;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  margin: 0 0 .5em;
}

#intro-student-center .grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}

.photo-frame {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .12);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#intro-student-center .photo-frame {
  aspect-ratio: 4/3;
}

#intro-student-center .sub,
#quinquennale .sub,
#quadriennale .sub,
#visit-contact .sub {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  margin: 0 0 1.2em;
}

#intro-student-center p.body {
  font-size: 1.1rem;
  color: #333;
  max-width: 58ch;
}

@media (max-width: 800px) {
  #intro-student-center .grid {
    grid-template-columns: 1fr;
  }
}

#two-tracks {
  background: var(--ink);
  color: #fff;
  padding: 0;
}

#two-tracks .halves {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

#two-tracks .half {
  padding: clamp(60px, 8vw, 110px) clamp(28px, 5vw, 70px);
}

#two-tracks .half:first-child {
  border-right: 1px solid rgba(255, 255, 255, .14);
}

#two-tracks .tnum {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 6vw, 5rem);
  color: rgba(255, 255, 255, .12);
  line-height: 1;
  margin-bottom: .2em;
}

#two-tracks h3 {
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.1;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  margin: 0 0 .6em;
  text-transform: uppercase;
}

#two-tracks p {
  color: rgba(255, 255, 255, .72);
  max-width: 38ch;
  margin: 0 0 1.6em;
}

#two-tracks .link-cta {
  color: #4da3ff;
}

@media (max-width: 700px) {
  #two-tracks .halves {
    grid-template-columns: 1fr;
  }
  #two-tracks .half:first-child {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
  }
}

#build-your-path .grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

#build-your-path .copycol p {
  color: #333;
  margin: 0 0 1.3em;
  max-width: 48ch;
}

#build-your-path .photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  grid-template-rows: auto auto;
}

#build-your-path .photos .big {
  grid-column: 1/-1;
  aspect-ratio: 16/9;
}

#build-your-path .photos .small {
  aspect-ratio: 1/1;
}

.facts {
  margin-top: 22px;
  border-left: 3px solid var(--accent);
  padding: 14px 0 14px 22px;
  font-size: .98rem;
  color: #444;
}

.facts strong {
  color: var(--ink);
}

@media (max-width: 820px) {
  #build-your-path .grid {
    grid-template-columns: 1fr;
  }
}

#build-your-path .byp-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

#build-your-path .byp-copy .copycol p {
  color: #333;
  margin: 0 0 1.3em;
  max-width: none;
}

@media (max-width: 820px) {
  #build-your-path .byp-head {
    grid-template-columns: 1fr;
  }
}

#open-day-invite {
  background: var(--sage);
  color: #123;
}

#open-day-invite .grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

#open-day-invite h2 {
  color: #123;
}

#open-day-invite p {
  color: #1b332f;
  max-width: 46ch;
  font-size: 1.1rem;
}

#open-day-invite .photo-frame {
  aspect-ratio: 4/3;
}

@media (max-width: 800px) {
  #open-day-invite .grid {
    grid-template-columns: 1fr;
  }
}

#experiences {
  text-align: center;
}

#experiences h2 {
  max-width: 20ch;
  margin-inline: auto;
}

#experiences .imgs {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  margin-top: clamp(40px, 5vw, 60px);
  text-align: left;
}

#experiences .imgs figure {
  margin: 0;
}

#experiences .imgs .photo-frame {
  aspect-ratio: 4/3;
}

#experiences figcaption {
  margin-top: 14px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
}

@media (max-width: 700px) {
  #experiences .imgs {
    grid-template-columns: 1fr;
  }
}

/* Quadriennale: prima foto grande a sinistra, le altre due impilate a destra */
#quadriennale .imgs {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: clamp(18px, 3vw, 36px);
  margin: clamp(40px, 5vw, 60px) 0 clamp(40px, 5vw, 56px);
}

#quadriennale .imgs .photo-frame:first-child {
  grid-row: 1 / span 2;
  aspect-ratio: 4/3;
}

/* le foto piccole riempiono la riga senza imporre la propria altezza */
#quadriennale .imgs .photo-frame:not(:first-child) img {
  position: absolute;
  inset: 0;
}

@media (max-width: 700px) {
  /* mobile: foto grande sopra, le due piccole affiancate sotto */
  #quadriennale .imgs {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  #quadriennale .imgs .photo-frame:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  #quadriennale .imgs .photo-frame:not(:first-child) {
    aspect-ratio: 1/1;
  }
}

#quinquennale-detail {
  background: var(--sage);
}

#quinquennale .grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

#quinquennale-detail h2 {
  color: #123;
}

#quinquennale-detail .sub {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  margin: 0 0 1.2em;
}

#quinquennale-detail p {
  color: #1b332f;
  max-width: 54ch;
  margin: 0 0 1.1em;
}

#quinquennale-detail ul {
  color: #1b332f;
  max-width: 52ch;
  padding-left: 1.1em;
  margin: 0 0 1.5em;
}

#quinquennale-detail li {
  margin-bottom: .4em;
}

#quinquennale .photo-frame {
  aspect-ratio: 4/3;
}

#quinquennale .q5-photos {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

#quinquennale .q5-photos .photo-frame + .photo-frame {
  aspect-ratio: 4/5;
}

@media (max-width: 800px) {
  #quinquennale .q5-photos .photo-frame + .photo-frame {
    aspect-ratio: 4/3;
  }
}

@media (max-width: 800px) {
  #quinquennale .grid {
    grid-template-columns: 1fr;
  }
}

.yellow-banner {
  background: var(--yellow);
  text-align: center;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 5vw, 40px);
  border-radius: 6px;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.yellow-banner h2 {
  color: var(--ink);
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  max-width: 24ch;
  margin-inline: auto;
}

#quadriennale-4plus2 .sub {
  text-align: center;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  max-width: 48ch;
  margin: 0 auto clamp(40px, 5vw, 56px);
}

#quadriennale-4plus2 .imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 30px);
  margin-bottom: clamp(40px, 5vw, 56px);
}

#quadriennale-4plus2 .photo-frame {
  aspect-ratio: 3/2;
}

#quadriennale-4plus2 .narr {
  max-width: 70ch;
  margin-inline: auto;
  text-align: center;
}

#quadriennale-4plus2 .q4-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
  margin-bottom: clamp(40px, 5vw, 56px);
}

#quadriennale-4plus2 .q4-top .yellow-banner {
  margin-bottom: 0;
  text-align: left;
}

#quadriennale-4plus2 .q4-top .sub {
  margin: 18px 0 0;
  text-align: left;
  max-width: none;
}

#quadriennale-4plus2 .q4-top .imgs {
  margin-bottom: 0;
}

#quadriennale-4plus2 .narr p {
  color: #333;
  margin: 0 0 1.2em;
}

@media (max-width: 600px) {
  #quadriennale-4plus2 .imgs {
    grid-template-columns: 1fr;
  }
}

#what-is-4plus2 {
  background: var(--ink);
  color: #fff;
}

#what-is-4plus2 .head {
  text-align: center;
  max-width: 52ch;
  margin: 0 auto clamp(46px, 6vw, 70px);
}

#what-is-4plus2 h2 {
  color: #fff;
}

#what-is-4plus2 .sub {
  color: var(--sage);
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
}

#what-is-4plus2 .cols {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}

.compare-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  padding: clamp(28px, 4vw, 44px);
}

.compare-card .big {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: .9;
  color: var(--accent);
  margin-bottom: .15em;
  letter-spacing: -.03em;
}

.compare-card.plus .big {
  color: var(--sage);
}

.compare-card h3 {
  font-weight: 900;
  font-size: 1.2rem;
  margin: 0 0 .6em;
}

.compare-card p {
  color: rgba(255, 255, 255, .75);
  margin: 0;
}

#what-is-4plus2 .btnwrap {
  text-align: center;
  margin-top: clamp(40px, 5vw, 56px);
}

@media (max-width: 760px) {
  #what-is-4plus2 .cols {
    grid-template-columns: 1fr;
  }
}

#testimonials {
  background: var(--teal);
  color: #fff;
  text-align: center;
}

#testimonials h2 {
  color: #fff;
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: clamp(40px, 5vw, 60px);
}

#testimonials .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
  text-align: left;
}

.quote-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  padding: clamp(28px, 3vw, 38px);
  display: flex;
  flex-direction: column;
}

.quote-card .mark {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 3rem;
  line-height: .6;
  color: var(--accent);
  margin-bottom: .3em;
}

.quote-card blockquote {
  margin: 0 0 1.4em;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, .92);
  font-style: italic;
  line-height: 1.55;
}

.quote-card .who {
  margin-top: auto;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: .95rem;
}

.quote-card .who span {
  display: block;
  font-weight: 400;
  color: var(--sage);
  font-size: .82rem;
  font-style: normal;
}

.quote-card.feat {
  grid-column: span 1;
  background: rgba(255, 255, 255, .12);
}

@media (max-width: 860px) {
  #testimonials .cards {
    grid-template-columns: 1fr;
  }
}

#visit-contact .grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 70px);
  align-items: start;
}

#visit-contact h2 {
  color: var(--primary);
  margin-bottom: .3em;
}

#visit-contact .addr {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: var(--text);
  font-size: 1.2rem;
  margin: 0 0 1em;
}

#visit-contact p {
  color: #333;
  max-width: 46ch;
}

#visit-contact .photo-frame {
  aspect-ratio: 4/3;
  margin-top: 26px;
  max-width: 440px;
}

form {
  background: #f6f8fa;
  border: 1px solid #e3e8ed;
  border-radius: 10px;
  padding: clamp(26px, 3.5vw, 40px);
}

form h3 {
  font-weight: 900;
  margin: 0 0 1em;
  font-size: 1.3rem;
}

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 16px;
}

label {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 6px;
}

input, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cdd5dd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--text);
}

input:focus, select:focus {
  outline: 2px solid var(--primary);
  border-color: var(--primary);
}

form .btn {
  width: 100%;
  margin-top: 6px;
}

@media (max-width: 820px) {
  #visit-contact .grid {
    grid-template-columns: 1fr;
  }
  .frow {
    grid-template-columns: 1fr;
  }
}

footer.site {
  background: var(--sage);
  padding: clamp(40px, 5vw, 60px) 0;
}

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

footer.site .brand {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--petrol);
}

footer.site p {
  margin: 0;
  color: var(--petrol);
  font-size: .9rem;
}

footer.site a {
  color: var(--petrol);
  text-decoration: underline;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-on .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
}

@media print {
  .js-on .reveal {
    opacity: 1;
    transform: none;
  }
}

.js-on .reveal.in {
  opacity: 1;
  transform: none;
}

.after-diploma-text {
  max-width: 900px;
  margin: 0 0 36px;
}

.after-diploma-text p {
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Regole aggiunte dal builder htmlpub
   -------------------------------------------------------------------------- */

/* Header sticky: overflow-x "clip" invece di "hidden" su html/body,
   altrimenti position: sticky non funziona */
@supports (overflow: clip) {
  html, body {
    overflow-x: clip;
  }
}

/* Hover sulla card "Percorso Quinquennale" */
.half--hover:hover, .half--hover:active {
  box-shadow: 2px 4px 8px 0px rgba(62, 87, 143, 0.25) !important;
}

/* --------------------------------------------------------------------------
   Correzioni layout (verificate a 390px)
   -------------------------------------------------------------------------- */

/* Le ancore (#form e sezioni) non finiscono sotto l'header sticky */
#form,
main section[id] {
  scroll-margin-top: 110px;
}

/* "E dopo il diploma?" era attaccato alle card 4 / +2 */
#what-is-4plus2 .cols + h2.sec {
  margin-top: clamp(48px, 6vw, 72px);
}

@media (max-width: 700px) {
  /* Header: margini laterali e pulsante su una riga */
  header.site .nav-row {
    padding: 8px 20px 8px 12px;
    gap: 12px;
  }

  header.site .btn {
    padding: 10px 14px;
    font-size: .8rem;
    white-space: nowrap;
  }

  /* Card percorsi impilate: meno spazio vuoto (l'h3 ha già margin-top inline)
     e separatore tra le due (sulla prima il bordo è disattivato inline) */
  #two-tracks .half {
    padding: 0 24px 44px;
  }

  #two-tracks .half + .half {
    border-top: 1px solid rgba(255, 255, 255, .25);
  }

  /* Area di tocco minima per i link "Scopri..." */
  .link-cta {
    min-height: 44px;
  }
}

/* --------------------------------------------------------------------------
   Thank you page (thank-you-openday-piamarta.html)
   -------------------------------------------------------------------------- */

#hero.ty-hero {
  min-height: 72vh;
}

#hero.ty-hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  max-width: 16ch;
}

.ty-hero .hero-eyebrow {
  color: var(--accent);
}

.ty-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--petrol);
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  box-shadow: 0 10px 24px rgba(3, 76, 104, .25);
}

.ty-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: 40px;
}

.ty-card {
  background: #fff;
  border-top: 4px solid var(--primary);
  border-radius: 6px;
  padding: 32px 28px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .08);
}

.ty-card h3 {
  font-weight: 900;
  font-size: 1.25rem;
  margin: 0 0 .5em;
}

.ty-card p {
  margin: 0 0 1em;
  color: #333;
  font-size: 1.05rem;
}

.ty-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .ty-cards {
    grid-template-columns: 1fr;
  }
}

#ty-back {
  background: var(--primary);
  color: #fff;
  text-align: center;
}

#ty-back p {
  max-width: 56ch;
  margin: 0 auto 28px;
}

/* Thank you page: card delle altre scuole del Gruppo Foppa */
.school-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: 40px;
}

.school-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .08);
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.school-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px rgba(0, 0, 0, .12);
}

.school-card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.school-card__img {
  aspect-ratio: 3/2;
  overflow: hidden;
}

.school-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.school-card:hover .school-card__img img {
  transform: scale(1.04);
}

.school-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px;
}

.school-card h3 {
  font-weight: 900;
  font-size: 1.35rem;
  margin: 0 0 .5em;
}

.school-card p {
  margin: 0 0 1.2em;
  color: #333;
  font-size: 1.05rem;
}

.school-card .link-cta {
  margin-top: auto;
}

@media (max-width: 700px) {
  .school-cards {
    grid-template-columns: 1fr;
  }
}
