/*
-----------------------------------------------------------------------------------
  San Giuseppe Spinea - Stili Tema
  Palette Ispirata al Logo Ufficiale (Viva, gioiosa, calda e professionale)
  Colori: Azzurro Cielo (#2A8CE4), Rosso Corallo (#FF4D4D), Giallo Sole (#FFB800), 
          Verde Prato (#2EB872), Arancio (#FF8800), Viola (#7C3AED), Panna (#FFFDF9)
  Font: Quicksand (Intestazioni e Menu), Nunito (Testi), Schoolbell (Note)
-----------------------------------------------------------------------------------
*/

:root {
  --sg-blue: #2A8CE4;
  --sg-blue-hover: #1A74C4;
  --sg-blue-soft: #EAF4FD;
  --sg-coral: #FF4D4D;
  --sg-coral-hover: #E63946;
  --sg-orange: #FF8800;
  --sg-orange-hover: #E57A00;
  --sg-mango: #FFB800;
  --sg-mango-hover: #FFA000;
  --sg-green: #2EB872;
  --sg-green-hover: #249A5D;
  --sg-purple: #7C3AED;
  --sg-purple-hover: #6D28D9;
  --sg-teal: #2A8CE4;
  --sg-teal-hover: #1A74C4;
  --sg-night: #1E2B37;
  --sg-night-light: #334155;
  --sg-cream-bg: #FFFDF9;
  --sg-sky-bg: #F0F8FF;
  --sg-cloud-footer: #F3F8FC;
  --sg-cloud-footer-border: #DCECF6;
  --sg-card-bg: #FFFFFF;
  --sg-text: #2D3748;
  --sg-text-light: #64748B;
  --sg-white: #ffffff;
  --sg-border: #E5EFF7;
  --sg-shadow-sm: 0 4px 18px rgba(42, 140, 228, 0.08);
  --sg-shadow-md: 0 10px 30px rgba(255, 77, 77, 0.12);
  --sg-shadow-lg: 0 20px 45px rgba(30, 43, 55, 0.09);
  --sg-radius: 24px;
  --sg-font-heading: 'Nunito', 'Quicksand', sans-serif;
  --sg-font-sub: 'Schoolbell', cursive;
  --sg-font-body: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sg-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--sg-text);
  background-color: var(--sg-cream-bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--sg-font-heading);
  color: var(--sg-night);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.t-teal {
  color: var(--sg-teal);
}

.t-orange {
  color: var(--sg-coral);
}

.t-mango {
  color: var(--sg-mango);
}

.t-green {
  color: var(--sg-green);
}

.t-purple {
  color: var(--sg-purple);
}

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

/* CONTENITORI */
.sg-container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.sg-container--narrow {
  max-width: 860px;
}

.sg-section {
  position: relative;
  padding: 90px 0;
}

.sg-section--padded {
  padding: 80px 0;
}

.sg-section--grey {
  background-color: var(--sg-sky-bg);
}

.sg-mt-50 {
  margin-top: 50px;
}

/* SKIP LINK */
.skip-link {
  position: absolute;
  top: -999px;
  left: 10px;
  background: var(--sg-coral);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
}

.skip-link:focus {
  top: 10px;
}

/* SOTTOTITOLI & TITOLI DI SEZIONE */
/* SOTTOTITOLI & TITOLI DI SEZIONE - Stile Sticker Colorato Asilo */
.sg-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sg-font-heading);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 16px;
  border-radius: 30px;
  background-color: #FFF4E8;
  color: #FF7700;
  margin-bottom: 12px;
  border: 1.5px solid rgba(255, 119, 0, 0.22);
  box-shadow: 0 2px 8px rgba(255, 119, 0, 0.08);
  transition: transform 0.25s ease;
}

.sg-subtitle::before {
  content: '★';
  font-size: 11px;
  color: #FFB703;
}

.sg-subtitle--white {
  background-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sg-subtitle--white::before {
  color: #FFE082;
}

.sg-subtitle--orange {
  background-color: #FFF8E6;
  color: #D98200;
  border-color: rgba(255, 183, 3, 0.3);
}

/* Badge sticker dedicati per ciascuna area del sito */
.sg-about-area .sg-subtitle {
  background-color: #F0F7FF;
  color: #1A74C4;
  border-color: rgba(42, 140, 228, 0.25);
  box-shadow: 0 2px 8px rgba(42, 140, 228, 0.08);
}

.sg-about-area .sg-subtitle::before {
  color: #2A8CE4;
}

.sg-facilities-area .sg-subtitle {
  background-color: #EDFAF2;
  color: #1F8E52;
  border-color: rgba(46, 184, 114, 0.25);
  box-shadow: 0 2px 8px rgba(46, 184, 114, 0.08);
}

.sg-facilities-area .sg-subtitle::before {
  color: #2EB872;
}

.sg-programs-area .sg-subtitle {
  background-color: #F5EFFF;
  color: #6D28D9;
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.08);
}

.sg-programs-area .sg-subtitle::before {
  color: #7C3AED;
}

.sg-enroll-area .sg-subtitle {
  background-color: #FFF8E6;
  color: #D98200;
  border-color: rgba(255, 183, 3, 0.3);
  box-shadow: 0 2px 8px rgba(255, 183, 3, 0.08);
}

.sg-enroll-area .sg-subtitle::before {
  color: #FFB703;
}

.sg-testimonial-area .sg-subtitle {
  background-color: #FFEFEF;
  color: #E03E43;
  border-color: rgba(255, 90, 95, 0.25);
  box-shadow: 0 2px 8px rgba(255, 90, 95, 0.08);
}

.sg-testimonial-area .sg-subtitle::before {
  color: #FF5A5F;
}

.sg-news-area .sg-subtitle {
  background-color: #FFF2E8;
  color: #E55A00;
  border-color: rgba(255, 102, 0, 0.25);
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.08);
}

.sg-news-area .sg-subtitle::before {
  color: #FF8800;
}

.sg-section-title {
  margin-bottom: 50px;
}

.sg-section-title--center {
  text-align: center;
}

.sg-section-title--left {
  text-align: left;
}

.sg-section-title .sg-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-top: 4px;
}

.sg-title--white {
  color: #fff;
}

/* BOTTONI MORBIDI & COLORATI */
.sg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: var(--sg-font-heading);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.sg-btn i {
  transition: transform 0.3s ease;
}

.sg-btn:hover i {
  transform: translateX(4px);
}

.sg-btn--orange {
  background-color: var(--sg-coral);
  color: #fff;
}

.sg-btn--orange:hover {
  background-color: var(--sg-teal);
  color: #fff;
  box-shadow: 0 10px 25px rgba(255, 122, 89, 0.35);
}

.sg-btn--teal {
  background-color: var(--sg-teal);
  color: #fff;
}

.sg-btn--teal:hover {
  background-color: var(--sg-coral);
  color: #fff;
  box-shadow: 0 10px 25px rgba(29, 179, 200, 0.35);
}

.sg-btn--green {
  background-color: var(--sg-green);
  color: #fff;
}

.sg-btn--green:hover {
  background-color: var(--sg-green-hover);
  color: #fff;
  box-shadow: 0 10px 25px rgba(78, 186, 135, 0.35);
}

.sg-btn--mango {
  background-color: var(--sg-mango);
  color: #fff;
}

.sg-btn--mango:hover {
  background-color: var(--sg-mango-hover);
  color: #fff;
  box-shadow: 0 10px 25px rgba(255, 170, 29, 0.35);
}

.sg-btn--dark {
  background-color: var(--sg-night);
  color: #fff;
}

.sg-btn--dark:hover {
  background-color: var(--sg-coral);
  color: #fff;
  box-shadow: 0 10px 25px rgba(36, 48, 64, 0.25);
}

.sg-btn--white {
  background-color: #fff;
  color: var(--sg-night);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.sg-btn--white:hover {
  background-color: var(--sg-coral);
  color: #fff;
}

/* TOPBAR */
.sg-topbar {
  background-color: #ffffff;
  border-bottom: 1px solid #F1F5F9;
  padding: 5px 0;
  font-size: 12px;
  color: var(--sg-text-light);
}

.sg-topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.sg-topbar__left,
.sg-topbar__right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.sg-topbar i {
  margin-right: 6px;
}

.sg-topbar .fa-location-dot {
  color: var(--sg-coral);
}

.sg-topbar .fa-clock {
  color: #E68A00;
}

.sg-topbar .fa-phone {
  color: #249A5D;
}

.sg-topbar .fa-envelope {
  color: var(--sg-blue);
}

.sg-topbar .fa-facebook-f {
  color: #1877F2;
}

.sg-topbar a:hover {
  color: var(--sg-coral);
}

/* HEADER PRINCIPALE */
.sg-header {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  z-index: 1000;
  box-shadow: none;
  transition: all 0.3s ease;
}

/* Bordo a nuvole sul fondo dell'header: armonioso, pulito e fuso con l'header */
.sg-header-clouds {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  width: 100%;
  height: 22px;
  line-height: 0;
  pointer-events: none;
  z-index: 1001;
  overflow: visible;
  filter: none;
}

.sg-header-clouds svg {
  display: block;
  width: 100%;
  height: 100%;
}

.admin-bar .sg-header {
  top: 32px !important;
}

@media (max-width: 782px) {
  .admin-bar .sg-header {
    top: 46px !important;
  }
}

.sg-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #ffffff !important;
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  animation: sgStickySlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sg-header.is-sticky .sg-logo__img {
  width: 66px;
  height: 66px;
  border-width: 2.5px;
  box-shadow: 0 4px 14px rgba(42, 140, 228, 0.22);
}

.sg-header.is-sticky .sg-logo__mark {
  margin-top: 0;
  margin-bottom: -10px;
}

.sg-header.is-sticky .sg-logo__name {
  font-size: 23px;
}

.sg-header.is-sticky .sg-logo__tag {
  font-size: 10px;
  margin-top: 1px;
}

.sg-header.is-sticky .sg-header-clouds {
  height: 14px;
}

.admin-bar .sg-header.is-sticky {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .sg-header.is-sticky {
    top: 46px;
  }
}

.sg-header.is-sticky .sg-header__inner {
  min-height: 58px;
  padding: 4px 0;
}

@media (max-width: 768px) {
  .sg-header.is-sticky .sg-header__inner {
    min-height: 52px;
    padding: 4px 0;
  }
}

@keyframes sgStickySlide {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

.sg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 6px 0;
}

/* LOGO: immagine generosa e ben visibile con medaglione che sborda con grazia sulle nuvolette */
.sg-logo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1005;
}

.sg-logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1005;
  margin-top: 0;
  margin-bottom: -22px;
  /* Sbordatura elegante che mette in risalto l'illustrazione senza allargare l'header bar */
}

.sg-logo__img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(42, 140, 228, 0.26), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 3.5px solid #FFFFFF;
  background-color: #FFFFFF;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  display: block;
}

.sg-logo:hover .sg-logo__img {
  transform: rotate(4deg) scale(1.05);
  box-shadow: 0 10px 28px rgba(42, 140, 228, 0.35), 0 4px 10px rgba(0, 0, 0, 0.12);
}

.sg-logo__text {
  display: flex;
  flex-direction: column;
}

.sg-logo__name {
  font-family: var(--sg-font-heading);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.2px;
  display: inline-flex;
  align-items: baseline;
}

/* Colori delle singole lettere ispirati al logo originale */
.sg-logo__name .c-red {
  color: #E63946;
}

.sg-logo__name .c-orange {
  color: #FF8800;
}

.sg-logo__name .c-yellow {
  color: #F7B801;
}

.sg-logo__name .c-green {
  color: #2EB872;
}

.sg-logo__name .c-cyan {
  color: #00A896;
}

.sg-logo__name .c-purple {
  color: #7C3AED;
}

.sg-logo__name .c-blue {
  color: #2A8CE4;
}

.sg-logo__name .c-coral {
  color: #FF4D6D;
}

.sg-logo__name .c-amber {
  color: #FB8500;
}

.sg-logo__name .c-gold {
  color: #FFB703;
}

.sg-logo__name .c-green2 {
  color: #38B000;
}

.sg-logo__tag {
  font-family: var(--sg-font-heading);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
  font-weight: 700;
  color: #0077B6;
}

/* MENU ORIZZONTALE CON ICONE */
.sg-nav {
  display: flex;
  align-items: center;
}

.sg-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sg-menu>.menu-item>a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--sg-font-heading);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--sg-night);
  padding: 8px 12px;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.sg-menu>.menu-item>a i {
  font-size: 18px;
  color: var(--sg-blue);
  transition: transform 0.25s ease, color 0.25s ease;
}

/* Icone menu vivaci e allegre */
.sg-menu>.menu-item:nth-child(1)>a i {
  color: #2A8CE4;
}

.sg-menu>.menu-item:nth-child(2)>a i {
  color: #FF4D4D;
}

.sg-menu>.menu-item:nth-child(3)>a i {
  color: #FF8800;
}

.sg-menu>.menu-item:nth-child(4)>a i {
  color: #F7B801;
}

.sg-menu>.menu-item:nth-child(5)>a i {
  color: #2EB872;
}

.sg-menu>.menu-item:nth-child(6)>a i {
  color: #7C3AED;
}

.sg-menu>.menu-item:nth-child(7)>a i {
  color: #00A896;
}

.sg-menu>.menu-item:nth-child(8)>a i {
  color: #E63946;
}

.sg-menu>.menu-item>a:hover,
.sg-menu>.current-menu-item>a {
  color: var(--sg-coral);
  background-color: var(--sg-blue-soft);
}

.sg-menu>.menu-item>a:hover i,
.sg-menu>.current-menu-item>a i {
  transform: translateY(-3px) scale(1.15);
}

.sg-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sg-header__call-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  background-color: #F8FAFC;
  color: #0284C7;
  border: 1.5px solid #E2E8F0;
  font-size: 17px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.sg-header__call-btn:hover {
  background-color: #0284C7;
  color: #ffffff;
  border-color: #0284C7;
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.sg-header__call-text {
  display: none;
}

.sg-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.sg-menu-toggle:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.sg-menu-toggle:active {
  background: #F1F5F9;
  transform: scale(0.95);
  box-shadow: none;
}

.sg-menu-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  border-radius: 2px;
  background-color: #1E293B;
  transition: all 0.25s ease;
  flex-shrink: 0;
  margin: 0 auto;
}

