/* =========================================================
   1. LAYOUT BASE
========================================================= */

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  color: #2b2b2b;
  background: #FEF9E7;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: -0.01em;
  color: var(--accent);
}

:root {
  --accent: #2f5d62;
  --bg-soft: #f4f6f5;
  --bg-white: #ffffff;
}

.percorso-text h2,
.percorso-text h3,
.libro-page h2,
.libro-page h3 {
  color: var(--accent);
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.container.narrow {
  max-width: 720px;
}

p {
  line-height: 1.7;
  color: #444;
}

.page p {
  margin-bottom: 18px;
}

.page ul {
  margin: 16px 0 20px;
  padding-left: 20px;
}

.page li {
  margin-bottom: 8px;
}

.page h2 {
  margin-top: 50px;
  margin-bottom: 16px;
  position: relative;
}

.page h2::before {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: #ccc;
  margin-bottom: 12px;
}

strong {
  font-weight: 600;
}

.page strong {
  display: inline-block;
  margin: 6px 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: 0.2s;
}

a:hover {
  border-bottom: 1px solid var(--accent);
}

.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #ddd, transparent);
  margin: 30px 0;
}

.section-cta {
  margin: 60px 0;
  padding: 40px 20px;
  text-align: center;
  background: var(--bg-white);
  border-radius: 12px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e9e9e9;
  z-index: 1000;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 0;
}

/* LOGO */
.logo img {
  height: 76px;
  display: block;
  margin: 0 auto 12px;
}

/* NAV */
.site-nav {
  display: flex;
  gap: 26px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  padding: 12px 0 14px;
  border-top: 1px solid #efefef;
}

.site-nav a {
  text-decoration: none;
  color: #444;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.site-nav a.active {
  color: var(--accent);
  font-weight: 600;
}

.nav-item {
  position: relative;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 14px 0;
  min-width: 260px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.2s ease;
  overflow: hidden;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-nav a,
.dropdown > a {
  display: inline-block;
  padding: 12px 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.dropdown-menu a {
transition: background 0.2s ease, padding-left 0.2s ease;
}

.dropdown-menu a:hover {
background: #f7f7f7;
padding-left: 24px;
}

.menu-toggle {
  display: none;
}

/* =========================
   MOBILE NAV
========================= */

@media (max-width: 768px) {

  .header-inner {
    position: relative;
  }

  /* HAMBURGER */
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;

    position: absolute;
    right: 20px;
    top: 25px;

    color: var(--accent);
    z-index: 3000;
  }

  /* NAV CHIUSA */
  .site-nav {
    display: none;

    flex-direction: column;
    align-items: flex-start;

    gap: 0;

    width: 100%;

    margin-top: 20px;
    padding: 20px;

    background: #fff;

    border-radius: 14px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }

  /* NAV APERTA */
  .site-nav.open {
    display: flex;
  }

  .site-nav a,
  .dropdown > a {
    width: 100%;
    padding: 14px 0;
    font-size: 1rem;
  }

  /* DROPDOWN */
  .dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;

    display: none;

    opacity: 1;
    visibility: visible;

    transform: none;

    box-shadow: none;

    border: none;

    padding-left: 15px;

    background: transparent;

    width: 100%;
  }

  /* CLICK MOBILE */
  .dropdown.open .dropdown-menu {
    display: flex;
    flex-direction: column;
  }

  .dropdown-menu a {
    padding: 10px 0;
    font-size: 0.95rem;
  }

}

/* HERO */

.hero-image {
  position: relative;
  background: url('/img/hero.webp') center center / cover no-repeat;
  color: #fff;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.30),
    rgba(0,0,0,0.45)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  font-size: 4rem;
  margin: 0 0 18px;
  color: #fff;
}

.hero-text {
  max-width: 760px;
  margin: 0 auto 30px;
  font-size: 1.12rem;
  color: rgba(255,255,255,0.92);
}

.hero .eyebrow {
  color: rgba(255,255,255,0.8);
  letter-spacing: 2px;
  font-size: 0.8rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: rgba(4, 4, 4, 0.78);
  margin-bottom: 14px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.2s ease;
}

.button:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  background: #24494d;
}

.button-secondary {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
}

.button-secondary:hover {
  background: rgba(255,255,255,0.18);
}

.button-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.button-outline:hover {
  background: var(--accent);
}

section {
  padding: 80px 0;
}

.home-intro,
.home-prova,
.home-cta,
.home-chi {
  padding: 80px 0;
  text-align: center;
}

.page h1,
.intro h2,
.servizi h2 {
  margin-top: 0;
}

