/* ==========================================================================
   Feature HOME — templates/pages/home.php (Home 1 Finsta con la palette Noesis) + C18 minimale.
   Le sezioni riusano le classi del tema (.hero, .about-us, .our-services, .why-choose-us, .our-faqs,
   .section-title, .bg-section, .dark-section) e aggiungono le regole necessarie qui.
   ========================================================================== */

/* Etichetta di sezione: l'asterisco del tema è in Font Awesome (non caricato) → icona SVG */
.section-title .section-sub-title { font-family: var(--default-font); padding: 10px 18px 10px 40px; background: var(--bg-color); color: var(--primary-color); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; font-weight: 700; line-height: 1; }
.section-title .section-sub-title::before { content: ''; font-family: inherit; width: 14px; height: 14px; left: 16px; background: currentColor; -webkit-mask: url('../../img/icon-asterisk.svg') center / contain no-repeat; mask: url('../../img/icon-asterisk.svg') center / contain no-repeat; }
.bg-section .section-title .section-sub-title { background: #fff; }
.dark-section .section-title .section-sub-title { background: rgba(255, 255, 255, .12); color: #fff; }
.section-title-center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-title-center p { margin-left: auto; margin-right: auto; }
.section-row { margin-bottom: clamp(28px, 4vw, 48px); }

/* Link a pagine non ancora pubblicate (SafeLinks): resta il testo */
.link-missing { text-decoration: none; }

/* ---------- C02 · Hero home ---------- */
/* Hero a tutta altezza come la Home 1 del tema: immagine di sfondo, contenuto ancorato in basso */
.hero.hero-home { height: calc(100vh - 30px); min-height: 850px; padding: 200px 0 90px; margin: 15px 15px 0; border-radius: 20px; align-content: end; background-image: var(--hero-bg); background-position: center center; background-repeat: no-repeat; background-size: cover; }

.hero.hero-home::before { background: linear-gradient(180deg, rgba(10, 42, 67, .55) 0%, rgba(10, 42, 67, .35) 45%, rgba(10, 42, 67, .88) 100%); }
.hero-home .section-title { margin-bottom: 28px; }
.hero-home .section-title .section-sub-title { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(10px); }
.hero-home h1 { color: #fff; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.1; max-width: 22ch; text-wrap: balance; }
.hero-home .section-title p { color: rgba(255, 255, 255, .92); font-size: clamp(16px, 1.4vw, 19px); max-width: 62ch; margin-top: 18px; }
.hero-home__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-home__actions .btn-default { min-height: 48px; }
.btn-default.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8); }
.btn-default.btn-outline-light:hover, .btn-default.btn-outline-light:focus-visible { background: #fff; color: var(--primary-color); }
.hero-home .hero-support-box { max-width: 340px; margin-left: auto; padding: 28px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(10, 42, 67, .35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 20px; color: #fff; }
.hero-home .hero-support-box .icon-box { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-light); color: var(--primary-color); display: grid; place-items: center; }
.hero-home .hero-support-box-content { margin-top: 18px; }
.hero-support-box__title { font-family: var(--accent-font); font-size: 22px; color: #fff; margin: 0; }
.hero-home .hero-support-box-content ul { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.hero-home .hero-support-box-content ul li { font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, .85); margin-bottom: 8px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hero-home .hero-support-box-content ul li a { color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; min-height: 28px; display: inline-flex; align-items: center; }
.hero-home .hero-support-box-content ul li a:hover { color: var(--accent-light); text-decoration: underline; }
.hero-support-box__hours { font-size: 14px !important; color: rgba(255, 255, 255, .7) !important; font-weight: 400 !important; }
@media (max-width: 1199px) {
  .hero-home .hero-support-box { margin: 28px 0 0; max-width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 0 18px; align-items: center; }
  .hero-home .hero-support-box-content { margin-top: 0; }
  .hero-home .hero-support-box-content ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
}
@media (max-width: 991px) {
  /* su mobile l'hero è più basso e lascia respirare la foto: il velo scurisce solo la fascia del testo */
  .hero.hero-home { margin: 0; border-radius: 0; height: auto; min-height: 76svh; padding: 150px 0 36px; background-position: 62% center; background-attachment: scroll !important; }
  /* sfumatura: blu scuro pieno sul fondo, trasparente salendo, così la foto resta libera in alto */
  /* la sfumatura è un layer dello sfondo, non un velo separato: così copre davvero fino al bordo */
  .hero.hero-home { background-image: linear-gradient(0deg, #04162a 0%, #04162a 26%, rgba(5, 26, 50, .95) 42%, rgba(7, 36, 68, .72) 56%, rgba(9, 45, 84, .38) 72%, rgba(10, 50, 92, 0) 100%), var(--hero-bg); background-size: auto, cover; background-position: center, 62% center; }
  .hero.hero-home::before { background: none; }
  .hero-home .section-title { margin-bottom: 20px; }
  .hero-home h1 { font-size: 30px; line-height: 1.12; max-width: 17ch; }
  .hero-home .section-title p { font-size: 15.5px; line-height: 1.55; margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-home .hero-support-box { grid-template-columns: 1fr; padding: 18px; }
  .hero-home .hero-support-box .icon-box { display: none; }
  .hero-home .hero-support-box-content ul li { width: 100%; }
  .hero-home__actions { gap: 10px; }
  .hero-home__actions .btn-default { flex: 1 1 calc(50% - 5px); min-width: 0; justify-content: center; padding-left: 18px; padding-right: 8px; font-size: 15px; }
}
@media (max-width: 380px) {
  .hero-home__actions .btn-default { flex: 1 1 100%; }
}

/* ---------- Cosa risolviamo (.about-us) ---------- */
.home-about { padding: clamp(48px, 7vw, 100px) 0; }
.home-about .section-title p { color: var(--text-color); font-size: 17px; }
.home-about .section-title p strong { color: var(--primary-color); }
.home-about .about-us-btn { margin-top: 8px; }
/* Le societa del Gruppo: mappa radiale, hub al centro e quattro nodi collegati */
.home-about .section-title { margin-bottom: clamp(30px, 4vw, 48px); }
.home-about .section-title p { color: var(--text-color); font-size: 17px; }
.home-about__more { margin: clamp(28px, 4vw, 44px) 0 0; text-align: center; }

.group-map { position: relative; max-width: 1040px; margin: 0 auto; }
.group-map__links { position: absolute; inset: 14% 22%; width: 56%; height: 72%; pointer-events: none; }
.group-map__links line { stroke: rgba(2, 22, 35, .3); stroke-width: 2; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.group-map__hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 186px; height: 186px; border-radius: 50%; background: var(--white-color); box-shadow: 0 10px 34px rgba(2, 22, 35, .12); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px; text-align: center; }
.group-map__hub img { width: 116px; height: auto; }
.group-map__hub span { font-size: 13px; line-height: 1.35; color: var(--text-muted); max-width: 16ch; }

.group-map__nodes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 300px; row-gap: 26px; }
.group-map__node { position: relative; z-index: 1; background: var(--white-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; transition: box-shadow .2s ease; }
.group-map__node:hover { box-shadow: var(--shadow-md); }
.group-map__node img { width: 132px; height: auto; max-height: 56px; object-fit: contain; object-position: left center; margin-bottom: 8px; }
.group-map__name { margin: 0; font-family: var(--accent-font); font-weight: 500; font-size: 19px; color: var(--primary-color); }
.group-map__role { margin: 0; font-size: 14.5px; color: var(--text-muted); }
.group-map__claim { margin: 4px 0 0; font-family: var(--accent-font); font-size: 14px; color: var(--accent-color); }

@media (max-width: 1199px) { .group-map__nodes { column-gap: 220px; } .group-map__hub { width: 160px; height: 160px; } .group-map__hub img { width: 96px; } .group-map__hub span { display: none; } }
@media (max-width: 991px) {
  .group-map__links { display: none; }
  .group-map__hub { position: static; transform: none; width: auto; max-width: 340px; height: auto; margin: 0 auto 22px; border-radius: var(--radius-lg); flex-direction: row; gap: 14px; padding: 16px 20px; }
  .group-map__hub img { width: 96px; }
  .group-map__hub span { display: block; text-align: left; max-width: none; }
  .group-map__nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; row-gap: 18px; }
}
@media (max-width: 575px) { .group-map__nodes { grid-template-columns: 1fr; } }

.home-areas { padding: clamp(48px, 7vw, 100px) 0; }
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991px) { .card-grid, .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) {
  .card-grid, .card-grid--2, .card-grid--4 { grid-template-columns: 1fr; gap: 14px; }
  /* su mobile la card resta verticale: l'immagine a tutta larghezza, il testo sotto */
  .card-item { flex-direction: column; }
  .card-item__media { width: 100%; }
  .card-item__media img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .card-item__body { padding: 14px 16px; gap: 4px; }
  .card-item__title { font-size: 18px; }
  .card-item__desc { font-size: 14px; }
}
.card-item { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border-top: 4px solid var(--area, var(--accent-light)); transition: transform .15s, box-shadow .15s; }
.card-item.has-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-item__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.card-item__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-item__kicker { margin: 0; font-size: 12px; }
.card-item__title { font-size: 22px; margin: 0; color: var(--primary-color); }
.card-item__link { color: inherit; text-decoration: none; }
.card-item__link::after { content: ''; position: absolute; inset: 0; }
.card-item.has-link:hover .card-item__title { color: var(--accent-color); }
.card-item__desc { margin: 0; color: var(--text-color); font-size: 15px; line-height: 1.55; }
.card-item__meta { margin: 0; color: var(--text-muted); font-size: 14px; }
.card-item__arrow { margin-top: auto; color: var(--area, var(--accent-color)); font-weight: 700; font-size: 20px; line-height: 1; padding-top: 6px; }
.dark-section .card-item__title, .dark-section .card-item__title a { color: var(--primary-color); }
.dark-section .card-item.has-link:hover .card-item__title { color: var(--accent-color); }
.dark-section .card-item__desc { color: var(--text-color); }
.dark-section .card-item__meta { color: var(--text-muted); }
.home-board-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 26px 30px; background: var(--accent-light); color: var(--primary-color); border-radius: var(--radius-lg); text-decoration: none; border: 2px solid transparent; transition: transform .15s, box-shadow .15s; min-height: 64px; }
.home-board-cta:hover, .home-board-cta:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--primary-color); border-color: #fff; }
.home-board-cta__body { display: flex; flex-direction: column; gap: 4px; }
.home-board-cta__title { font-family: var(--accent-font); font-weight: 500; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.2; }
.home-board-cta__text { font-size: 16px; opacity: .9; }
.home-board-cta__arrow { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--primary-color); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 700; }
.dark-section a.home-board-cta { color: var(--primary-color); }

/* ---------- Come si inizia (3 step) ---------- */
.home-steps { background: var(--bg-color); }
.home-steps .section-title { margin-bottom: clamp(44px, 5vw, 66px); }
.steps { list-style: none; margin: 0; padding: 84px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; position: relative; }
.steps__item { position: relative; z-index: 1; background: var(--white-color); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease; }
.steps__item:hover { box-shadow: var(--shadow-md); }
/* filo tratteggiato da un cerchio al successivo (larghezza card + gap) */
.steps__item:not(:last-child)::before { content: ''; position: absolute; top: -50px; left: 62px; width: calc(100% + 28px); height: 2px; background-image: linear-gradient(90deg, rgba(2,22,35,.3) 0 10px, transparent 10px 20px); background-size: 20px 2px; background-repeat: repeat-x; }
.steps__n { position: absolute; top: -80px; left: 30px; width: 64px; height: 64px; border-radius: 50%; background: var(--primary-color); color: #fff; font-family: var(--accent-font); font-size: 26px; font-weight: 500; display: grid; place-items: center; box-shadow: 0 0 0 8px var(--bg-color); }
.steps__item:hover .steps__n { background: var(--accent-color); }
.steps__title { font-size: 22px; margin: 0; }
.steps__text { margin: 0; font-size: 15.5px; line-height: 1.6; }
.steps__more { margin: clamp(28px, 4vw, 40px) 0 0; text-align: center; font-weight: 600; }
@media (max-width: 991px) { .steps { grid-template-columns: 1fr; gap: 96px; padding-top: 84px; } .steps__item:not(:last-child)::before { display: none; } }

/* ---------- Prossime date ---------- */
.home-dates .section-title-content p { color: var(--text-color); margin: 0; }
.home-dates__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 575px) { .home-dates__actions .btn-default { width: 100%; justify-content: center; } }

/* ---------- Perché Noesis (.why-choose-us) ---------- */
.home-why { padding: clamp(48px, 7vw, 100px) 0; }
.home-why__media img { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 1199px) { .home-why__media { margin-bottom: 30px; max-width: 720px; } }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.why-list__item { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.why-list__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-color); color: #fff; display: grid; place-items: center; }
.why-list__title { font-size: 22px; margin: 6px 0 6px; }
.why-list__body p { margin: 0; font-size: 16px; }
.why-list__more { font-weight: 600; white-space: nowrap; }
@media (max-width: 575px) { .why-list__item { grid-template-columns: 44px 1fr; gap: 12px; } .why-list__icon { width: 44px; height: 44px; } .why-list__icon svg { width: 22px; height: 22px; } }

/* ---------- C19 · Settori ---------- */

/* ---------- Dove siamo ---------- */
.venue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 767px) { .venue-grid { grid-template-columns: 1fr; } }
.venue-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--bg-color); border-radius: 20px; overflow: hidden; }
@media (max-width: 575px) { .venue-card { grid-template-columns: 1fr; } }
.venue-card__img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; display: block; }
.venue-card__body { padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.venue-card__title { font-size: 24px; margin: 0 0 4px; }
.venue-card__address { font-style: normal; margin: 0; }
.venue-card__phone { margin: 0; }
.venue-card__phone a { font-weight: 700; text-decoration: none; font-size: 18px; display: inline-flex; min-height: 44px; align-items: center; }
.venue-card__links { margin: auto 0 0; padding-top: 6px; font-weight: 600; }
.home-venues__closing { margin: 24px 0 0; font-size: 17px; }
.home-venues__closing a { font-weight: 600; }

/* ---------- Risorse utili ---------- */
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 991px) { .resource-grid { grid-template-columns: 1fr; } }
.resource-card { position: relative; background: #fff; border: 1px solid var(--divider-color); border-radius: var(--radius-lg); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm); }
.resource-card.has-link:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.resource-card__title { font-size: 21px; margin: 0; }
.resource-card__title a { color: inherit; text-decoration: none; }
.resource-card__title a::after { content: ''; position: absolute; inset: 0; }
.resource-card__text { margin: 0; font-size: 15px; color: var(--text-color); }
.resource-card__arrow { margin-top: auto; color: var(--accent-color); font-weight: 700; font-size: 20px; }

/* ---------- FAQ (.our-faqs) e normativa ---------- */
.home-faq { padding: clamp(48px, 7vw, 100px) 0 clamp(24px, 4vw, 48px); }
.home-faq__inner { max-width: 860px; margin: 0 auto; }
.home-faq .section-title { margin-bottom: 8px; }
.home-faq .faq { margin: 0; }
.home-faq .faq__title { margin-top: 0; }
.home-legal { padding-bottom: clamp(24px, 4vw, 48px); }
.home-legal .legal-refs { margin: 32px 0 0; }

/* ---- Prossime date: card (al posto della tabella) ---- */
.ed-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.ed-card { display: flex; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 6px 24px rgba(2, 22, 35, .08); transition: transform .2s, box-shadow .2s; }
.ed-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(2, 22, 35, .14); }
.ed-card__date { flex: 0 0 96px; background: var(--primary-color); background-image: url('../../images/dark-section-bg-image.png'); background-size: cover; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 8px; text-align: center; border-left: 5px solid var(--area, var(--accent-color)); }
.ed-card__day { font-family: var(--accent-font); font-size: 34px; line-height: 1; font-weight: 500; }
.ed-card__month { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; opacity: .9; }
.ed-card__until { font-size: 12px; opacity: .75; margin-top: 4px; }
.ed-card__body { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.ed-card__cat { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--area, var(--accent-color)); }
.ed-card__title { font-size: 19px; line-height: 1.25; margin: 0; }
.ed-card__title a { color: var(--primary-color); text-decoration: none; }
.ed-card__title a:hover { color: var(--accent-color); }
.ed-card__meta { list-style: none; padding: 0; margin: 2px 0 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--text-color); }
.ed-card__meta li { display: flex; align-items: center; gap: 8px; }
.ed-card__meta svg { color: var(--accent-color); flex-shrink: 0; }
.ed-card__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ed-card__seats { font-size: 13px; color: var(--text-muted); }
.ed-card__badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 100px; background: var(--bg-color); color: var(--primary-color); }
.ed-card__badge--warn { background: #FFF4D6; color: #7a4d00; }
.ed-card__badge--ok { background: #E3F4EA; color: #1f5e3a; }
.home-dates__actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Settori cliccabili ---- */

/* ---- Risorse + FAQ affiancate ---- */
.home-resources-faq .resource-list { display: flex; flex-direction: column; gap: 16px; }
.home-resources-faq .resource-card { position: relative; background: #fff; border-radius: 20px; padding: 24px 28px; box-shadow: 0 6px 24px rgba(2, 22, 35, .06); }
.home-resources-faq .resource-card__title { font-size: 20px; margin-bottom: 6px; }
.home-resources-faq .resource-card__title a { color: var(--primary-color); text-decoration: none; }
.home-resources-faq .resource-card__title a:hover { color: var(--accent-color); }
.home-resources-faq .resource-card__text { margin: 0; font-size: 15px; }
.home-resources-faq .resource-card__arrow { position: absolute; right: 24px; top: 24px; color: var(--accent-color); font-weight: 700; }
.home-resources-faq .home-faq__inner .faq { margin-top: 0; }
@media (max-width: 991px) { .home-resources-faq .col-lg-7 { margin-top: 40px; } }
.home-venues .venue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 991px) { .home-venues .venue-grid { grid-template-columns: 1fr; } }

/* ---- Hero home: griglia e scorciatoie alle aree (al posto del box telefoni) ---- */
.hero-home__inner { max-width: 940px; }
.hero-home__areas { background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 20px; padding: 24px 26px; }
.hero-home__areas-title { color: #fff; font-family: var(--accent-font); font-size: 19px; margin: 0 0 14px; }
.hero-home__areas ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-home__areas li a { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .92); color: var(--primary-color); border-radius: 100px; padding: 9px 16px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .2s, transform .2s; }
.hero-home__areas li a::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--area, var(--accent-color)); }
.hero-home__areas li a:hover { background: #fff; transform: translateY(-2px); }
.hero-home__areas-all { display: inline-block; color: #fff; font-weight: 600; text-decoration: none; font-size: 15px; }
.hero-home__areas-all:hover { color: var(--accent-light); text-decoration: underline; }

/* Risorse utili: tutta la card è cliccabile, non solo il titolo */
.home-resources-faq .resource-card.has-link { transition: transform .15s, box-shadow .15s; }
.home-resources-faq .resource-card.has-link:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(2, 22, 35, .12); }
.home-resources-faq .resource-card__title a::after { content: ''; position: absolute; inset: 0; border-radius: 20px; }
.home-resources-faq .resource-card.has-link:hover .resource-card__title a { color: var(--accent-color); }
.home-resources-faq .resource-card.has-link:hover .resource-card__arrow { transform: translateX(4px); }
.home-resources-faq .resource-card__arrow { transition: transform .15s; }

/* ---- "Perché Noesis": layout .intro-video del tema con la nostra immagine in parallasse ---- */
/* il margine laterale e il cappello arrotondato arrivano da .bg-section, che centra la sezione
   con margin:0 auto: ripeterlo qui con margini fissi la inchiodava a sinistra oltre i 1850px */
.home-why.intro-video { background-image: var(--hero-bg); background-size: cover; background-position: center center; padding: 120px 0; border-radius: 20px; }
@media (max-width: 991px) { .home-why.intro-video { margin: 0; border-radius: 0; padding: 70px 0; background-attachment: scroll !important; } }
.home-why.intro-video::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 22, 35, .78), rgba(2, 22, 35, .92)); z-index: 1; }
.home-why .container { position: relative; z-index: 2; }
.home-why .section-title h2 { color: #fff; max-width: 20ch; }
.home-why .section-title p { color: rgba(255, 255, 255, .85); max-width: 60ch; }
.home-why .intro-video-items-list { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 140px; }
@media (max-width: 991px) { .home-why .intro-video-items-list { margin-top: 48px; gap: 18px; } }
.home-why .intro-video-item { width: calc(33.33% - 18px); background: #fff; border-radius: 20px; display: flex; flex-direction: column; gap: 22px; padding: 34px 32px; transition: transform .4s ease; }
@media (max-width: 991px) { .home-why .intro-video-item { width: 100%; min-height: 0; padding: 26px 24px; } }
.home-why .intro-video-item:hover { transform: translateY(-6px); }
.home-why .intro-video-list-header { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--divider-color); }
.home-why .intro-video-list-header .icon-box { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-color); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.home-why .intro-video-list-header .icon-box svg { width: 26px; height: 26px; }
.home-why .intro-video-item-title h3 { font-size: 20px; margin: 0; line-height: 1.25; }
.home-why .intro-video-item__body { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.home-why .intro-video-item__body p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-color); }
.home-why .intro-video-item__more { margin-top: auto; align-self: flex-start; }
.home-why .intro-video-item__more { font-weight: 700; text-decoration: none; color: var(--accent-color); }
.home-why .intro-video-item__more:hover { text-decoration: underline; }