/* OFFCANVAS MOBILE */
.admin-bar .sg-offcanvas {
  top: 32px !important;
  height: calc(100% - 32px) !important;
}

@media (max-width: 782px) {
  .admin-bar .sg-offcanvas {
    top: 92px !important;
    height: calc(100% - 92px) !important;
  }
}

.sg-offcanvas-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(30, 41, 59, 0.6);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sg-offcanvas-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.sg-offcanvas {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  max-width: 90%;
  height: 100%;
  background-color: #fff;
  z-index: 2000;
  overflow-y: auto;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
  transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
}

.sg-offcanvas.is-active {
  right: 0;
}

.sg-offcanvas__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sg-border);
}

.sg-offcanvas__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  font-size: 18px;
  color: var(--sg-night);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sg-offcanvas__close:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: var(--sg-coral);
}

.sg-mobile-nav {
  margin: 25px 0;
}

.sg-mobile-menu .menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-family: var(--sg-font-heading);
  font-size: 16px;
  color: var(--sg-night);
  border-bottom: 1px dashed #edf2f7;
}

.sg-mobile-menu .menu-item a i {
  color: var(--sg-teal);
  width: 22px;
}

.sg-mobile-menu .menu-item a:hover {
  color: var(--sg-coral);
}

.sg-offcanvas__contact {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--sg-border);
  font-size: 14px;
}

.sg-offcanvas__contact h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.sg-offcanvas__contact p {
  margin-bottom: 8px;
  color: var(--sg-text-light);
}

.sg-offcanvas__contact i {
  color: var(--sg-coral);
  margin-right: 8px;
}

.sg-offcanvas__cta {
  margin-top: 18px;
}

/* NUVOLE & ONDE SVG */
.sg-clouds {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 5;
}

.sg-clouds svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.sg-wave {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.sg-wave svg {
  display: block;
  width: 100%;
  height: 70px;
}

/* 1. HERO SECTION (BANNER PANORAMICO PULITO, NITIDO, BASSO E SENZA ALONI) */
.sg-hero {
  position: relative;
  width: 100%;
  background: #FFFFFF;
  padding: 0;
  margin: 0;
  overflow: hidden;
  line-height: 0;
}

.sg-hero__banner-wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 8px 16px 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.sg-hero__banner-img {
  width: 100%;
  max-height: 380px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 8px 24px rgba(42, 140, 228, 0.12));
}

/* Nuvole in fondo all'hero raccordate armoniosamente al bianco */
.sg-hero .sg-clouds {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 5;
  pointer-events: none;
}

.sg-hero .sg-clouds svg {
  height: 40px;
}

@media (max-width: 991px) {
  .sg-hero__banner-wrap {
    padding: 6px 12px 16px;
  }

  .sg-hero__banner-img {
    max-height: 280px;
  }

  .sg-hero .sg-clouds svg {
    height: 30px;
  }
}

@media (max-width: 600px) {
  .sg-hero__banner-wrap {
    padding: 4px 8px 12px;
  }

  .sg-hero__banner-img {
    max-height: 210px;
  }

  .sg-hero .sg-clouds svg {
    height: 24px;
  }
}

/* 2. FEATURE CARDS (4 CARTE PASTELLO VIVACI) */
.sg-features-area {
  padding: 70px 0 90px;
  background-color: var(--sg-cream-bg);
}

.sg-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sg-feature-item {
  text-align: center;
  padding: 35px 22px 30px;
  border-radius: 28px;
  background-color: #fff;
  border: 2px solid transparent;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sg-feature-item:hover {
  transform: translateY(-8px);
}

/* Card 1: Apprendimento Attivo (Corallo) */
.sg-feature-item:nth-child(1) {
  background: #FFF8F6;
  border-color: rgba(255, 90, 95, 0.22);
}

.sg-feature-item:nth-child(1):hover {
  border-color: #FF5A5F;
  box-shadow: 0 14px 32px rgba(255, 90, 95, 0.18);
}

.sg-feature-item:nth-child(1) .sg-feature-title {
  color: #E03E43;
}

/* Card 2: Insegnanti Dedicate (Verde Prato) */
.sg-feature-item:nth-child(2) {
  background: #F4FBF7;
  border-color: rgba(46, 184, 114, 0.22);
}

.sg-feature-item:nth-child(2):hover {
  border-color: #2EB872;
  box-shadow: 0 14px 32px rgba(46, 184, 114, 0.18);
}

.sg-feature-item:nth-child(2) .sg-feature-title {
  color: #249A5D;
}

/* Card 3: Parco & Villa Storica (Azzurro Cielo) */
.sg-feature-item:nth-child(3) {
  background: #F0F7FF;
  border-color: rgba(42, 140, 228, 0.22);
}

.sg-feature-item:nth-child(3):hover {
  border-color: #2A8CE4;
  box-shadow: 0 14px 32px rgba(42, 140, 228, 0.18);
}

.sg-feature-item:nth-child(3) .sg-feature-title {
  color: #1A74C4;
}

/* Card 4: Mensa & Benessere (Giallo Sole / Ambra) */
.sg-feature-item:nth-child(4) {
  background: #FFFBF0;
  border-color: rgba(255, 183, 3, 0.28);
}

.sg-feature-item:nth-child(4):hover {
  border-color: #FFB703;
  box-shadow: 0 14px 32px rgba(255, 183, 3, 0.2);
}

.sg-feature-item:nth-child(4) .sg-feature-title {
  color: #D98200;
}

.sg-feature-blob {
  width: 155px;
  height: 155px;
  margin: 0 auto 20px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.sg-feature-blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sg-feature-item:hover .sg-feature-blob img {
  transform: scale(1.08);
}

.sg-feature-blob--1 {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  border: 4px solid #FF5A5F;
}

.sg-feature-blob--2 {
  border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
  border: 4px solid #2EB872;
}

.sg-feature-blob--3 {
  border-radius: 50% 50% 30% 70% / 70% 40% 60% 30%;
  border: 4px solid #2A8CE4;
}

.sg-feature-blob--4 {
  border-radius: 30% 70% 60% 40% / 50% 30% 70% 50%;
  border: 4px solid #FFB703;
}

.sg-feature-title {
  font-size: 20px;
  margin-bottom: 8px;
  font-family: var(--sg-font-heading);
  font-weight: 700;
}

.sg-feature-item p {
  font-size: 14px;
  color: var(--sg-text-light);
  line-height: 1.6;
}

/* 3. ABOUT SECTION */
.sg-about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.sg-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--sg-night);
  font-weight: 500;
  margin-bottom: 16px;
}

.sg-about-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.sg-about-point {
  display: flex;
  gap: 14px;
}

.sg-point-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--sg-sky-bg);
  color: var(--sg-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.sg-about-point:nth-child(1) .sg-point-icon {
  background-color: #FFEAEA;
  color: var(--sg-coral);
}

.sg-about-point:nth-child(2) .sg-point-icon {
  background-color: #EBF9F1;
  color: #208A52;
}

.sg-about-point:hover .sg-point-icon {
  transform: scale(1.1);
}

.sg-about-point h4 {
  font-size: 17px;
  margin-bottom: 4px;
}

.sg-about-point p {
  font-size: 14px;
  color: var(--sg-text-light);
}

/* COORDINATORE BOX */
.sg-coordinator-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #FFFDF9 0%, #FFF8EE 100%);
  border-radius: 20px;
  padding: 18px 24px;
  margin-top: 30px;
  border: 2px dashed #FFB703;
  box-shadow: 0 4px 18px rgba(255, 183, 3, 0.12);
  flex-wrap: wrap;
}

.sg-coordinator-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #FFB703;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(255, 183, 3, 0.3);
}

.sg-coordinator-info strong {
  display: block;
  font-size: 17px;
  color: var(--sg-night);
  font-family: var(--sg-font-heading);
}

.sg-coordinator-info span {
  font-size: 13px;
  color: var(--sg-text-light);
}

.sg-coordinator-phone {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sg-coordinator-phone i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2EB872;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(46, 184, 114, 0.25);
}

.sg-coordinator-phone .label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--sg-text-light);
}

.sg-coordinator-phone a {
  font-family: var(--sg-font-heading);
  font-size: 17px;
  color: var(--sg-night);
  font-weight: 600;
}

.sg-about-media {
  position: relative;
}

.sg-about-img-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.sg-about-carousel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  border-radius: 40px 140px 40px 40px;
  overflow: hidden;
  box-shadow: var(--sg-shadow-lg);
  border: 8px solid #fff;
  background-color: #f1f4eb;
}

.sg-about-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.sg-about-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s ease-in-out, visibility 0.75s ease-in-out, transform 0.75s ease-out;
  transform: scale(1.05);
  z-index: 1;
}

.sg-about-carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.sg-about-carousel-slide .sg-about-main-img,
.sg-about-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background-color: #ffffff;
  border-radius: 0;
  box-shadow: none;
  border: none;
  display: block;
}

.sg-carousel-prev,
.sg-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  color: var(--sg-night);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: all 0.25s ease;
  opacity: 0;
}

.sg-about-img-wrap:hover .sg-carousel-prev,
.sg-about-img-wrap:hover .sg-carousel-next {
  opacity: 1;
}

.sg-carousel-prev {
  left: 14px;
}

.sg-carousel-next {
  right: 14px;
}

.sg-carousel-prev:hover,
.sg-carousel-next:hover {
  background: #fff;
  color: var(--sg-coral);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}

.sg-about-carousel-dots {
  position: absolute;
  bottom: 18px;
  right: 24px;
  left: auto;
  transform: none;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 6;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 30px;
}

.sg-carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sg-carousel-dot:hover {
  background: #fff;
}

.sg-carousel-dot.is-active {
  width: 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.85);
}

.sg-about-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: linear-gradient(135deg, #FFB703 0%, #FF8800 100%);
  color: #fff;
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 10px 25px rgba(255, 136, 0, 0.28);
  text-align: center;
  border: 3px dashed rgba(255, 255, 255, 0.55);
  z-index: 10;
}

.sg-badge-icon {
  font-size: 26px;
  display: block;
  margin-bottom: 2px;
}

.sg-badge-num {
  font-family: var(--sg-font-heading);
  font-size: 36px;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.sg-badge-text {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.sg-about-historic-pill {
  position: absolute;
  top: 20px;
  right: -10px;
  background: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  box-shadow: var(--sg-shadow-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--sg-night);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.sg-about-historic-pill i {
  color: var(--sg-coral);
}

/* 4. FACILITIES (I NOSTRI AMBIENTI) */
.sg-facilities-area {
  background-color: var(--sg-sky-bg);
  background-image: radial-gradient(rgba(29, 179, 200, 0.12) 2px, transparent 2px);
  background-size: 24px 24px;
  padding: 90px 0;
  position: relative;
  border-top: 1px solid var(--sg-border);
  border-bottom: 1px solid var(--sg-border);
}

.sg-facilities-area .sg-subtitle {
  color: var(--sg-coral);
  text-shadow: none;
}

.sg-facilities-area .sg-title {
  color: var(--sg-night);
}

.sg-facilities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.sg-facility-card {
  background-color: #fff;
  border-radius: 28px;
  padding: 35px 20px;
  text-align: center;
  transition: all 0.35s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  border: 1.5px solid var(--sg-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sg-facility-card__icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

/* 6 colori differenziati per i 6 ambienti */
/* 1. Laboratori Creativi (Corallo) */
.sg-facility-card:nth-child(1) {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF6F5 100%);
  border-color: #FFD8D5;
}

.sg-facility-card:nth-child(1) .sg-facility-card__icon {
  background-color: #FFEAEA;
  color: var(--sg-coral);
  border: 2px dashed rgba(255, 90, 95, 0.45);
}

.sg-facility-card:nth-child(1):hover {
  transform: translateY(-8px);
  border-color: var(--sg-coral);
  box-shadow: 0 16px 35px rgba(255, 90, 95, 0.18);
}

.sg-facility-card:nth-child(1):hover .sg-facility-card__icon {
  background-color: var(--sg-coral);
  color: #fff;
  transform: rotate(10deg) scale(1.05);
}

/* 2. Parco & Giardino (Verde Prato) */
.sg-facility-card:nth-child(2) {
  background: linear-gradient(180deg, #FFFFFF 0%, #F2FBF6 100%);
  border-color: #C6F1D9;
}

.sg-facility-card:nth-child(2) .sg-facility-card__icon {
  background-color: #EBF9F1;
  color: #2EB872;
  border: 2px dashed rgba(46, 184, 114, 0.45);
}

.sg-facility-card:nth-child(2):hover {
  transform: translateY(-8px);
  border-color: #2EB872;
  box-shadow: 0 16px 35px rgba(46, 184, 114, 0.18);
}

.sg-facility-card:nth-child(2):hover .sg-facility-card__icon {
  background-color: #2EB872;
  color: #fff;
  transform: rotate(-10deg) scale(1.05);
}

/* 3. Mensa Curata (Giallo Sole / Ambra) */
.sg-facility-card:nth-child(3) {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF0 100%);
  border-color: #FFE7A6;
}

.sg-facility-card:nth-child(3) .sg-facility-card__icon {
  background-color: #FFF6D6;
  color: #D98200;
  border: 2px dashed rgba(255, 183, 3, 0.5);
}

.sg-facility-card:nth-child(3):hover {
  transform: translateY(-8px);
  border-color: #FFB703;
  box-shadow: 0 16px 35px rgba(255, 183, 3, 0.2);
}

.sg-facility-card:nth-child(3):hover .sg-facility-card__icon {
  background-color: #FFB703;
  color: #fff;
  transform: rotate(10deg) scale(1.05);
}

/* 4. Angolo Lettura (Azzurro Cielo) */
.sg-facility-card:nth-child(4) {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F7FF 100%);
  border-color: #CBE3FC;
}

.sg-facility-card:nth-child(4) .sg-facility-card__icon {
  background-color: #E3F0FF;
  color: var(--sg-blue);
  border: 2px dashed rgba(42, 140, 228, 0.45);
}

.sg-facility-card:nth-child(4):hover {
  transform: translateY(-8px);
  border-color: var(--sg-blue);
  box-shadow: 0 16px 35px rgba(42, 140, 228, 0.18);
}

.sg-facility-card:nth-child(4):hover .sg-facility-card__icon {
  background-color: var(--sg-blue);
  color: #fff;
  transform: rotate(-10deg) scale(1.05);
}

/* 5. Salone Gioco (Lilla / Viola) */
.sg-facility-card:nth-child(5) {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF5FF 100%);
  border-color: #E5D4FB;
}

.sg-facility-card:nth-child(5) .sg-facility-card__icon {
  background-color: #F2E7FE;
  color: #8B5CF6;
  border: 2px dashed rgba(139, 92, 246, 0.45);
}

.sg-facility-card:nth-child(5):hover {
  transform: translateY(-8px);
  border-color: #8B5CF6;
  box-shadow: 0 16px 35px rgba(139, 92, 246, 0.18);
}

.sg-facility-card:nth-child(5):hover .sg-facility-card__icon {
  background-color: #8B5CF6;
  color: #fff;
  transform: rotate(10deg) scale(1.05);
}

.sg-facility-card:nth-child(6) .sg-facility-card__icon {
  background-color: #FFE4F0;
  color: #FF4D88;
  border: 2px dashed rgba(255, 77, 136, 0.45);
}

.sg-facility-card:nth-child(6):hover {
  transform: translateY(-8px);
  border-color: #FF4D88;
  box-shadow: 0 16px 35px rgba(255, 77, 136, 0.18);
}

.sg-facility-card:nth-child(6):hover .sg-facility-card__icon {
  background-color: #FF4D88;
  color: #fff;
  transform: rotate(-10deg) scale(1.05);
}

.sg-facility-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--sg-night);
  transition: color 0.3s ease;
}