.cards-base {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.card-base {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px;
  background: #fff;
}

.card-base a {
  text-decoration: none;
}

.card-summary {
  font-size: 0.95rem;
}

.card-summary p {
  margin-bottom: 14px;
}

.card-summary ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.card-summary li {
  margin-bottom: 6px;
}

.card-summary p:first-child {
  font-weight: 500;
}

.card-summary p:last-child {
  font-style: italic;
  opacity: 0.85;
}

.home-prova {
  background: #F9F7F2;
  padding: 100px 0;
  text-align: center;
}

.prova-image {
  margin-top: 30px;
  max-width: 540px;
}

.home-chi {
  padding: 100px 0;
  text-align: center;
}

.section-image {
  width: 100%;
  max-width: 500px;
  margin: 30px auto 0;
  display: block;
  border-radius: 14px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
}

.contact-form button {
  align-self: center;
}

/* =========================================================
   FOOTER — VERSIONE PULITA E ALLINEATA
========================================================= */

.site-footer {
margin-top: 80px;
padding: 60px 0 30px;
background: #ffffff;
border-top: 1px solid #e8e3d6;
color: #444;
box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
}

.footer-logo {
text-align: center;
margin-bottom: 40px;
}

.footer-logo img {
height: 80px;
}

.footer-columns {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 40px;
text-align: center;
}

/* COLONNA BASE */
.footer-col {
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  padding: 0 20px;
}

/* SEPARATORI VERTICALI */
.footer-col:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 0;
  width: 1px;
  height: 80%;
  background: linear-gradient(
    to bottom,
    transparent,
  #ddd,
    transparent
  );
}

/* CENTRO */
.footer-center {
  text-align: center;
}

/* TITOLI */

.footer-title {
font-weight: 600;
margin-bottom: 12px;
color: var(--accent);
}

/* LINK GENERICI */
.site-footer a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s ease;
}

.site-footer a:hover {
  color: #000;
}

/* COLONNA DESTRA */
.footer-links {
  text-align: center;
}

.footer-links a {
  display: block; /* torna block per allineamento verticale */
  margin: 0 auto 6px;
  margin-bottom: 6px;
  position: relative;
  width: fit-content; /* evita underline infinito */
  margin-left: auto; /* allinea a destra perfetto */
}

/* UNDERLINE*/
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: 0.25s;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-social {
margin-top: 12px;
}

.footer-social img {
width: 20px;
margin: 0 6px;
opacity: 0.7;
transition: 0.2s;
}

.footer-social img:hover {
opacity: 1;
transform: translateY(-2px);
}

/* BOTTOM */
.footer-bottom {
margin-top: 40px;
text-align: center;
font-size: 0.8rem;
color: #777;
}

.footer-bottom .credit a {
  color: var(--accent);
}

.footer-social img {
  filter: grayscale(100%);
}

.footer-social img:hover {
  filter: none;
}

/* MOBILE */
@media (max-width: 768px) {
  .footer-columns {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col {
    padding: 0;
  }

  .footer-col::after {
    display: none;
  }

  .footer-links {
    text-align: center;
  }

  .footer-links a {
    margin: 0 auto 10px;
  }
}

/* TORNA SU */

#toTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

#toTop.show {
  opacity: 1;
  pointer-events: auto;
}

/* =========================================================
   2a. HOME PAGE
========================================================= */

.home-intro {
  text-align: center;
}

.home-prova {
  background: #FEF9E7;
  padding: 90px 0;
  text-align: center;
}

.home-cta {
  text-align: center;
}

.home-chi {
  text-align: center;
  background: #FEF9E7;
  padding: 100px 0;
}

.section-heading {
  margin-bottom: 30px;
}

.section-divider {
  width: 60px;
  height: 1px;
  background: #ddd;
  margin: 40px auto;
}

.hero-text {
  font-size: 1.1rem;
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 3rem;
  }

  .cards-percorsi {
    grid-template-columns: 1fr;
  }

  .card-percorso img {
    height: 240px;
  }

  .logo img {
    height: 64px;
  }

  .site-nav {
    gap: 18px;
  }
}

/* =========================================================
   2. CHI SONO PAGINA
========================================================= */

.split-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  min-height: 70vh;
}

.split-hero .text {
  max-width: 600px;
}

.split-hero .text p {
  text-align: justify;
}

.split-hero h1 {
  font-size: 2.6rem;
  margin-bottom: 24px;
}

.split-hero .image img {
  width: 100%;
  border-radius: 16px;
}