/* ---- FAQ in stile tema (.our-faqs) + risorse nella colonna sinistra ---- */
.home-faqs { padding: 100px 0; }
@media (max-width: 991px) { .home-faqs { padding: 60px 0; } }
.home-faqs .col-lg-5 { padding-right: 40px; }
@media (max-width: 991px) { .home-faqs .col-lg-5 { padding-right: 15px; margin-bottom: 36px; } }
.faq-aside { border-left: 4px solid var(--accent-color); background: var(--bg-color); border-radius: 0 20px 20px 0; padding: 24px 26px; margin-top: 28px; }
.faq-aside__title { font-family: var(--accent-font); font-size: 20px; color: var(--primary-color); margin: 0 0 14px; }
.faq-aside__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.faq-aside__list a { display: flex; flex-direction: column; gap: 2px; background: #fff; border-radius: 12px; padding: 14px 18px; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.faq-aside__list a:hover { transform: translateX(3px); box-shadow: 0 8px 20px rgba(2, 22, 35, .08); }
.faq-aside__list span { font-weight: 700; color: var(--primary-color); }
.faq-aside__list small { color: var(--text-muted); font-size: 13px; }
.faq-list-theme { display: grid; gap: 14px; }
.faq-item-theme { background: #fff; border-radius: 16px; box-shadow: 0 4px 18px rgba(2, 22, 35, .06); overflow: hidden; }
.faq-item-theme h3 { margin: 0; font-size: 18px; }
.faq-item-theme__btn { width: 100%; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 22px 24px; text-align: left; font: inherit; font-family: var(--accent-font); font-weight: 500; color: var(--primary-color); min-height: 64px; }
.faq-item-theme__n { color: var(--accent-color); font-weight: 700; flex-shrink: 0; }
.faq-item-theme__q { flex: 1; }
.faq-item-theme__icon { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-color); position: relative; transition: transform .25s; }
.faq-item-theme__icon::before, .faq-item-theme__icon::after { content: ''; position: absolute; left: 50%; top: 50%; background: #fff; border-radius: 2px; transform: translate(-50%, -50%); }
.faq-item-theme__icon::before { width: 14px; height: 2px; }
.faq-item-theme__icon::after { width: 2px; height: 14px; transition: opacity .25s; }
.faq-item-theme__btn[aria-expanded="true"] .faq-item-theme__icon::after { opacity: 0; }
.faq-item-theme__btn:hover .faq-item-theme__icon { transform: scale(1.08); }
.faq-item-theme__a { padding: 0 24px 22px 60px; color: var(--text-color); }
.faq-item-theme__a p:last-child { margin-bottom: 0; }
@media (max-width: 575px) { .faq-item-theme__a { padding-left: 24px; } }

/* ---- Testimonianze (C17), layout "Our Testimonials" del tema ---- */
.home-testimonials { padding: 100px 0 60px; }
@media (max-width: 991px) { .home-testimonials { padding: 60px 0 30px; } }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 991px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card { position: relative; margin: 0; background: var(--bg-color); border-radius: 20px; padding: 40px 30px 30px; display: flex; flex-direction: column; gap: 16px; transition: transform .2s, box-shadow .2s; }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(2, 22, 35, .1); }
.testimonial-card__quote { position: absolute; top: 14px; right: 26px; font-family: var(--accent-font); font-size: 76px; line-height: 1; color: var(--accent-color); opacity: .18; }
.testimonial-card__stars { color: #f5a623; letter-spacing: 2px; font-size: 15px; }
.testimonial-card__text { margin: 0; }
.testimonial-card__text p { margin: 0; font-family: var(--accent-font); font-size: 18px; line-height: 1.6; color: var(--primary-color); }
.testimonial-card__who { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(2, 22, 35, .08); }
.testimonial-card__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-color); color: #fff; display: grid; place-items: center; font-family: var(--accent-font); font-size: 20px; flex-shrink: 0; }
.testimonial-card__who strong { display: block; color: var(--primary-color); }
.testimonial-card__who small { display: block; color: var(--text-muted); font-size: 13px; }


/* Claim storico di ogni società, accanto al nome (dal sito precedente) */
.home-about__company em { display: block; margin-top: 3px; font-style: normal; font-family: var(--accent-font); font-size: 14px; color: var(--accent-color); }

/* Badge della valutazione Google (.google-rating-box del tema) */
.google-rating-wrap { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.google-rating-box { background: #fff; box-shadow: 0 6px 24px rgba(2, 22, 35, .08); border-radius: 20px; padding: 20px 26px; max-width: 340px; text-decoration: none; }
a.google-rating-box:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(2, 22, 35, .12); transition: transform .2s, box-shadow .2s; }
.google-rating-info-header h2 { font-size: 26px; min-width: 88px; line-height: 1; color: var(--primary-color); }
.google-rating-star i { font-style: normal; font-size: 16px; color: #f5a623; letter-spacing: 1px; }
.google-rating-info-content p { margin: 6px 0 0; font-size: 14px; color: var(--text-muted); line-height: 1.4; }

/* Che cosa fa ognuna: le quattro società del Gruppo in breve */
.home-knowing { padding: clamp(48px, 7vw, 90px) 0; background: var(--bg-color); }
.home-knowing .section-title { margin-bottom: clamp(28px, 4vw, 44px); }
.home-knowing .section-title p { font-size: 17px; }
.home-knowing__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.home-knowing__item { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 28px 26px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 6px; transition: box-shadow .2s ease; }
.home-knowing__item:hover { box-shadow: var(--shadow-md); }
.home-knowing__logo { width: auto; max-width: 140px; max-height: 52px; object-fit: contain; object-position: left center; margin-bottom: 12px; }
.home-knowing__ambito { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-color); }
.home-knowing__item h3 { font-size: 21px; margin: 0; color: var(--primary-color); }
.home-knowing__text { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-color); }
.home-knowing__link { margin-top: auto; padding-top: 16px; font-weight: 700; text-decoration: none; align-self: flex-start; }
.home-knowing__link:hover { text-decoration: underline; }
@media (max-width: 1199px) { .home-knowing__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .home-knowing__list { grid-template-columns: 1fr; gap: 16px; } }