.sg-facility-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--sg-text-light);
}

/* 5. FUNFACTS / I NOSTRI NUMERI (GRADIENTE AZZURRO CIELO NATURALE) */
.sg-funfact-area {
  background: linear-gradient(135deg, #2A8CE4 0%, #1972CE 100%);
  padding: 65px 0;
  color: #fff;
  position: relative;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sg-funfact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.sg-funfact-item {
  padding: 10px;
}

.sg-funfact-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.sg-funfact-item:hover .sg-funfact-icon {
  transform: scale(1.12);
}

.sg-funfact-item:nth-child(1) .sg-funfact-icon {
  background: rgba(255, 90, 95, 0.32);
  color: #FFFFFF;
}

.sg-funfact-item:nth-child(2) .sg-funfact-icon {
  background: rgba(255, 183, 3, 0.32);
  color: #FFFFFF;
}

.sg-funfact-item:nth-child(3) .sg-funfact-icon {
  background: rgba(46, 184, 114, 0.38);
  color: #FFFFFF;
}

.sg-funfact-item:nth-child(4) .sg-funfact-icon {
  background: rgba(255, 77, 136, 0.35);
  color: #FFFFFF;
}

.sg-funfact-num {
  font-family: var(--sg-font-heading);
  font-size: clamp(34px, 4vw, 48px);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 4px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.sg-funfact-label {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

/* 6. PROGRAMS / SEZIONI (CARD BIANCHE ACCOGLIENTI CON ACCENTI COLORATI) */
.sg-programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.sg-program-card {
  background-color: #ffffff;
  border-radius: 28px;
  padding: 40px 25px 35px;
  text-align: center;
  border: 2px solid var(--sg-border);
  box-shadow: var(--sg-shadow-sm);
  transition: all 0.35s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sg-program-card:hover {
  transform: translateY(-8px);
  border-color: var(--sg-coral);
  box-shadow: 0 15px 35px rgba(255, 122, 89, 0.18);
}

/* Differenziazione a pastello per ciascuna sezione */
/* 1. I Piccoli (Giallo Sole / Ambra) */
.sg-program-card:nth-child(1) {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF2 100%);
  border-color: #FFE699;
}

.sg-program-card:nth-child(1) .sg-program-card__icon {
  background: linear-gradient(135deg, #FFB703 0%, #FFA000 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 183, 3, 0.3);
}

.sg-program-card:nth-child(1) .sg-program-card__age {
  background-color: #FFF4D6;
  color: #D98200;
  border: 1px solid #FFE599;
}

.sg-program-card:nth-child(1) .sg-program-card__btn {
  background-color: #FFB703;
  color: #1E293B;
}

.sg-program-card:nth-child(1):hover {
  border-color: #FFB703;
  box-shadow: 0 15px 35px rgba(255, 183, 3, 0.22);
}

/* 2. I Mezzani (Corallo) */
.sg-program-card:nth-child(2) {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF6F5 100%);
  border-color: #FFCCD0;
}

.sg-program-card:nth-child(2) .sg-program-card__icon {
  background: linear-gradient(135deg, #FF5A5F 0%, #E03E43 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 90, 95, 0.3);
}

.sg-program-card:nth-child(2) .sg-program-card__age {
  background-color: #FFEAEA;
  color: #E03E43;
  border: 1px solid #FFCCD0;
}

.sg-program-card:nth-child(2) .sg-program-card__btn {
  background-color: var(--sg-coral);
  color: #fff;
}

.sg-program-card:nth-child(2):hover {
  border-color: var(--sg-coral);
  box-shadow: 0 15px 35px rgba(255, 90, 95, 0.22);
}

/* 3. I Grandi (Azzurro Cielo) */
.sg-program-card:nth-child(3) {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F7FF 100%);
  border-color: #BFDEFB;
}

.sg-program-card:nth-child(3) .sg-program-card__icon {
  background: linear-gradient(135deg, #2A8CE4 0%, #1972CE 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(42, 140, 228, 0.3);
}

.sg-program-card:nth-child(3) .sg-program-card__age {
  background-color: #E8F4FD;
  color: #1A74C4;
  border: 1px solid #BFDEFB;
}

.sg-program-card:nth-child(3) .sg-program-card__btn {
  background-color: var(--sg-blue);
  color: #fff;
}

.sg-program-card:nth-child(3):hover {
  border-color: var(--sg-blue);
  box-shadow: 0 15px 35px rgba(42, 140, 228, 0.22);
}

/* 4. Servizi & Doposcuola (Verde Prato) */
.sg-program-card:nth-child(4) {
  background: linear-gradient(180deg, #FFFFFF 0%, #F2FBF6 100%);
  border-color: #B8ECCF;
}

.sg-program-card:nth-child(4) .sg-program-card__icon {
  background: linear-gradient(135deg, #2EB872 0%, #208A52 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(46, 184, 114, 0.3);
}

.sg-program-card:nth-child(4) .sg-program-card__age {
  background-color: #EBF9F1;
  color: #208A52;
  border: 1px solid #B8ECCF;
}

.sg-program-card:nth-child(4) .sg-program-card__btn {
  background-color: #2EB872;
  color: #fff;
}

.sg-program-card:nth-child(4):hover {
  border-color: #2EB872;
  box-shadow: 0 15px 35px rgba(46, 184, 114, 0.22);
}

.sg-program-card__icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 18px;
}

.sg-program-card__age {
  display: inline-block;
  font-family: var(--sg-font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.sg-program-card__title {
  color: var(--sg-night);
  font-size: 24px;
  margin-bottom: 14px;
}

.sg-program-card p {
  color: var(--sg-text-light);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.sg-program-card__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sg-program-card:hover .sg-program-card__btn {
  transform: scale(1.15);
}

/* 7. PERCHÉ SCEGLIERCI (SEZIONE AZZURRO CIELO CON ONDE) */
.sg-choose-area {
  position: relative;
  background: linear-gradient(135deg, #2A8CE4 0%, #1972CE 100%);
  color: #fff;
  overflow: hidden;
}

.sg-choose-body {
  padding: 70px 0 100px;
}

.sg-choose-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.sg-choose-text .sg-subtitle {
  color: var(--sg-mango);
}

.sg-choose-text .sg-title {
  color: #fff;
}

.sg-choose-text .sg-title .t-orange {
  color: var(--sg-mango);
}

.sg-lead--white {
  color: rgba(255, 255, 255, 0.95);
  font-size: 18px;
  margin-bottom: 25px;
}

.sg-choose-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
  width: 100%;
}

.sg-choose-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
}

.sg-choose-list i {
  color: var(--sg-mango);
  font-size: 22px;
  margin-top: 2px;
  flex-shrink: 0;
}

.sg-choose-list li>div {
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.sg-choose-list strong {
  display: block;
  font-size: 17px;
  color: #fff;
  font-family: var(--sg-font-heading);
  line-height: 1.35;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.sg-choose-list span {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.sg-choose-blob-wrap {
  position: relative;
  padding: 20px;
  max-width: 100%;
  box-sizing: border-box;
}

.sg-choose-blob-wrap img {
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  border: 8px solid var(--sg-mango);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.sg-choose-float-card {
  position: absolute;
  bottom: 10px;
  left: 20px;
  background-color: #fff;
  color: var(--sg-night);
  padding: 14px 20px;
  border-radius: 30px;
  box-shadow: var(--sg-shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.sg-choose-float-card i {
  color: #E91E63;
  font-size: 18px;
}

/* 8. ISCRIZIONI CARDS (HOME) */
.sg-enroll-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 30px;
}

.sg-enroll-card {
  background-color: #fff;
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  border: 2px solid var(--sg-border);
  box-shadow: var(--sg-shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sg-enroll-badge {
  font-family: var(--sg-font-heading);
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* 4 anni differenziati con palette armoniosa */
.sg-enroll-card:nth-child(1) {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF8F7 100%);
  border-color: #FFCCD0;
}

.sg-enroll-card:nth-child(1) .sg-enroll-badge {
  background-color: #FFEAEA;
  color: #E03E43;
  border: 1px solid #FFCCD0;
}

.sg-enroll-card:nth-child(1) .sg-btn {
  background: var(--sg-coral) !important;
  border-color: var(--sg-coral) !important;
  color: #fff !important;
}

.sg-enroll-card:nth-child(1):hover {
  transform: translateY(-8px);
  border-color: var(--sg-coral);
  box-shadow: 0 14px 30px rgba(255, 90, 95, 0.2);
}

.sg-enroll-card:nth-child(2) {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF2 100%);
  border-color: #FFE699;
}

.sg-enroll-card:nth-child(2) .sg-enroll-badge {
  background-color: #FFF4D6;
  color: #D98200;
  border: 1px solid #FFE599;
}

.sg-enroll-card:nth-child(2) .sg-btn {
  background: #FFB703 !important;
  border-color: #FFB703 !important;
  color: #1E293B !important;
}

.sg-enroll-card:nth-child(2):hover {
  transform: translateY(-8px);
  border-color: #FFB703;
  box-shadow: 0 14px 30px rgba(255, 183, 3, 0.2);
}

.sg-enroll-card:nth-child(3) {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F7FF 100%);
  border-color: #BFDEFB;
}

.sg-enroll-card:nth-child(3) .sg-enroll-badge {
  background-color: #E8F4FD;
  color: #1A74C4;
  border: 1px solid #BFDEFB;
}

.sg-enroll-card:nth-child(3) .sg-btn {
  background: var(--sg-blue) !important;
  border-color: var(--sg-blue) !important;
  color: #fff !important;
}

.sg-enroll-card:nth-child(3):hover {
  transform: translateY(-8px);
  border-color: var(--sg-blue);
  box-shadow: 0 14px 30px rgba(42, 140, 228, 0.2);
}

.sg-enroll-card:nth-child(4) {
  background: linear-gradient(180deg, #FFFFFF 0%, #F2FBF6 100%);
  border-color: #B8ECCF;
}

.sg-enroll-card:nth-child(4) .sg-enroll-badge {
  background-color: #EBF9F1;
  color: #208A52;
  border: 1px solid #B8ECCF;
}

.sg-enroll-card:nth-child(4) .sg-btn {
  background: #2EB872 !important;
  border-color: #2EB872 !important;
  color: #fff !important;
}

.sg-enroll-card:nth-child(4):hover {
  transform: translateY(-8px);
  border-color: #2EB872;
  box-shadow: 0 14px 30px rgba(46, 184, 114, 0.2);
}

.sg-enroll-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.sg-enroll-card p {
  font-size: 14px;
  color: var(--sg-text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

.sg-enroll-note {
  background-color: #FFF3EB;
  border-left: 4px solid var(--sg-coral);
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 15px;
}

.sg-enroll-note i {
  font-size: 22px;
  color: var(--sg-coral);
}

/* 9. TESTIMONIALS (NUVOLA CELESTE PASTELLO) */
.sg-testimonial-cloud {
  background-color: var(--sg-sky-bg);
  border-radius: 60px;
  padding: 70px 40px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  box-shadow: var(--sg-shadow-sm);
  border: 3px dashed rgba(34, 180, 202, 0.35);
}

.sg-testimonial-stars {
  color: var(--sg-mango);
  font-size: 22px;
  margin: 15px 0 20px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.sg-testimonial-quote p {
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.6;
  color: var(--sg-night);
  font-style: italic;
  max-width: 720px;
  margin: 0 auto 25px;
}

.sg-testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sg-author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--sg-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 10px;
}

.sg-testimonial-author strong {
  font-family: var(--sg-font-heading);
  font-size: 18px;
  color: var(--sg-night);
}

.sg-testimonial-author span {
  font-size: 13px;
  color: var(--sg-text-light);
}

/* 10. NEWS & CARDS (VERSIONE COMPATTA E MODERNA) */
.sg-news-area {
  padding: 60px 0 75px;
}

.sg-news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.sg-news-header .sg-section-title {
  margin-bottom: 0;
}

.sg-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.sg-news-card {
  background-color: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  border: 1.5px solid #E2E8F0;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.sg-news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  border-color: #CBD5E1;
}

.sg-news-card__thumb {
  position: relative;
  width: 100%;
  height: 175px;
  overflow: hidden;
  background-color: #F8FAFC;
  display: block;
}

.sg-news-card__thumb img,
img.attachment-sg-card,
img.size-sg-card,
.wp-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.sg-news-card:hover .sg-news-card__thumb img {
  transform: scale(1.04);
}

.sg-news-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sg-news-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--sg-text-light);
  margin-bottom: 8px;
}

.sg-news-card__meta .sg-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sg-news-card__meta .sg-cat {
  background-color: #FFF3EB;
  color: #E8590C;
  border: 1px solid #FFE0CC;
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.sg-news-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}

.sg-news-card__title a {
  color: #1E293B;
  transition: color 0.2s ease;
}

.sg-news-card__title a:hover {
  color: var(--sg-coral);
}

.sg-news-card__excerpt {
  font-size: 13.5px;
  line-height: 1.5;
  color: #64748B;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.sg-news-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed #E2E8F0;
}

.sg-news-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sg-font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sg-coral);
  transition: transform 0.2s ease, color 0.2s ease;
}

.sg-news-card__readmore:hover {
  color: var(--sg-coral-hover);
  transform: translateX(3px);
}

.sg-news-card__fb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #F0F2F5;
  color: #1877F2;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sg-news-card__fb-btn:hover {
  background-color: #1877F2;
  color: #ffffff;
  transform: scale(1.08);
}

/* 10b. CAROSELLO MINI CARD (ULTIMI 10 AGGIORNAMENTI IN HOME) */
.sg-social-carousel {
  position: relative;
}

.sg-social-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 6px 4px 14px;
}

.sg-social-track::-webkit-scrollbar {
  display: none;
}

.sg-social-track > * {
  flex: 0 0 220px;
  scroll-snap-align: start;
}

.sg-social-carousel__arrow {
  position: absolute;
  top: 38%;
  translate: 0 -50%;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #E2E8F0;
  background: #ffffff;
  color: #1E293B;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.sg-social-carousel__arrow:hover {
  background: var(--sg-coral);
  color: #ffffff;
  border-color: var(--sg-coral);
}

.sg-social-carousel__arrow--prev { left: -18px; }
.sg-social-carousel__arrow--next { right: -18px; }

.sg-social-carousel__arrow[disabled] {
  opacity: 0;
  pointer-events: none;
}

.sg-social-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sg-social-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.sg-social-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #F1F5F9;
  cursor: pointer;
}

.sg-social-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.sg-social-card:hover .sg-social-card__img {
  transform: scale(1.05);
}

.sg-social-card__type-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sg-social-card__type-badge--avviso {
  background: linear-gradient(135deg, #FF6B35 0%, #E8590C 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(232, 89, 12, 0.35);
}

.sg-social-card__type-badge--evento {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

.sg-social-card__type-badge--default {
  background: #475569;
  color: #ffffff;
}

.sg-social-card__date-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: #1E293B;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.sg-social-card__multi-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.sg-social-card__caption {
  padding: 10px 12px 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-grow: 1;
}

.sg-social-card__title {
  font-family: var(--sg-font-heading);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  color: #1E293B;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sg-social-card__snippet {
  font-size: 12px;
  line-height: 1.4;
  color: #64748B;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sg-social-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 12px 10px;
}

.sg-social-card__actions-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sg-social-card__btn {
  background: none;
  border: 0;
  padding: 0;
  font-size: 16px;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  text-decoration: none;
  transition: transform 0.15s ease, color 0.15s ease;
}

.sg-social-card__btn:hover { transform: scale(1.15); }
.sg-social-card__btn--fb:hover { color: #1877F2; }
.sg-social-card__btn--heart:hover,
.sg-social-card__btn--heart.is-active { color: #EF4444; }

.sg-social-card__read-link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--sg-font-heading);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sg-coral);
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.sg-social-card__read-link:hover {
  color: var(--sg-coral-hover);
  transform: translateX(2px);
}

@media (max-width: 991px) {
  .sg-social-carousel__arrow--prev { left: -6px; }
  .sg-social-carousel__arrow--next { right: -6px; }
}

@media (max-width: 600px) {
  .sg-social-track > * { flex-basis: 70%; }
  .sg-social-carousel__arrow { display: none; }
}

/* 11. CONTATTI BANNER (MAPPA + BOX MORBIDO CELESTE NUVOLA) */
.sg-contact-banner-area {
  background-color: var(--sg-cloud-footer);
  border-top: 1px solid var(--sg-border);
}

.sg-contact-banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.sg-contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 450px;
  border: 0;
  display: block;
}

.sg-contact-box {
  padding: 70px 60px;
  color: var(--sg-text);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, #F0F7FC 0%, #E6F3FA 100%);
  border-left: 1px solid var(--sg-border);
}

.sg-sun-doodle {
  position: absolute;
  top: 40px;
  right: 50px;
  animation: spinSlow 30s linear infinite;
}

.sg-sun-doodle svg circle,
.sg-sun-doodle svg line {
  stroke: var(--sg-mango) !important;
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.sg-contact-box .sg-subtitle {
  color: var(--sg-coral);
}

.sg-contact-box .sg-title {
  color: var(--sg-night);
  margin-bottom: 8px;
}

.sg-contact-box__sub {
  color: var(--sg-text-light);
  margin-bottom: 28px;
  font-size: 15px;
}

/* MODULO CONTATTI FORM */
.sg-form {
  position: relative;
}

.sg-hp {
  display: none !important;
}

.sg-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.sg-field input,
.sg-field textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1.5px solid #CFE2EE;
  background: #FFFFFF;
  color: var(--sg-text);
  font-family: var(--sg-font-body);
  font-size: 14px;
  transition: all 0.3s ease;
}

.sg-field input:focus,
.sg-field textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--sg-coral);
  box-shadow: 0 0 0 3px rgba(255, 114, 94, 0.2);
}

.sg-field--full {
  grid-column: span 2;
}

.sg-check {
  font-size: 13px;
  color: var(--sg-text);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.sg-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--sg-coral);
}

.sg-alert {
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sg-alert--ok {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.sg-alert--ko {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* FOOTER (CELESTE NUVOLA MORBIDO) */
.sg-footer {
  background-color: var(--sg-cloud-footer);
  position: relative;
  color: var(--sg-text);
  border-top: 1px solid var(--sg-cloud-footer-border);
}

.sg-footer--minimal {
  padding: 38px 0 30px;
  text-align: center;
}

.sg-footer-minimal__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.sg-social-links--footer {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.sg-social-links--footer a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--sg-coral);
  box-shadow: 0 4px 12px rgba(255, 114, 94, 0.15);
  border: 1px solid rgba(255, 114, 94, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  transition: all 0.25s ease;
}

.sg-social-links--footer a:hover {
  background: var(--sg-coral);
  color: #FFFFFF;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 18px rgba(255, 114, 94, 0.3);
}

.sg-footer-minimal__copy {
  margin: 0;
  font-size: 14px;
  color: var(--sg-text-light);
  line-height: 1.6;
}

.sg-newsletter-area {
  position: relative;
  top: -45px;
  margin-bottom: -45px;
  z-index: 10;
}

.sg-newsletter-box {
  background: linear-gradient(135deg, var(--sg-coral) 0%, #FF9066 100%);
  border-radius: 25px;
  padding: 40px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 15px 40px rgba(255, 114, 94, 0.25);
  position: relative;
  overflow: hidden;
}

.sg-newsletter-box__tag {
  display: inline-block;
  font-family: var(--sg-font-sub);
  font-size: 22px;
  color: #FFF2C4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.sg-newsletter-box__title {
  color: #fff;
  font-size: 28px;
  margin-bottom: 6px;
}

.sg-newsletter-box p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  max-width: 600px;
}

.sg-footer-main {
  padding: 100px 0 60px;
}

.sg-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.25fr;
  gap: 48px;
}

.sg-footer-title {
  color: var(--sg-night);
  font-size: 20px;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.sg-footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--sg-coral);
  border-radius: 2px;
}

.sg-footer-desc {
  color: var(--sg-text);
  font-size: 14px;
  line-height: 1.7;
  margin: 20px 0;
}

.sg-social-links {
  display: flex;
  gap: 10px;
}

.sg-social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--sg-teal);
  box-shadow: 0 3px 10px rgba(29, 179, 200, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 1px solid var(--sg-cloud-footer-border);
}

.sg-social-links a:hover {
  background: var(--sg-coral);
  color: #fff;
  transform: translateY(-3px);
  border-color: var(--sg-coral);
}

.sg-footer-links li {
  margin-bottom: 10px;
}

.sg-footer-links a {
  color: var(--sg-text);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sg-footer-links a i {
  color: var(--sg-coral);
  font-size: 12px;
}

.sg-footer-links a:hover {
  color: var(--sg-coral);
  transform: translateX(4px);
}

.sg-footer-features li {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.sg-ff-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--sg-blue);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid var(--sg-cloud-footer-border);
  transition: transform 0.25s ease;
}

.sg-footer-features li:hover .sg-ff-icon {
  transform: scale(1.1);
}

.sg-footer-features li:nth-child(1) .sg-ff-icon {
  background: #FFEAEA;
  color: var(--sg-coral);
  border-color: #FFCCD0;
}

.sg-footer-features li:nth-child(2) .sg-ff-icon {
  background: #E8F4FD;
  color: var(--sg-blue);
  border-color: #BFDEFB;
}

.sg-footer-features li:nth-child(3) .sg-ff-icon {
  background: #FFE4F0;
  color: #FF4D88;
  border-color: #FED4E5;
}

.sg-footer-features strong {
  display: block;
  font-size: 15px;
  color: var(--sg-night);
}

.sg-footer-features span {
  font-size: 13px;
  color: var(--sg-text-light);
}

.sg-contact-info li {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 14px;
}

.sg-contact-icon {
  color: var(--sg-coral);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.sg-contact-info li:nth-child(1) .sg-contact-icon {
  color: var(--sg-coral);
}

.sg-contact-info li:nth-child(2) .sg-contact-icon {
  color: #249A5D;
}

.sg-contact-info li:nth-child(3) .sg-contact-icon {
  color: var(--sg-blue);
}

.sg-contact-info li:nth-child(4) .sg-contact-icon {
  color: #E68A00;
}

.sg-contact-info strong {
  display: block;
  color: var(--sg-night);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sg-contact-info span {
  color: var(--sg-text);
}

.sg-contact-info a:hover {
  color: var(--sg-coral);
}

.sg-copyright {
  background-color: var(--sg-coral);
  padding: 18px 0;
  text-align: center;
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}

/* TORNA SU */
.sg-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--sg-coral);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 6px 18px rgba(255, 122, 89, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sg-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.sg-back-to-top:hover {
  background-color: var(--sg-teal);
  transform: translateY(-4px);
}

/* BANNER PAGINE INTERNE */
.sg-banner {
  position: relative;
  background: linear-gradient(145deg, #EAF4FD 0%, #FFF9EE 50%, #F1F6FD 100%);
  color: var(--sg-text);
  padding: 85px 0 115px;
  text-align: center;
  overflow: hidden;
  /* border-bottom: 1px solid #DCECF8; */
}

.sg-banner .sg-subtitle {
  color: var(--sg-coral) !important;
  font-family: var(--sg-font-sub);
  font-size: 26px;
  margin-bottom: 8px;
  text-shadow: none;
}

.sg-banner__title {
  color: var(--sg-night);
  font-family: var(--sg-font-heading);
  font-size: clamp(34px, 4.5vw, 50px);
  font-weight: 700;
  margin-bottom: 16px;
}

.sg-breadcrumb {
  display: none !important;
}

.sg-breadcrumb a {
  color: var(--sg-blue);
}

.sg-breadcrumb a:hover {
  color: var(--sg-coral);
}

/* PAGINA CHI SIAMO (TIMELINE) */
.sg-historic-card {
  background: #fff;
  border-radius: var(--sg-radius);
  overflow: hidden;
  box-shadow: var(--sg-shadow-md);
  border: 4px solid var(--sg-coral);
}

.sg-historic-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.sg-historic-caption {
  padding: 20px 24px;
}

.sg-historic-caption h4 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--sg-night);
}

.sg-historic-caption p {
  font-size: 14px;
  color: var(--sg-text-light);
}

.sg-highlight-quote {
  background-color: var(--sg-sky-bg);
  border-left: 4px solid var(--sg-coral);
  border-radius: 14px;
  padding: 20px 25px;
  margin-top: 25px;
  position: relative;
}

.sg-highlight-quote i {
  color: var(--sg-coral);
  font-size: 24px;
  margin-bottom: 8px;
}

.sg-highlight-quote p {
  font-style: italic;
  font-size: 16px;
  color: var(--sg-night);
  margin-bottom: 6px;
}

.sg-highlight-quote span {
  font-size: 13px;
  font-weight: 600;
  color: var(--sg-text-light);
}

.sg-timeline-area {
  background-color: var(--sg-sky-bg);
}

.sg-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.sg-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: var(--sg-teal);
  transform: translateX(-50%);
  border-radius: 2px;
}

.sg-timeline-item {
  position: relative;
  margin-bottom: 40px;
  width: 50%;
}

.sg-timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 40px;
  text-align: right;
}

.sg-timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 40px;
  text-align: left;
}

.sg-timeline-badge {
  position: absolute;
  top: 15px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--sg-coral);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(255, 122, 89, 0.4);
  z-index: 2;
}

.sg-timeline-item:nth-child(odd) .sg-timeline-badge {
  right: -22px;
}

.sg-timeline-item:nth-child(even) .sg-timeline-badge {
  left: -22px;
}

.sg-timeline-card {
  background-color: #fff;
  border-radius: var(--sg-radius);
  padding: 24px 28px;
  box-shadow: var(--sg-shadow-sm);
  border: 1px solid var(--sg-border);
  transition: all 0.3s ease;
}

.sg-timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sg-shadow-md);
  border-color: var(--sg-teal);
}

.sg-timeline-date {
  display: inline-block;
  font-family: var(--sg-font-heading);
  font-size: 13px;
  background-color: var(--sg-sky-bg);
  color: var(--sg-teal);
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-weight: 600;
}

.sg-timeline-title {
  font-size: 19px;
  margin-bottom: 10px;
}

.sg-timeline-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--sg-text);
}