.split-hero .text p:first-of-type {
  font-size: 1.2rem;
  color: #444;
}

blockquote {
  margin: 30px 0;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: #444;
}

.split-alt {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
  margin-top: 80px;
}

.split-alt .image img {
  width: 100%;
  border-radius: 16px;
}

.split-alt h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.split-alt .text p {
  text-align: justify;
}

.image-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.image-stack img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top center; /* 👈 QUESTO CAMBIA TUTTO */
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.04);
}

/* 👇 uniformità visiva */
.image-stack img:first-child {
  height: 380px;
}

.image-frame {
  background: #f4f6f6;
  padding: 16px;
  border-radius: 20px;
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* =========================================
   RESPONSIVE - CHI SONO
========================================= */

@media (max-width: 768px) {

  .split-hero,
  .split-alt {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: auto;
  }

  .split-hero .text,
  .split-alt .text {
    max-width: 100%;
  }

  .split-hero h1 {
    font-size: 2.2rem;
    line-height: 1.15;
  }

  .split-alt h2 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .split-hero .text p,
  .split-alt .text p {
    text-align: left;
    font-size: 1.05rem;
    line-height: 1.9;
  }

  .split-hero .text p:first-of-type {
    font-size: 1.1rem;
  }

  .split-hero .image img,
  .split-alt .image img,
  .image-stack img {
    height: auto;
    max-height: none;
    object-fit: cover;
    object-position: center;
  }

  .image-stack {
    gap: 14px;
  }

  .image-frame {
    padding: 10px;
    border-radius: 16px;
  }

  blockquote {
    margin: 24px 0;
    padding-left: 14px;
    font-size: 1rem;
    line-height: 1.8;
  }

}

/* =========================================================
   3. PERCORSI PAGINA
========================================================= */

.cards-percorsi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.card-percorso {
  border: 1px solid #eee;
  padding: 28px;
  border-radius: 16px;
  background: #fff;
  transition: 0.25s ease;

  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-percorso img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 18px;
}

.card-percorso:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.card-percorso h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.card-percorso h2 {
  margin-top: 0;
  font-size: 1.6rem;
}

.card-percorso p,
.card-percorso ul {
  color: #555;
  margin-bottom: 16px;
}

.card-percorso a {
  display: inline-block;
  margin-top: auto;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}

.card-percorso a:hover {
  text-decoration: underline;
}

.percorsi-intro {
  padding: 60px 0 20px;
}

.percorsi-intro p {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.percorsi-intro2 hr {
  border: none;
  height: 1px;
  background: #ddd;
  margin: 40px auto;
  width: 80px; /* corto ed elegante */
}

.percorsi-intro2 h2::before,
.percorsi-intro2 h3::before {
  display: none;
  content: none;
}

.percorsi-intro2 h2 {
  color: var(--accent);
  margin-top: 40px;
}

.percorsi-intro2 p {
  margin-bottom: 16px;
}

.percorsi-intro2 h2 + p {
  margin-top: 10px;
}

.hero-small .hero-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero-small h1 {
  text-align: center;
  margin-top: 30px;
}

.hero-small p {
  text-align: center;
  max-width: 600px;
  margin: 10px auto 0;
}

.percorsi-intro2 {
  margin-top: 44px;
  margin-bottom: 56px;
  text-align: center;
}

.percorsi-intro2 h1 {
  margin-bottom: 22px;
  font-size: 3rem;
}

.percorsi-intro2 .intro p {
  max-width: 720px;
  margin: 0 auto 18px;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #3f3f3f;
}

.percorsi-intro2 .intro h2 {
  margin-top: 44px;
  margin-bottom: 16px;
  font-size: 2rem;
}

.percorsi-intro2 .intro hr {
  width: 60px;
  margin: 30px auto;
  border: 0;
  border-top: 1px solid #d8d8d8;
}

.hero-small2 {
  padding-top: 40px;
}

.hero-small2 img {
  width: 100%;
  max-width: 760px;
  height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.cta-final {
  margin-top: 80px;
  text-align: center;
}

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

/* =========================================================
   4. PAGINE PERCORSI - TUTTE
========================================================= */

.hero-small {
  padding: 80px 0 40px;
  text-align: center;
}

.hero-small h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero-small p {
  color: #666;
}

.page p {
  max-width: 600px;
  margin-bottom: 20px;
}

.page blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 30px 0;
  font-style: italic;
  color: #444;
}

.percorso-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
  margin-top: 40px;
}

.percorso-text {
  max-width: 620px;
}

.percorso-text h1 {
  font-size: 2.6rem;
  margin-bottom: 24px;
}

.percorso-text h3 {
  margin-top: 40px;
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #2f5d62;
}

.percorso-text .content p {
  text-align: justify;
  line-height: 1.8;
  margin-bottom: 18px;
  color: #444;
}

.percorso-text ul {
  margin: 16px 0;
  padding-left: 20px;
}

.percorso-text li {
  margin-bottom: 8px;
}

.percorso-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.percorso-images img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.percorso-images img:first-child {
  transform: translateY(-10px);
}

.percorso-images img:last-child {
  transform: translateY(10px);
}

.percorso-images img:nth-child(1) {
  height: 260px;
}

.percorso-images img:nth-child(2) {
  height: 380px; /* 👈 protagonista */
}

.percorso-images img:nth-child(3) {
  height: 260px;
}

.percorso-images img:nth-child(4) {
  height: 380px;
}

.percorso-images img:nth-child(5) {
  height: 380px;
}

.percorso-cta {
  margin-top: 80px;
  padding: 60px 0;
  background: #FEF9E7;
  text-align: center;
}

.percorso-cta h2 {
  margin-bottom: 12px;
}

.percorso-cta p {
  margin-bottom: 20px;
  color: #555;
}

.split-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  margin: 80px 0;
}