.sg-section--orange-cta {
  background: linear-gradient(135deg, var(--sg-coral) 0%, #FF9570 100%);
  color: #fff;
}

.sg-section--orange-cta h2 {
  color: #fff;
  font-size: 34px;
  margin-bottom: 12px;
}

.sg-section--orange-cta p {
  font-size: 17px;
  max-width: 650px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.95);
}

.sg-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* PAGINA ISCRIZIONI */
.sg-enroll-intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.sg-steps-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.sg-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.sg-step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--sg-coral);
  color: #fff;
  font-family: var(--sg-font-heading);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sg-step__content strong {
  display: block;
  font-family: var(--sg-font-heading);
  font-size: 17px;
  color: var(--sg-night);
  margin-bottom: 3px;
}

.sg-step__content p {
  font-size: 14px;
  color: var(--sg-text-light);
}

.sg-card-callout {
  background: linear-gradient(145deg, #F0F8FC 0%, #E6F3FA 100%);
  color: var(--sg-text);
  border-radius: 25px;
  padding: 40px 30px;
  border: 3px dashed var(--sg-teal);
  text-align: center;
  box-shadow: var(--sg-shadow-md);
}

.sg-card-callout__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--sg-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px;
}

.sg-card-callout h3 {
  color: var(--sg-night);
  font-size: 22px;
  margin-bottom: 10px;
}