.split-section img {
  width: 100%;
  border-radius: 16px;
  height: 260px;
  object-fit: cover;
}

.split-section:nth-child(even) {
  grid-template-columns: 0.9fr 1.1fr;
}

@media (max-width: 768px) {

  .page,
  .percorso-layout,
  .percorso-text,
  .split-section,
  .hero-small,
  .hero-small2,
  .percorsi-intro2 {
    padding-left: 18px;
    padding-right: 18px;
    box-sizing: border-box;
  }

}

/* =========================================
   RESPONSIVE - PERCORSI
========================================= */

@media (max-width: 768px) {

  .hero-small {
    padding: 50px 0 20px;
  }

  .hero-small h1 {
    font-size: 2rem;
    line-height: 1.15;
  }

  .hero-small p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .percorso-layout,
  .split-section {
    grid-template-columns: 1fr;
    gap: 36px;
    margin: 50px 0;
  }

  .percorso-text {
    max-width: 100%;
  }

  .percorso-text h1 {
    font-size: 2rem;
    line-height: 1.15;
  }

  .percorso-text h3 {
    font-size: 1.2rem;
    margin-top: 28px;
  }

  .percorso-text .content p,
  .page p {
    text-align: left;
    line-height: 1.9;
    font-size: 1.05rem;
    max-width: 100%;
  }

  .percorso-images {
    gap: 16px;
  }

  .percorso-images img,
  .percorso-images img:nth-child(1),
  .percorso-images img:nth-child(2),
  .percorso-images img:nth-child(3),
  .percorso-images img:nth-child(4),
  .percorso-images img:nth-child(5),
  .split-section img {
    height: auto;
    max-height: none;
    transform: none;
    object-fit: cover;
    object-position: center;
  }

  .percorso-cta {
    margin-top: 50px;
    padding: 40px 20px;
  }

  .percorso-cta h2 {
    font-size: 1.7rem;
    line-height: 1.2;
  }

  .percorso-cta p {
    line-height: 1.8;
  }

  blockquote {
    line-height: 1.8;
    font-size: 1rem;
  }

}

/* =========================================================
   PERCORSO AVANZATO
========================================================= */

.percorso3 {
  padding: 60px 0 80px;
}

.percorso3 .intro {
  text-align: center;
  margin-bottom: 40px;
}

.percorso3 .intro h1 {
  margin-bottom: 20px;
}

.percorso3 .intro p {
  max-width: 720px;
  margin: 0 auto 16px;
  line-height: 1.8;
  color: #444;
}

.percorso-card-image {
  max-width: 760px;
  margin: 40px auto 60px;
}

.percorso-card-image.small {
  max-width: 680px;
}

.percorso-card-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  display: block;
}

.highlight {
  margin-bottom: 44px;
}

.highlight h2 {
  margin-bottom: 12px;
  color: var(--accent);
}

.highlight p {
  line-height: 1.8;
  color: #444;
}

.highlight ul {
  margin: 16px 0;
  padding-left: 20px;
}

.highlight li {
  margin-bottom: 8px;
}

/* BOX ANNI */
.anni-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 30px 0 10px;
}

.anno-box {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.anno-box h3 {
  margin-top: 0;
  margin-bottom: 14px;
  color: var(--accent);
}

.anno-box ul {
  margin: 0;
  padding-left: 18px;
}

.percorso3 blockquote {
  margin: 50px 0 20px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: #444;
}

.percorso-cta {
  margin-top: 80px;
  padding: 80px 20px;
  text-align: center;
  background: #f4f6f6;
}

.percorso-cta h2 {
  margin-bottom: 10px;
}

.percorso-cta p {
  margin-bottom: 20px;
  color: #555;
}

.percorso-prova .intro {
  text-align: center;
  margin-bottom: 40px;
}

.percorso-prova .intro p {
  max-width: 640px;
  margin: 0 auto 16px;
}

@media (max-width: 900px) {
  .anni-box {
    grid-template-columns: 1fr;
  }

  .percorso-card-image img {
    height: 260px;
  }
}

@media (max-width: 768px) {

  .percorso3 {
    padding: 40px 0 60px;
  }

  .percorso3 .intro h1 {
    font-size: 2rem;
    line-height: 1.15;
  }

  .percorso3 .intro p,
  .highlight p,
  .percorso-cta p {
    font-size: 1.05rem;
    line-height: 1.9;
    text-align: left;
  }

  .percorso-card-image {
    margin: 30px auto 40px;
  }

  .percorso-card-image img {
    height: auto;
    max-height: none;
    object-position: center;
  }

  .highlight {
    margin-bottom: 34px;
  }

  .highlight h2 {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .anno-box {
    padding: 20px;
  }

  .percorso3 blockquote {
    line-height: 1.8;
    font-size: 1rem;
  }

  .percorso-cta {
    margin-top: 50px;
    padding: 50px 20px;
  }

}
/* =========================================================
   5. LIBRI PAGINA
========================================================= */

.page h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.libro-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}

.libro-cover img {
  width: 100%;
  border-radius: 16px;
}

.libro-buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.button.secondary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.libro-estratto blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  font-style: italic;
  color: #444;
}

.libro-benefici {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.libro-cta {
  margin-top: 80px;
  padding: 60px 0;
  background: #FEF9E7;
  text-align: center;
}

.libro-hero h2,
.libro-hero h3,
.libro-estratto h2,
.libro-estratto h3,
.libro-benefici h2,
.libro-benefici h3,
.libro-cta h2,
.libro-cta h3 {
  color: var(--accent);
}

@media (max-width: 900px) {
  .libro-hero {
    grid-template-columns: 1fr;
  }

  .libro-benefici {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   6. CONTATTI PAGINA
========================================================= */

.contatti-page .section {
  padding: 20px 0;
  margin: 0;
}

.contatti-hero {
  max-width: 1100px;
  margin: 40px auto 30px;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  margin-bottom: 5px;
}

.contatti-hero img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.contatti-intro {
  text-align: center;
}

.contatti-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.info-box h3 {
  color: var(--accent);
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contatti-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #666;
}

.hero-caption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #666;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contatti-info,
.contatti-mappa,
.contatti-start,
.contatti-form {
  margin-top: 0;
}

.contatti-start {
  text-align: center;
}

.contatti-start .button {
  display: inline-block;
  margin-top: 12px;
}

.contatti-mappa {
  text-align: center;
}

.contatti-mappa iframe {
  display: block;
  margin: 0 auto;
}

.percorso-cta {
  margin-top: 50px;
  padding: 50px 0;
}

@media (max-width: 900px) {
  .contatti-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .contatti-page .section {
    padding-left: 18px;
    padding-right: 18px;
    box-sizing: border-box;
  }

  .contatti-hero {
    margin-top: 24px;
    border-radius: 14px;
  }

  .contatti-hero img {
    height: 180px;
  }

  .contatti-info {
    gap: 24px;
  }

  .contatti-mappa iframe {
    width: 100%;
    height: 260px;
    border-radius: 14px;
  }

  .hero-caption,
  .contatti-note {
    line-height: 1.7;
  }

}

/* =========================================================
   6. EVENTI PAGINA
========================================================= */

.eventi-page {
  padding: 60px 0;
}

.eventi-page h1 {
  text-align: center;
  margin-bottom: 20px;
}

.eventi-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 30px;
}

.eventi-intro p {
  line-height: 1.8;
}

.eventi-image img {
  display: block;
  width: 100%;
  height: auto;
  object-position: center;
  border-radius: 16px;
  margin-bottom: 30px;
}

.eventi-cta {
  text-align: center;
  margin-bottom: 30px;
}

@media (max-width: 768px) {

  .eventi-page {
    padding: 40px 18px 50px;
    box-sizing: border-box;
  }

}