.sg-card-callout p {
  font-size: 14px;
  color: var(--sg-text-light);
  margin-bottom: 20px;
}

.sg-callout-list {
  text-align: left;
  margin-bottom: 25px;
}

.sg-callout-list li {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(29, 179, 200, 0.25);
  font-size: 14px;
  color: var(--sg-text);
}

.sg-callout-list i {
  color: var(--sg-coral);
  margin-right: 8px;
}

.sg-docs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.sg-doc-card {
  background-color: #fff;
  border-radius: var(--sg-radius);
  padding: 30px 24px;
  box-shadow: var(--sg-shadow-sm);
  border: 1px solid var(--sg-border);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.sg-doc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sg-shadow-md);
  border-color: var(--sg-coral);
}

.sg-doc-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.sg-doc-card__badge {
  background-color: var(--sg-sky-bg);
  color: var(--sg-teal);
  font-family: var(--sg-font-heading);
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 600;
}

.sg-badge--active {
  background-color: #FFF3EB;
  color: var(--sg-coral);
}

.sg-doc-card__type {
  font-size: 28px;
  color: #E53935;
}

.sg-doc-card__title {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.sg-doc-card__desc {
  font-size: 13px;
  color: var(--sg-text-light);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.sg-doc-card__footer {
  margin-top: auto;
}

/* FAQ ACCORDION */
.sg-accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sg-accordion-item {
  background-color: #fff;
  border-radius: 16px;
  border: 1px solid var(--sg-border);
  overflow: hidden;
  box-shadow: var(--sg-shadow-sm);
}

.sg-accordion-header {
  padding: 20px 24px;
  font-family: var(--sg-font-heading);
  font-size: 17px;
  color: var(--sg-night);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.sg-accordion-header i {
  color: var(--sg-coral);
  transition: transform 0.3s ease;
}

.sg-accordion-item[open] .sg-accordion-header i {
  transform: rotate(45deg);
}

.sg-accordion-body {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--sg-text);
  line-height: 1.7;
}

/* PAGINA AVVISI - BANNER IN EVIDENZA */
.sg-notice-banner {
  background: linear-gradient(135deg, var(--sg-coral) 0%, #FF9066 100%);
  color: #fff;
  border-radius: 20px;
  padding: 35px 40px;
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 45px;
  box-shadow: 0 10px 30px rgba(255, 122, 89, 0.3);
}

.sg-notice-banner__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.sg-notice-banner__content {
  flex-grow: 1;
}

.sg-notice-banner__content .sg-tag {
  background-color: var(--sg-mango);
  color: var(--sg-night);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 8px;
}

.sg-notice-banner__content h3 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 6px;
}

.sg-notice-banner__content p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
}

/* PAGINA EVENTI */
.sg-events-hero-box {
  background-color: #fff;
  border-radius: 25px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  margin-bottom: 50px;
  border: 1px solid var(--sg-border);
  box-shadow: var(--sg-shadow-sm);
}

.sg-events-hero-box__content {
  padding: 40px 45px;
}

.sg-events-hero-box__content h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.sg-events-hero-box__media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* PAGINA DOCUMENTI */
.sg-doc-intro-box {
  background-color: var(--sg-sky-bg);
  border-radius: 20px;
  padding: 30px 35px;
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 45px;
  border: 2px dashed rgba(34, 180, 202, 0.35);
}

.sg-doc-intro-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sg-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.sg-doc-intro-box h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.sg-doc-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.sg-doc-group-header i {
  color: var(--sg-coral);
  font-size: 24px;
}

.sg-doc-group-header h2 {
  font-size: 26px;
}

.sg-docs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sg-doc-row {
  background-color: #fff;
  border-radius: 16px;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--sg-shadow-sm);
  border: 1px solid var(--sg-border);
  transition: all 0.3s ease;
}

.sg-doc-row:hover {
  transform: translateX(6px);
  border-color: var(--sg-teal);
  box-shadow: var(--sg-shadow-md);
}

.sg-doc-row__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--sg-sky-bg);
  color: var(--sg-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.sg-doc-row__info {
  flex-grow: 1;
}

.sg-doc-row__info h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.sg-doc-row__info p {
  font-size: 14px;
  color: var(--sg-text-light);
}

/* PAGINA CONTATTI CARDS */
.sg-contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.sg-contact-info-card {
  background-color: #fff;
  border-radius: var(--sg-radius);
  padding: 35px 25px;
  text-align: center;
  box-shadow: var(--sg-shadow-sm);
  border: 1px solid var(--sg-border);
  transition: all 0.3s ease;
}

.sg-contact-info-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sg-shadow-md);
}

.sg-contact-info-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 18px;
}

.sg-icon--orange {
  background: #FFF3EB;
  color: var(--sg-coral);
}

.sg-icon--teal {
  background: var(--sg-sky-bg);
  color: var(--sg-teal);
}

.sg-icon--blue {
  background: #EDE9FE;
  color: var(--sg-purple);
}

.sg-icon--yellow {
  background: #FFF9E6;
  color: var(--sg-mango);
}

.sg-contact-info-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.sg-contact-info-card p,
.sg-contact-info-card address {
  font-size: 14px;
  color: var(--sg-text-light);
  font-style: normal;
  line-height: 1.6;
}

.sg-phone-link,
.sg-email-link {
  margin-top: 10px;
}

.sg-phone-link a,
.sg-email-link a {
  color: var(--sg-teal);
  font-weight: 600;
}

.sg-hours-badge {
  background-color: var(--sg-sky-bg);
  border-radius: 12px;
  padding: 8px 12px;
  margin-top: 10px;
  display: inline-block;
  color: var(--sg-night) !important;
}

/* PAGINA FOTO */
.sg-gallery-intro {
  max-width: 700px;
  margin: 0 auto 40px;
}

.sg-photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.sg-photo-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--sg-shadow-sm);
  background-color: #ffffff;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--sg-border);
}

.sg-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.sg-photo-item:hover img {
  transform: scale(1.03);
  opacity: 0.92;
}

.sg-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(0deg, rgba(30, 41, 59, 0.9) 0%, rgba(30, 41, 59, 0) 100%);
  color: #fff;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.sg-photo-item:hover .sg-photo-caption {
  transform: translateY(0);
}

.sg-photo-caption h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 2px;
}

.sg-photo-caption p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

/* PAGINE GENERICHE & SINGLE */
.sg-content-card {
  background-color: #fff;
  border-radius: 25px;
  padding: 50px 45px;
  box-shadow: var(--sg-shadow-sm);
  border: 1px solid var(--sg-border);
}

.sg-single-meta {
  display: flex;
  gap: 20px;
  color: var(--sg-text-light);
  font-size: 14px;
  margin-bottom: 25px;
}

.sg-single-meta i {
  color: var(--sg-coral);
  margin-right: 6px;
}

.sg-single-card__thumb,
.sg-content-card__featured {
  margin-bottom: 30px;
  border-radius: 20px;
  overflow: hidden;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sg-single-card__thumb img,
.sg-content-card__featured img,
.sg-prose img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
}

.sg-prose {
  font-size: 17px;
  line-height: 1.8;
  color: var(--sg-text);
}

.sg-prose p {
  margin-bottom: 20px;
}

.sg-prose h2,
.sg-prose h3 {
  margin: 30px 0 15px;
}

.sg-single-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--sg-border);
  padding-top: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 15px;
}

/* 404 */
.sg-404-card {
  max-width: 650px;
  margin: 0 auto;
  padding: 40px;
}

.sg-404-code {
  font-family: var(--sg-font-heading);
  font-size: clamp(80px, 15vw, 150px);
  font-weight: 700;
  color: var(--sg-coral);
  line-height: 1;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sg-sun-char i {
  color: var(--sg-mango);
  animation: spinSlow 15s linear infinite;
}

.sg-404-card h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

/* PAGINAZIONE */
.sg-pagination-wrap {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  gap: 8px;
}

.page-numbers {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sg-font-heading);
  font-size: 15px;
  color: var(--sg-night);
  background: #fff;
  border: 1px solid var(--sg-border);
  transition: all 0.3s ease;
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--sg-coral);
  color: #fff;
  border-color: var(--sg-coral);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 991px) {
  .sg-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1200px) {
  .sg-facilities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {

  .sg-nav {
    display: none;
  }

  .sg-header__actions .sg-btn {
    display: none;
  }

  .sg-header__inner {
    height: auto;
    min-height: 64px;
    padding: 8px 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .sg-header__brand {
    min-width: 0;
    flex: 1 1 auto;
    overflow: visible;
    margin-right: 10px;
    display: flex;
    align-items: center;
  }

  .sg-logo {
    gap: 12px;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
  }

  .sg-logo__mark {
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .sg-logo__img {
    width: 62px;
    height: 62px;
    min-width: 62px;
    min-height: 62px;
    border-radius: 50%;
    border: 2.5px solid #FFFFFF;
    box-shadow: 0 4px 14px rgba(42, 140, 228, 0.22);
    flex-shrink: 0;
    background-color: #FFFFFF;
  }

  .sg-logo__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .sg-logo__name {
    font-size: 21px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
    margin: 0;
  }

  .sg-logo__tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    color: #475569;
    margin-top: 1px;
  }

  .sg-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }

  .sg-header__call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    background-color: #F8FAFC;
    color: #0284C7;
    font-size: 18px;
    border: 1.5px solid #E2E8F0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    transition: transform 0.2s ease, background-color 0.2s ease;
  }

  .sg-header__call-btn:hover,
  .sg-header__call-btn:active {
    background-color: #0284C7;
    color: #FFFFFF;
    border-color: #0284C7;
    transform: scale(0.95);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  }

  .sg-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: all 0.2s ease;
  }

  .sg-menu-toggle:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
  }

  .sg-menu-toggle:active {
    background: #F1F5F9;
    transform: scale(0.95);
    box-shadow: none;
  }

  .sg-menu-toggle span {
    display: block;
    width: 20px;
    height: 2.5px;
    border-radius: 2px;
    background-color: #1E293B;
    flex-shrink: 0;
    margin: 0 auto;
    transition: all 0.25s ease;
  }

  .sg-features-grid,
  .sg-programs-grid,
  .sg-enroll-cards,
  .sg-docs-grid,
  .sg-contact-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sg-about-grid,
  .sg-choose-grid,
  .sg-enroll-intro,
  .sg-events-hero-box,
  .sg-contact-banner-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sg-news-grid,
  .sg-photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sg-newsletter-box {
    flex-direction: column;
    text-align: center;
  }

  .sg-newsletter-box p {
    margin: 0 auto;
  }

  .sg-timeline::before {
    left: 20px;
  }

  .sg-timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 60px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .sg-timeline-badge {
    left: -2px !important;
    right: auto !important;
  }
}

@media (max-width: 768px) {

  html,
  body {
    overflow-x: clip;
    width: 100%;
    position: relative;
  }

  .sg-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  /* TOPBAR MOBILE COMPATTA: Informazioni visibili anche su smartphone */
  .sg-topbar {
    display: block !important;
    padding: 6px 0 !important;
    font-size: 11px !important;
    background-color: #FFFFFF !important;
    border-bottom: 1px solid #EEF2F6 !important;
  }

  .sg-topbar__inner {
    justify-content: center !important;
    gap: 8px !important;
  }

  .sg-topbar__left {
    justify-content: center !important;
    gap: 8px !important;
    font-size: 11px !important;
    flex-wrap: wrap !important;
  }

  .sg-topbar__left span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
  }

  .sg-topbar__right {
    display: none !important;
  }

  /* HEADER STICKY MOBILE */
  .sg-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background-color: #FFFFFF !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08) !important;
  }

  .sg-header__inner {
    height: auto !important;
    min-height: 64px !important;
    padding: 8px 16px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .sg-header__brand {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: visible !important;
    margin-right: 10px !important;
    display: flex !important;
    align-items: center !important;
  }

  .sg-logo {
    gap: 12px !important;
    max-width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .sg-logo__mark {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .sg-logo__img {
    width: 66px !important;
    height: 66px !important;
    min-width: 66px !important;
    min-height: 66px !important;
    border-radius: 50% !important;
    border: 2.5px solid #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(42, 140, 228, 0.22) !important;
    flex-shrink: 0 !important;
    background-color: #FFFFFF !important;
  }

  .sg-logo__text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  .sg-logo__name {
    font-size: 21px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    margin: 0 !important;
  }

  .sg-logo__tag {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    color: #475569 !important;
    margin-top: 1px !important;
  }

  .sg-header__actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
  }

  .sg-header__call-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    border-radius: 14px !important;
    background-color: #F8FAFC !important;
    color: #0284C7 !important;
    font-size: 19px !important;
    border: 1.5px solid #E2E8F0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease, background-color 0.2s ease !important;
  }

  .sg-header__call-btn:hover,
  .sg-header__call-btn:active {
    background-color: #0284C7 !important;
    color: #FFFFFF !important;
    border-color: #0284C7 !important;
    transform: scale(0.95) !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;
  }

  /* Su mobile compatto nascondiamo il bottone esteso 'Iscrizioni' dall'header per non schiacciare l'hamburger */
  .sg-header__actions .sg-header__btn {
    display: none !important;
  }

  .sg-menu-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    border-radius: 14px !important;
    border: 1px solid #E2E8F0 !important;
    background: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06) !important;
    cursor: pointer !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
  }

  .sg-menu-toggle:hover {
    background: #F8FAFC !important;
    border-color: #CBD5E1 !important;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08) !important;
  }

  .sg-menu-toggle:active {
    background: #F1F5F9 !important;
    transform: scale(0.95) !important;
    box-shadow: none !important;
  }

  /* Barre uniformi professionali in grigio scuro elegante */
  .sg-menu-toggle span {
    display: block !important;
    width: 22px !important;
    height: 2.5px !important;
    border-radius: 2px !important;
    background-color: #1E293B !important;
    flex-shrink: 0 !important;
    margin: 0 auto !important;
    transition: all 0.25s ease !important;
  }

  @media (max-width: 360px) {
    .sg-container {
      padding-left: 12px !important;
      padding-right: 12px !important;
    }

    .sg-logo {
      gap: 8px !important;
    }

    .sg-logo__img {
      width: 54px !important;
      height: 54px !important;
      min-width: 54px !important;
      min-height: 54px !important;
    }

    .sg-logo__name {
      font-size: 18px !important;
    }

    .sg-header__call-btn,
    .sg-menu-toggle {
      width: 40px !important;
      height: 40px !important;
      min-width: 40px !important;
      min-height: 40px !important;
    }

    .sg-menu-toggle span {
      width: 18px !important;
    }
  }

  /* HERO MOBILE: foto nitida senza tagli e perfettamente raccordata con le nuvole */
  .sg-hero {
    min-height: auto !important;
    padding: 0 !important;
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    display: block !important;
  }

  .sg-hero__canvas {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .sg-hero__img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
  }

  .sg-hero__tag-banner {
    top: 8px !important;
  }

  .sg-hero__tag-banner .sg-hero__sub {
    font-size: 13px !important;
    padding: 4px 14px !important;
  }

  /* GRIDS MOBILE */
  .sg-features-grid,
  .sg-programs-grid,
  .sg-enroll-cards,
  .sg-facilities-grid,
  .sg-funfact-grid,
  .sg-news-grid,
  .sg-docs-grid,
  .sg-photo-gallery,
  .sg-contact-cards-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .sg-footer-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .sg-about-points {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .sg-form__grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .sg-field--full {
    grid-column: span 1 !important;
  }

  .sg-contact-box {
    padding: 35px 16px !important;
  }

  .sg-notice-banner {
    flex-direction: column !important;
    text-align: center !important;
  }

  .sg-doc-row {
    flex-direction: column !important;
    text-align: center !important;
  }

  .sg-about-media {
    margin-top: 25px !important;
  }

  .sg-carousel-prev,
  .sg-carousel-next {
    opacity: 0.9 !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 13px !important;
  }

  .sg-carousel-prev {
    left: 8px !important;
  }

  .sg-carousel-next {
    right: 8px !important;
  }

  .sg-about-badge {
    padding: 12px 16px !important;
    bottom: -15px !important;
    left: -10px !important;
  }

  .sg-badge-num {
    font-size: 26px !important;
  }

  .sg-about-historic-pill {
    top: 10px !important;
    right: -5px !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
  }

  /* SEZIONE VALORI (CHOOSE US) MOBILE - TESTI PERFETTAMENTE FORMATTATI */
  .sg-choose-area {
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .sg-choose-body {
    padding: 40px 0 60px !important;
  }

  .sg-choose-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 30px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .sg-choose-text {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .sg-choose-list {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin-bottom: 25px !important;
  }

  .sg-choose-list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .sg-choose-list i {
    flex-shrink: 0 !important;
    font-size: 20px !important;
    margin-top: 3px !important;
  }

  .sg-choose-list li>div {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .sg-choose-list strong {
    font-size: 15.5px !important;
    line-height: 1.35 !important;
    display: block !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    margin-bottom: 3px !important;
  }

  .sg-choose-list span {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    display: block !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    color: rgba(255, 255, 255, 0.92) !important;
  }

  .sg-choose-cta {
    width: 100% !important;
  }

  .sg-choose-cta .sg-btn {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .sg-choose-media {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .sg-choose-blob-wrap {
    padding: 10px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .sg-choose-blob-wrap img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .sg-choose-float-card {
    position: static !important;
    margin-top: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
   GALLERIA FOTOGRAFICA & LIGHTBOX FACEBOOK
   ========================================================================== */
.sg-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 30px auto 40px;
  max-width: 900px;
}

.sg-filter-btn {
  background-color: #fff;
  color: var(--sg-slate);
  border: 1.5px solid var(--sg-border);
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--sg-font-heading);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.sg-filter-btn:hover {
  border-color: var(--sg-coral);
  color: var(--sg-coral);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.12);
}

.sg-filter-btn.active {
  background-color: var(--sg-coral);
  color: #fff;
  border-color: var(--sg-coral);
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.25);
}

.sg-photo-item {
  cursor: pointer;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 2px solid transparent;
}

.sg-photo-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 136, 0, 0.3);
}

.sg-photo-item__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: var(--sg-night);
  font-family: var(--sg-font-heading);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sg-photo-item__zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(30, 41, 59, 0.7);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.25s ease;
  z-index: 2;
}

.sg-photo-item:hover .sg-photo-item__zoom {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox Modal */
.sg-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(10px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sg-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.sg-lightbox__dialog {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sg-lightbox.is-open .sg-lightbox__dialog {
  transform: scale(1);
}

.sg-lightbox__img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 75vh;
}

.sg-lightbox__img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.sg-lightbox__caption {
  margin-top: 18px;
  text-align: center;
  color: #fff;
  max-width: 700px;
}

.sg-lightbox__caption h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 6px;
  font-family: var(--sg-font-heading);
}

.sg-lightbox__caption p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.sg-lightbox__close {
  position: absolute;
  top: -46px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.sg-lightbox__close:hover {
  color: var(--sg-coral);
  transform: rotate(90deg);
}

.sg-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
}

.sg-lightbox__nav:hover {
  background: #fff;
  color: var(--sg-night);
  transform: translateY(-50%) scale(1.1);
}

.sg-lightbox__nav--prev {
  left: -70px;
}

.sg-lightbox__nav--next {
  right: -70px;
}

@media (max-width: 768px) {
  .sg-lightbox__nav--prev {
    left: 10px;
  }

  .sg-lightbox__nav--next {
    right: 10px;
  }

  .sg-lightbox__close {
    top: 10px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Facebook Callout Banner */
.sg-fb-banner {
  background: linear-gradient(135deg, #1877F2 0%, #0C63D4 100%);
  border-radius: 24px;
  padding: 40px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 60px;
  box-shadow: 0 12px 30px rgba(24, 119, 242, 0.25);
}

.sg-fb-banner__content h3 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sg-fb-banner__content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  max-width: 650px;
  margin: 0;
}

.sg-fb-banner__btn {
  background-color: #fff;
  color: #1877F2;
  font-family: var(--sg-font-heading);
  font-weight: 800;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.sg-fb-banner__btn:hover {
  background-color: #F0F2F5;
  color: #0C63D4;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 900px) {
  .sg-fb-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .sg-fb-banner__content h3 {
    justify-content: center;
  }
}

/* ==========================================================================
   FEED EVENTI STILE FACEBOOK (Larghezza piena, Carosello foto complete, Lightbox locale)
   ========================================================================== */

.sg-fb-feed-stream {
  width: 100%;
  max-width: 100%;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.sg-fb-card {
  width: 100%;
  background-color: #ffffff;
  border-radius: 24px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 22px rgba(42, 140, 228, 0.07);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.sg-fb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(42, 140, 228, 0.14);
  border-color: #CBD5E1;
}

/* Header della card */
.sg-fb-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px 16px;
  border-bottom: 1px solid #F1F5F9;
}

.sg-fb-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2.5px solid #E2E8F0;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 3px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sg-fb-card__avatar:hover {
  transform: scale(1.05);
  border-color: #1877F2;
}

.sg-fb-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sg-fb-card__author-info {
  flex-grow: 1;
  min-width: 0;
}

.sg-fb-card__name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sg-fb-card__author-name {
  font-family: var(--sg-font-heading);
  font-weight: 700;
  font-size: 16px;
  color: #1E293B;
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.sg-fb-card__author-name:hover {
  color: #1877F2;
}

.sg-fb-card__badge {
  color: #1877F2;
  font-size: 14px;
  display: inline-flex;
}

.sg-fb-card__meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748B;
  margin-top: 3px;
}

.sg-fb-card__meta-row i {
  font-size: 11px;
}

.sg-fb-card__dot {
  font-weight: 700;
  color: #94A3B8;
}

.sg-fb-card__corner {
  margin-left: auto;
}

.sg-fb-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #F0F2F5;
  color: #1877F2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sg-fb-icon-btn:hover {
  background-color: #1877F2;
  color: #ffffff;
  transform: scale(1.08);
}

/* Corpo e Testo */
.sg-fb-card__body {
  padding: 22px 28px 18px;
}

.sg-fb-card__title {
  font-family: var(--sg-font-heading);
  font-size: 21px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 14px;
  line-height: 1.35;
}

.sg-fb-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sg-fb-card__title a:hover {
  color: var(--sg-coral);
}

.sg-fb-card__text {
  font-size: 15.5px;
  line-height: 1.7;
  color: #334155;
  word-break: break-word;
}

.sg-fb-card__text p {
  margin-bottom: 12px;
}

.sg-fb-card__text p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   CAROSELLO FOTO FACEBOOK (100% Centrato, Pulito, Senza Sfondi Sotto)
   ========================================================================== */

.sg-fb-carousel {
  position: relative;
  width: 100%;
  height: 520px;
  max-height: 70vh;
  min-height: 380px;
  background-color: #FFFFFF;
  /* Stesso bianco della card: nessun box o sfondo sotto */
  overflow: hidden;
  user-select: none;
  border: none;
}

.sg-fb-swiper {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  perspective: 1200px;
}

.sg-fb-swiper .swiper-wrapper {
  height: 100%;
  align-items: center;
}

.sg-fb-carousel,
.sg-fb-swiper,
.sg-fb-swiper .swiper-wrapper,
.sg-fb-swiper .swiper-slide,
.sg-fb-carousel__slide,
.sg-fb-carousel__slide a {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
}

/* Rimuove completamente qualsiasi ombra scura o cambio di colore di Swiper tra le slide */
.swiper-slide-shadow,
.swiper-slide-shadow-left,
.swiper-slide-shadow-right,
.swiper-slide-shadow-top,
.swiper-slide-shadow-bottom,
.swiper-slide-shadow-coverflow,
.swiper-slide-shadow-creative {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  background: transparent !important;
}

.sg-fb-swiper .swiper-slide {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
  overflow: hidden;
  background-color: #FFFFFF !important;
  margin: 0;
  padding: 14px 20px 34px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.sg-fb-carousel__slide a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0 auto;
  text-decoration: none;
  cursor: zoom-in;
  position: relative;
  background-color: #FFFFFF !important;
}

.sg-fb-carousel__slide img {
  max-width: 100%;
  max-height: 450px;
  /* Risolve il taglio: l'immagine non eccede MAI i 520px del contenitore */
  width: auto;
  height: auto;
  object-fit: contain;
  /* Foto completa al 100%, mai tagliata e perfettamente centrata */
  margin: auto;
  border-radius: 16px;
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.14), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  display: block;
}

.sg-fb-carousel__slide a:hover img {
  transform: scale(1.03) translateY(-6px);
  box-shadow: 0 28px 58px -10px rgba(15, 23, 42, 0.30), 0 14px 28px -6px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.8);
  filter: contrast(1.02) brightness(1.01);
}

.sg-fb-carousel__zoom-hint {
  position: absolute;
  bottom: 24px;
  right: 28px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  z-index: 5;
}

.sg-fb-carousel__slide a:hover .sg-fb-carousel__zoom-hint {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Pulsanti frecce avanti/indietro moderni e puliti */
.sg-fb-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #E2E8F0;
  color: #1E293B;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  transition: all 0.25s ease;
}

.sg-fb-carousel__nav--prev {
  left: 20px;
}

.sg-fb-carousel__nav--next {
  right: 20px;
}

.sg-fb-carousel__nav:hover {
  background: #FFFFFF;
  color: #1877F2;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.25);
}

/* Contatore numerico discreto in alto a destra */
.sg-fb-carousel__counter {
  position: absolute;
  top: 16px;
  right: 22px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  z-index: 9;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

/* Paginazione a pallini in basso */
.sg-fb-swiper-pagination {
  position: absolute;
  bottom: 12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  width: auto !important;
}

.sg-fb-swiper-bullet {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  border: none !important;
  background: rgba(255, 255, 255, 0.5) !important;
  cursor: pointer;
  transition: all 0.25s ease !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
}

.sg-fb-swiper-bullet:hover {
  background: rgba(255, 255, 255, 0.85) !important;
}

.sg-fb-swiper-bullet.swiper-pagination-bullet-active {
  width: 22px !important;
  border-radius: 10px !important;
  background: #2A8CE4 !important;
}

/* Footer con Azioni */
.sg-fb-card__footer {
  padding: 16px 28px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background-color: #FAFCFE;
  border-top: 1px solid #F1F5F9;
}

.sg-fb-card__footer-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sg-fb-card__photo-count {
  font-size: 13px;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  background: #EAF4FD;
  color: #1A74C4;
  padding: 5px 12px;
  border-radius: 14px;
}

.sg-fb-card__footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sg-btn-fb-prosegui {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #1877F2 0%, #0D65D9 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14.5px;
  padding: 11px 24px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.32);
  transition: all 0.25s ease;
}

.sg-btn-fb-prosegui:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.44);
  background: linear-gradient(135deg, #166FE5 0%, #0A58C2 100%);
  color: #ffffff !important;
}

.sg-btn-post-detail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: #F1F5F9;
  color: #475569;
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sg-btn-post-detail:hover {
  background-color: #E2E8F0;
  color: #0F172A;
}

/* ==========================================================================
   LIGHTBOX MODALE IN LOCALE (per vedere le immagini grandi senza account Facebook)
   ========================================================================== */

.sg-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 22, 0.95);
  backdrop-filter: blur(14px);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  user-select: none;
}

.sg-lightbox.is-active {
  opacity: 1;
  visibility: visible;
}

.sg-lightbox__header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  z-index: 10000;
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.85) 0%, rgba(8, 12, 22, 0) 100%);
}

.sg-lightbox__title {
  font-family: var(--sg-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #F1F5F9;
  max-width: 65%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-lightbox__meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.sg-lightbox__counter {
  font-size: 13.5px;
  font-weight: 600;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}

.sg-lightbox__close {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-size: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  line-height: 1 !important;
  padding: 0 !important;
}

.sg-lightbox__close:hover {
  background: #FF4D4D !important;
  border-color: #FF4D4D !important;
  transform: scale(1.08) !important;
}

.sg-lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sg-lightbox__img {
  max-width: 90vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sg-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.2s ease;
}

.sg-lightbox__nav--prev {
  left: 24px;
}

.sg-lightbox__nav--next {
  right: 24px;
}

.sg-lightbox__nav:hover {
  background: #2A8CE4;
  border-color: #2A8CE4;
  transform: translateY(-50%) scale(1.1);
}

/* Responsive Facebook Feed */
@media (max-width: 768px) {
  .sg-fb-card__header {
    padding: 16px 18px 14px;
    gap: 12px;
  }

  .sg-fb-card__body {
    padding: 16px 18px 14px;
  }

  .sg-fb-card__title {
    font-size: 18px;
  }

  .sg-fb-carousel {
    height: 380px;
    min-height: 280px;
    background-color: #FFFFFF !important;
  }

  .sg-fb-swiper {
    padding: 8px 0 28px;
  }

  .sg-fb-swiper .swiper-slide {
    padding: 6px 10px 24px !important;
    box-sizing: border-box !important;
    background-color: #FFFFFF !important;
  }

  .sg-fb-carousel__slide img {
    max-height: 320px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }

  .sg-fb-carousel__nav {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .sg-fb-carousel__nav--prev {
    left: 10px;
  }

  .sg-fb-carousel__nav--next {
    right: 10px;
  }

  .sg-fb-card__footer {
    padding: 14px 18px 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .sg-fb-card__footer-actions {
    width: 100%;
    justify-content: space-between;
  }

  .sg-btn-fb-prosegui {
    flex-grow: 1;
    justify-content: center;
  }

  .sg-lightbox__nav {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .sg-lightbox__nav--prev {
    left: 12px;
  }

  .sg-lightbox__nav--next {
    right: 12px;
  }
}

/* ==========================================================================
   SEZIONE GIOCOSA "I NOSTRI PROGETTI EDUCATIVI" + SLIDER FOTO TONDE IN ALTO
   ========================================================================== */

.sg-projects-showcase {
  background-color: #FFFDF9;
  padding: 70px 0;
  position: relative;
}

.sg-projects-showcase__lead {
  max-width: 780px;
  margin: -18px auto 30px;
  text-align: center;
  font-size: 16px;
  line-height: 1.7;
  color: var(--sg-text-light);
}

/* Banner dello slider con le foto tonde posizionato SOPRA le card */
.sg-ig-stories-banner {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF9F2 100%);
  border: 2px dashed #FFD8A8;
  border-radius: 28px;
  padding: 20px 24px 16px;
  margin: 0 auto 38px;
  box-shadow: 0 10px 28px rgba(255, 122, 89, 0.08);
}

.sg-ig-stories-banner__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  padding: 0 6px;
}

.sg-ig-stories-banner__hint {
  font-family: var(--sg-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--sg-night);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sg-ig-stories-banner__hint i {
  color: var(--sg-coral);
  font-size: 16px;
}

.sg-ig-stories-banner__count {
  font-family: var(--sg-font-accent);
  font-size: 15px;
  background-color: #FFF3D1;
  color: #B45309;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid #FDE68A;
}

.sg-ig-stories-banner .sg-ig-highlights-wrap {
  margin: 8px 0 0;
  padding: 6px 0 2px;
  border-bottom: none;
}

/* Griglia giocosa a 3 colonne nello stile delle card del sito (.sg-program-card / .sg-facility-card) */
.sg-projects-playful-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

@media (max-width: 1024px) {
  .sg-projects-playful-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .sg-projects-playful-grid {
    grid-template-columns: 1fr;
  }

  .sg-ig-stories-banner {
    padding: 16px 12px 12px;
    border-radius: 22px;
  }

  .sg-ig-stories-banner__head {
    justify-content: center;
    text-align: center;
  }
}

.sg-playful-project-card {
  background-color: #ffffff;
  border-radius: 28px;
  padding: 36px 24px 30px;
  text-align: center;
  border: 2px solid var(--sg-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.35s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sg-playful-project-card__icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  transition: all 0.35s ease;
}

.sg-playful-project-card__badge {
  display: inline-block;
  font-family: var(--sg-font-accent);
  font-size: 15px;
  letter-spacing: 0.3px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
  transform: rotate(-1.5deg);
}

.sg-playful-project-card__title {
  font-family: var(--sg-font-heading);
  color: var(--sg-night);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px;
}

.sg-playful-project-card__text {
  color: var(--sg-text-light);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
  flex-grow: 1;
}

.sg-playful-project-card__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-bottom: 20px;
}

.sg-playful-project-card__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--sg-font-heading);
  font-size: 12px;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.88);
  color: var(--sg-night);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px dashed rgba(0, 0, 0, 0.14);
}

.sg-playful-project-card__chip i {
  font-size: 10px;
  color: #FFB703;
}

.sg-playful-project-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sg-font-heading);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sg-playful-project-card:hover .sg-playful-project-card__btn {
  transform: scale(1.06);
}

/* 6 Colori Pastello Giocosi (identici allo stile di Ambienti e Sezioni) */

/* 1. Arte & Musei (Corallo Caldo) */
.sg-playful-project-card:nth-child(1) {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF6F5 100%);
  border-color: #FFD8D5;
}

.sg-playful-project-card:nth-child(1) .sg-playful-project-card__icon {
  background-color: #FFEAEA;
  color: var(--sg-coral);
  border: 2.5px dashed rgba(255, 90, 95, 0.45);
}

.sg-playful-project-card:nth-child(1) .sg-playful-project-card__badge {
  background-color: #FFEAEA;
  color: #E03E43;
  border: 1px solid #FFCCD0;
}

.sg-playful-project-card:nth-child(1) .sg-playful-project-card__btn {
  background-color: var(--sg-coral);
  color: #ffffff;
}

.sg-playful-project-card:nth-child(1):hover {
  transform: translateY(-8px);
  border-color: var(--sg-coral);
  box-shadow: 0 16px 35px rgba(255, 90, 95, 0.18);
}

.sg-playful-project-card:nth-child(1):hover .sg-playful-project-card__icon {
  background-color: var(--sg-coral);
  color: #ffffff;
  transform: rotate(10deg) scale(1.06);
}

/* 2. Gioca-Judo & Sport (Giallo Sole / Ambra) */
.sg-playful-project-card:nth-child(2) {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF2 100%);
  border-color: #FFE699;
}

.sg-playful-project-card:nth-child(2) .sg-playful-project-card__icon {
  background-color: #FFF6D6;
  color: #D98200;
  border: 2.5px dashed rgba(255, 183, 3, 0.55);
}

.sg-playful-project-card:nth-child(2) .sg-playful-project-card__badge {
  background-color: #FFF4D6;
  color: #B45309;
  border: 1px solid #FFE599;
}

.sg-playful-project-card:nth-child(2) .sg-playful-project-card__btn {
  background-color: #FFB703;
  color: #1E293B;
}

.sg-playful-project-card:nth-child(2):hover {
  transform: translateY(-8px);
  border-color: #FFB703;
  box-shadow: 0 16px 35px rgba(255, 183, 3, 0.22);
}

.sg-playful-project-card:nth-child(2):hover .sg-playful-project-card__icon {
  background-color: #FFB703;
  color: #ffffff;
  transform: rotate(-10deg) scale(1.06);
}

/* 3. Natura, Farfalle & Coding (Verde Prato) */
.sg-playful-project-card:nth-child(3) {
  background: linear-gradient(180deg, #FFFFFF 0%, #F2FBF6 100%);
  border-color: #C6F1D9;
}

.sg-playful-project-card:nth-child(3) .sg-playful-project-card__icon {
  background-color: #EBF9F1;
  color: #2EB872;
  border: 2.5px dashed rgba(46, 184, 114, 0.45);
}

.sg-playful-project-card:nth-child(3) .sg-playful-project-card__badge {
  background-color: #EBF9F1;
  color: #208A52;
  border: 1px solid #B8ECCF;
}

.sg-playful-project-card:nth-child(3) .sg-playful-project-card__btn {
  background-color: #2EB872;
  color: #ffffff;
}

.sg-playful-project-card:nth-child(3):hover {
  transform: translateY(-8px);
  border-color: #2EB872;
  box-shadow: 0 16px 35px rgba(46, 184, 114, 0.18);
}

.sg-playful-project-card:nth-child(3):hover .sg-playful-project-card__icon {
  background-color: #2EB872;
  color: #ffffff;
  transform: rotate(10deg) scale(1.06);
}

/* 4. Biblioteca, Musica & Mondo (Lilla / Viola) */
.sg-playful-project-card:nth-child(4) {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF5FF 100%);
  border-color: #E5D4FB;
}

.sg-playful-project-card:nth-child(4) .sg-playful-project-card__icon {
  background-color: #F2E7FE;
  color: #8B5CF6;
  border: 2.5px dashed rgba(139, 92, 246, 0.45);
}

.sg-playful-project-card:nth-child(4) .sg-playful-project-card__badge {
  background-color: #F2E7FE;
  color: #6D28D9;
  border: 1px solid #E5D4FB;
}

.sg-playful-project-card:nth-child(4) .sg-playful-project-card__btn {
  background-color: #8B5CF6;
  color: #ffffff;
}

.sg-playful-project-card:nth-child(4):hover {
  transform: translateY(-8px);
  border-color: #8B5CF6;
  box-shadow: 0 16px 35px rgba(139, 92, 246, 0.18);
}

.sg-playful-project-card:nth-child(4):hover .sg-playful-project-card__icon {
  background-color: #8B5CF6;
  color: #ffffff;
  transform: rotate(-10deg) scale(1.06);
}

/* 5. Sicurezza & Continuità (Azzurro Cielo) */
.sg-playful-project-card:nth-child(5) {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F7FF 100%);
  border-color: #CBE3FC;
}

.sg-playful-project-card:nth-child(5) .sg-playful-project-card__icon {
  background-color: #E3F0FF;
  color: var(--sg-blue);
  border: 2.5px dashed rgba(42, 140, 228, 0.45);
}

.sg-playful-project-card:nth-child(5) .sg-playful-project-card__badge {
  background-color: #E8F4FD;
  color: #1A74C4;
  border: 1px solid #BFDEFB;
}

.sg-playful-project-card:nth-child(5) .sg-playful-project-card__btn {
  background-color: var(--sg-blue);
  color: #ffffff;
}

.sg-playful-project-card:nth-child(5):hover {
  transform: translateY(-8px);
  border-color: var(--sg-blue);
  box-shadow: 0 16px 35px rgba(42, 140, 228, 0.18);
}

.sg-playful-project-card:nth-child(5):hover .sg-playful-project-card__icon {
  background-color: var(--sg-blue);
  color: #ffffff;
  transform: rotate(10deg) scale(1.06);
}

/* 6. Feste con i Nonni, Amicizia & Cuore (Rosa Confetto) */
.sg-playful-project-card:nth-child(6) {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF5F9 100%);
  border-color: #FBCFE8;
}

.sg-playful-project-card:nth-child(6) .sg-playful-project-card__icon {
  background-color: #FFE4F0;
  color: #FF4D88;
  border: 2.5px dashed rgba(255, 77, 136, 0.45);
}

.sg-playful-project-card:nth-child(6) .sg-playful-project-card__badge {
  background-color: #FFE4F0;
  color: #DB2777;
  border: 1px solid #FBCFE8;
}

.sg-playful-project-card:nth-child(6) .sg-playful-project-card__btn {
  background-color: #FF4D88;
  color: #ffffff;
}

.sg-playful-project-card:nth-child(6):hover {
  transform: translateY(-8px);
  border-color: #FF4D88;
  box-shadow: 0 16px 35px rgba(255, 77, 136, 0.18);
}

.sg-playful-project-card:nth-child(6):hover .sg-playful-project-card__icon {
  background-color: #FF4D88;
  color: #ffffff;
  transform: rotate(-10deg) scale(1.06);
}

/* Nota finale giocosa "…e tantissimo altro ogni giorno!" */
.sg-projects-showcase__more-note {
  margin-top: 34px;
  text-align: center;
}

.sg-projects-showcase__more-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #FFF8E1 0%, #FFF0F3 100%);
  border: 2px dashed #FFB703;
  color: var(--sg-night);
  font-family: var(--sg-font-heading);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(255, 183, 3, 0.12);
}

.sg-projects-showcase__more-pill i {
  color: #FF7A59;
  font-size: 18px;
}

/* ==========================================================================
   SEZIONE EVENTI STILE INSTAGRAM (PROFILO + SLIDER STORIE + GRIGLIA 3x3)
   ========================================================================== */

.sg-ig-section {
  padding: 40px 0 80px;
}

.sg-ig-showcase {
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 55px rgb(15 23 42 / 0.08);
  padding: 34px 32px 40px;
}

@media (max-width: 680px) {
  .sg-ig-showcase {
    padding: 22px 14px 28px;
    border-radius: 20px;
  }
}

/* Header Profilo Instagram */
.sg-ig-profile {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid #f1f5f9;
}

@media (max-width: 680px) {
  .sg-ig-profile {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }
}

.sg-ig-profile__avatar-wrap {
  display: flex;
  justify-content: center;
}

.sg-ig-profile__avatar-ring {
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  display: inline-flex;
  box-shadow: 0 10px 25px rgb(220 39 67 / 0.22);
}

.sg-ig-profile__avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  border: 4px solid #ffffff;
}

.sg-ig-profile__top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 680px) {
  .sg-ig-profile__top-row {
    justify-content: center;
  }
}

.sg-ig-profile__handle {
  font-family: 'Nunito', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sg-ig-verified {
  color: #0095f6;
  font-size: 1.05rem;
}

.sg-ig-profile__tag {
  font-size: 0.78rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 4px 11px;
  border-radius: 999px;
}

.sg-ig-profile__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #334155;
}

@media (max-width: 680px) {
  .sg-ig-profile__stats {
    justify-content: center;
    gap: 18px;
  }
}

.sg-ig-profile__stats strong {
  font-weight: 800;
  color: #0f172a;
}

.sg-ig-profile__bio p {
  margin: 0 0 4px;
  font-size: 0.9rem;
  line-height: 1.48;
  color: #334155;
}

.sg-ig-profile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.sg-ig-follow-btn {
  flex: 1 1 240px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #4f46e5;
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgb(59 130 246 / 0.25);
  transition: transform 0.2s, filter 0.2s;
}

.sg-ig-follow-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.sg-ig-action-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #f1f5f9;
  color: #1e293b !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  transition: background-color 0.2s;
}

.sg-ig-action-secondary:hover {
  background: #e2e8f0;
}

/* Slider Orizzontale Cerchi Storie in Evidenza (Stile Instagram Screenshot) */
.sg-ig-highlights-wrap {
  position: relative;
  margin: 24px 0 26px;
  padding: 4px 6px;
}

.sg-ig-highlights {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 6px 8px 10px;
}

.sg-ig-highlights::-webkit-scrollbar {
  display: none;
}

.sg-ig-story-item {
  scroll-snap-align: start;
  flex: 0 0 92px;
  width: 92px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-family: inherit;
  transition: transform 0.2s ease;
}

.sg-ig-story-item:hover {
  transform: translateY(-3px);
}

.sg-ig-story-item__ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--story-color, #f09433) 0%, #dc2743 55%, #bc1888 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgb(15 23 42 / 0.12);
}

.sg-ig-story-item__thumb-wrap {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ffffff;
  background: #f1f5f9;
  display: block;
}

.sg-ig-story-item__thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.sg-ig-story-item:hover .sg-ig-story-item__thumb-wrap img {
  transform: scale(1.08);
}

.sg-ig-story-item__label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #1e293b;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Frecce circolari bianche (< e >) sullo slider Storie come nello screenshot */
.sg-ig-highlights__arrow {
  position: absolute;
  top: 34px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: rgb(255 255 255 / 0.95);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgb(15 23 42 / 0.22);
  transition: transform 0.2s, background-color 0.2s;
}

.sg-ig-highlights__arrow:hover {
  background: #ffffff;
  transform: scale(1.1);
}

.sg-ig-highlights__arrow--prev {
  left: 6px;
}

.sg-ig-highlights__arrow--next {
  right: 6px;
}

/* Barra Filtri Progetto & Tab Stile Instagram */
.sg-ig-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 4px;
  margin-bottom: 18px;
}

.sg-ig-filter-bar::-webkit-scrollbar {
  display: none;
}

.sg-ig-filter-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 7px 14px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sg-ig-filter-tab:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.sg-ig-filter-tab.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* Griglia Quadrata 3x3 Stile Instagram */
.sg-ig-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

@media (max-width: 600px) {
  .sg-ig-grid {
    gap: 3px;
  }
}

.sg-ig-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #e2e8f0;
  overflow: hidden;
  cursor: pointer;
  border-radius: 6px;
}

.sg-ig-tile.is-hidden-page {
  display: none;
}

.sg-ig-tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.sg-ig-tile:hover .sg-ig-tile__img {
  transform: scale(1.06);
}

.sg-ig-tile__multi-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  color: #ffffff;
  font-size: 15px;
  filter: drop-shadow(0 2px 5px rgb(0 0 0 / 0.55));
}

.sg-ig-tile__cat-pill {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  background: rgb(15 23 42 / 0.72);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  border-left: 3px solid var(--cat-col, #f97316);
  max-width: calc(100% - 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 600px) {
  .sg-ig-tile__cat-pill {
    display: none;
  }
}

.sg-ig-tile__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgb(15 23 42 / 0.25) 0%, rgb(15 23 42 / 0.84) 100%);
  color: #ffffff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.sg-ig-tile:hover .sg-ig-tile__overlay,
.sg-ig-tile:focus-visible .sg-ig-tile__overlay {
  opacity: 1;
}

.sg-ig-tile__date {
  font-size: 0.74rem;
  font-weight: 700;
  color: #fdba74;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sg-ig-tile__title {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.28;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sg-ig-tile__cta {
  font-size: 0.76rem;
  font-weight: 700;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.sg-ig-load-more-wrap {
  text-align: center;
  margin-top: 26px;
}

.sg-ig-load-more-hint {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

/* ==========================================================================
   MODAL VISUALIZZATORE STORIA / POST STILE INSTAGRAM (<dialog>)
   ========================================================================== */

dialog.sg-ig-modal:modal {
  overscroll-behavior: contain;
}

dialog.sg-ig-modal::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgb(2 6 23 / 0.85);
  backdrop-filter: blur(8px);
}

dialog.sg-ig-modal {
  padding: 0;
  border: none;
  background: transparent;
  max-width: min(1040px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  width: 100%;
  margin: auto;
  overflow: visible;
}

.sg-ig-modal__shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sg-ig-modal__close {
  position: absolute;
  top: -12px;
  right: -8px;
  z-index: 30;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #ea580c;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.35);
}

.sg-ig-modal__card {
  width: 100%;
  max-width: 920px;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  max-height: calc(100dvh - 48px);
  box-shadow: 0 28px 75px rgb(0 0 0 / 0.55);
}

@media (max-width: 780px) {
  .sg-ig-modal__card {
    grid-template-columns: 1fr;
    max-width: 420px;
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
  }
}

.sg-ig-modal__stage {
  position: relative;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  max-height: calc(100dvh - 48px);
  padding: 36px 12px 16px;
}

@media (max-width: 780px) {
  .sg-ig-modal__stage {
    min-height: 290px;
    max-height: 340px;
  }
}

/* Barre avanzamento storia in alto */
.sg-ig-modal__progress {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  gap: 5px;
}

.sg-ig-modal__progress-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgb(255 255 255 / 0.32);
  cursor: pointer;
  transition: background-color 0.2s;
}

.sg-ig-modal__progress-bar.is-filled {
  background: #ffffff;
}

.sg-ig-modal__stage-top {
  position: absolute;
  top: 22px;
  left: 14px;
  right: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sg-ig-modal__project-badge {
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.sg-ig-modal__photo-counter {
  background: rgb(15 23 42 / 0.75);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.sg-ig-modal__img {
  max-width: 100%;
  max-height: min(560px, 68dvh);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

@media (max-width: 780px) {
  .sg-ig-modal__img {
    max-height: 265px;
  }
}

.sg-ig-modal__photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgb(255 255 255 / 0.88);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.28);
}

.sg-ig-modal__photo-nav--prev {
  left: 10px;
}

.sg-ig-modal__photo-nav--next {
  right: 10px;
}

.sg-ig-modal__details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 22px;
  background: #ffffff;
  max-height: calc(100dvh - 48px);
}

.sg-ig-modal__author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.sg-ig-modal__author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  border: 1px solid #e2e8f0;
}

.sg-ig-modal__author strong {
  display: block;
  font-size: 0.88rem;
  color: #0f172a;
}

.sg-ig-modal__author span {
  font-size: 0.78rem;
  color: #64748b;
}

.sg-ig-modal__scroll-body {
  padding: 14px 0;
  overflow-y: auto;
  max-height: 340px;
  flex-grow: 1;
}

.sg-ig-modal__title {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.3;
}

.sg-ig-modal__text p {
  font-size: 0.9rem;
  line-height: 1.56;
  color: #334155;
  margin: 0 0 10px;
}

.sg-ig-modal__footer {
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sg-ig-modal__btn {
  flex: 1;
  padding: 9px 14px;
  font-size: 0.84rem;
}

.sg-ig-modal__fb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #1877f2;
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
}

.sg-ig-modal__event-nav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgb(255 255 255 / 0.92);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  margin: 0 10px;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.35);
}

@media (max-width: 900px) {
  .sg-ig-modal__event-nav {
    display: none;
  }
}


/* Vita a Scuola: griglia senza box contenitore e senza intestazione profilo */
.sg-ig-showcase,
.sg-ig-showcase:hover {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.sg-ig-showcase .sg-ig-filter-bar {
  border-top: 0;
}

/* FOOTER MINIMALE: Solo icone Social/Contatti e Copyright */
.sg-footer--minimal {
  background-color: var(--sg-cloud-footer, #F4F8FA);
  border-top: 1px solid var(--sg-cloud-footer-border, #E2ECF0);
  padding: 36px 0 28px !important;
  text-align: center;
}

.sg-footer-minimal__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.sg-social-links--footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.sg-social-links--footer a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--sg-coral, #FF5E3A);
  box-shadow: 0 4px 12px rgba(255, 114, 94, 0.15);
  border: 1px solid rgba(255, 114, 94, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.sg-social-links--footer a:hover {
  background: var(--sg-coral, #FF5E3A);
  color: #FFFFFF;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 18px rgba(255, 114, 94, 0.35);
}

.sg-footer-minimal__copy {
  margin: 0;
  font-size: 13.5px;
  color: var(--sg-text-light, #718096);
  line-height: 1.6;
}


/* ==========================================================================
   OTTIMIZZAZIONE RESPONSIVE: LE NOSTRE ATTIVITA, CARD HOME & MODALE DETTAGLIO
   ========================================================================== */

/* Nota Facebook sotto i titoli delle sezioni */
.sg-news-lead {
  font-family: var(--sg-font-heading);
  font-size: 15px;
  color: #64748B;
  margin: -10px 0 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.5;
}

.sg-news-fb-link {
  color: var(--sg-coral);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.sg-news-fb-link i.fa-facebook {
  color: #1877F2;
  font-size: 17px;
}

.sg-news-fb-link:hover {
  color: var(--sg-coral-hover);
  text-decoration: underline;
}

.sg-news-header {
  margin-bottom: 20px;
}

.sg-news-header .sg-section-title {
  margin-bottom: 10px;
}

/* Banner "Le nostre attività" (stories circolari) */
.sg-ig-stories-banner {
  padding: 22px 26px 18px !important;
}

.sg-ig-stories-banner__head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}

.sg-ig-stories-banner__count {
  font-size: 16px !important;
  font-weight: 800 !important;
  padding: 6px 16px !important;
}

/* Cerchi delle attività: più grandi, visibili e facili da toccare */
.sg-ig-story-item {
  flex: 0 0 102px !important;
  width: 102px !important;
}

.sg-ig-story-item__ring {
  width: 90px !important;
  height: 90px !important;
  padding: 3.5px !important;
}

.sg-ig-story-item__label {
  font-size: 0.82rem !important;
  max-width: 98px !important;
  font-weight: 700 !important;
}

/* Tablet & Mobile: Dimensioni Generose per Le Nostre Attività & Card Home */
@media (max-width: 991px) {
  .sg-ig-stories-banner {
    padding: 18px 16px 14px !important;
  }

  .sg-ig-stories-banner__head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .sg-news-fb-note {
    border-radius: 16px;
    padding: 10px 14px;
    font-size: 13.5px;
  }

  .sg-social-track > * {
    flex: 0 0 calc((100% - 20px) / 2) !important;
  }

  .sg-social-card__title {
    font-size: 15px !important;
  }

  .sg-social-card__snippet {
    font-size: 13px !important;
  }
}

@media (max-width: 768px) {
  .sg-ig-story-item {
    flex: 0 0 116px !important;
    width: 116px !important;
    gap: 10px !important;
  }

  .sg-ig-story-item__ring {
    width: 108px !important;
    height: 108px !important;
    padding: 4px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15) !important;
  }

  .sg-ig-story-item__thumb-wrap {
    border-width: 3.5px !important;
  }

  .sg-ig-story-item__label {
    font-size: 0.88rem !important;
    max-width: 114px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
  }

  .sg-ig-highlights {
    gap: 18px !important;
    padding-bottom: 8px !important;
  }

  .sg-ig-stories-banner {
    padding: 20px 14px 16px !important;
  }
}

@media (max-width: 640px) {
  .sg-social-track > * {
    flex: 0 0 82% !important;
  }

  .sg-social-card__title {
    font-size: 15px !important;
  }

  .sg-social-card__snippet {
    font-size: 13px !important;
  }
}

/* ==========================================================================
   IL DETTAGLIO (MODALE STORIE / EVENTI) SU TABLET E MOBILE:
   Eliminato il vincolo stretto max-width: 420px, spazio ampio e leggibile
   ========================================================================== */

@media (max-width: 1024px) {
  dialog.sg-ig-modal {
    max-width: min(680px, calc(100vw - 24px)) !important;
    max-height: calc(100dvh - 24px) !important;
    width: 100% !important;
  }

  .sg-ig-modal__card {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 32px) !important;
    overflow-y: auto !important;
    border-radius: 24px !important;
  }

  .sg-ig-modal__stage {
    min-height: 380px !important;
    max-height: 52vh !important;
    padding: 40px 16px 18px !important;
  }

  .sg-ig-modal__img {
    max-height: 46vh !important;
    object-fit: contain !important;
  }

  .sg-ig-modal__details {
    padding: 24px 26px 28px !important;
  }

  .sg-ig-modal__title {
    font-size: 1.35rem !important;
    line-height: 1.35 !important;
    margin-bottom: 12px !important;
  }

  .sg-ig-modal__text p,
  .sg-ig-modal__text {
    font-size: 1.02rem !important;
    line-height: 1.65 !important;
  }

  .sg-ig-modal__close {
    top: -12px !important;
    right: -8px !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 20px !important;
  }

  .sg-ig-modal__photo-nav {
    width: 44px !important;
    height: 44px !important;
    font-size: 20px !important;
  }

  .sg-ig-modal__project-badge {
    font-size: 0.85rem !important;
    padding: 5px 12px !important;
  }

  .sg-ig-modal__photo-counter {
    font-size: 0.82rem !important;
    padding: 5px 12px !important;
  }
}

@media (max-width: 640px) {
  dialog.sg-ig-modal {
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
  }

  .sg-ig-modal__card {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 20px) !important;
    border-radius: 20px !important;
  }

  .sg-ig-modal__stage {
    min-height: 320px !important;
    max-height: 48vh !important;
    padding: 34px 10px 14px !important;
  }

  .sg-ig-modal__img {
    max-height: 42vh !important;
  }

  .sg-ig-modal__details {
    padding: 18px 18px 24px !important;
  }

  .sg-ig-modal__title {
    font-size: 1.24rem !important;
    line-height: 1.32 !important;
    margin-bottom: 10px !important;
  }

  .sg-ig-modal__text p,
  .sg-ig-modal__text {
    font-size: 0.98rem !important;
    line-height: 1.6 !important;
  }

  .sg-ig-modal__close {
    top: -10px !important;
    right: -6px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
  }

  .sg-ig-modal__photo-nav {
    width: 38px !important;
    height: 38px !important;
    font-size: 18px !important;
  }
}
