/* ===================================
   ASSOCIAZIONE SAPERI – STYLE SYSTEM
   =================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #1a6bb5;
  --primary-dark: #124f8a;
  --primary-light: #e8f2fc;
  --secondary: #4caf7d;
  --secondary-dark: #3a8f63;
  --secondary-light: #e8f7ef;
  --accent: #54d2ff;
  --accent-light: #e0faff;
  --text-dark: #1a1a2e;
  --text-body: #444f6b;
  --text-muted: #8892a4;
  --bg-white: #ffffff;
  --bg-light: #f7f9fc;
  --bg-section: #f0f5fb;
  --border: rgba(226, 232, 240, 0.8);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-sm: 0 2px 12px rgba(26, 107, 181, 0.05);
  --shadow-md: 0 12px 35px rgba(26, 107, 181, 0.1);
  --shadow-lg: 0 25px 70px rgba(26, 107, 181, 0.15);
  --radius: 18px;
  --radius-sm: 10px;
  --radius-xl: 32px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;
}

/* Glassmorphism Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--glass-border);
}

.aurora-bg {
  position: relative;
  overflow: hidden;
}

.aurora-bg::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(26, 107, 181, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(76, 175, 125, 0.05) 0%, transparent 40%);
  z-index: -1;
  animation: aurora-flow 20s linear infinite;
}

@keyframes aurora-flow {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes staggeredFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Loader --- */
.loader-wrapper {
  position: fixed;
  inset: 0;
  background: var(--bg-white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}

.loader-content {
  text-align: center;
  animation: float 2s ease-in-out infinite;
}

.loader-logo {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.loader-bar {
  width: 60px;
  height: 3px;
  background: var(--primary-light);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.loader-bar::after {
  content: "";
  position: absolute;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary);
  animation: loading-bar 1.5s infinite;
}

@keyframes loading-bar {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.loader-wrapper.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  color: var(--text-body);
}

/* --- Containers --- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-sm {
  padding: 70px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 16px auto 0;
  color: var(--text-muted);
}

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 14px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(26, 107, 181, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26, 107, 181, 0.4);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(76, 175, 125, 0.3);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(84, 210, 255, 0.3);
}

.btn-accent:hover {
  background: #e0762c;
  transform: translateY(-2px);
}

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

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* =====================
   NAVBAR
   ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  transition: var(--transition);
}

.navbar.scrolled .navbar-brand {
  color: var(--text-dark);
}

.navbar-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.navbar-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 4px 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
  transition: var(--transition);
  display: block;
}

.navbar.scrolled .navbar-logo-img {
  box-shadow: 0 2px 10px rgba(26, 107, 181, 0.13);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar-nav a {
  padding: 8px 16px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
}

.navbar.scrolled .navbar-nav a {
  color: var(--text-body);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.navbar.scrolled .navbar-nav a:hover,
.navbar.scrolled .navbar-nav a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.navbar-cta {
  margin-left: 12px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  width: 28px;
  position: relative;
}

.hamburger span {
  width: 100%;
  height: 2.5px;
  background: #fff;
  border-radius: 4px;
  transition: var(--transition);
}

.navbar.scrolled .hamburger span {
  background: var(--text-dark);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
  background: #fff;
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
  background: #fff;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--text-dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.1);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open a:nth-child(1) {
  transition-delay: 0.1s;
}

.mobile-menu.open a:nth-child(2) {
  transition-delay: 0.15s;
}

.mobile-menu.open a:nth-child(3) {
  transition-delay: 0.2s;
}

.mobile-menu.open a:nth-child(4) {
  transition-delay: 0.25s;
}

.mobile-menu.open a:nth-child(5) {
  transition-delay: 0.3s;
}

.mobile-menu.open a:nth-child(6) {
  transition-delay: 0.35s;
}

.mobile-menu a:hover {
  color: var(--secondary);
  transform: scale(1.1);
}

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg,
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg {
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18, 79, 138, 0.88) 0%, rgba(26, 107, 181, 0.75) 50%, rgba(76, 175, 125, 0.55) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 20px;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero h1 span {
  color: #54d2ff;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 20px 30px;
}

.hero-stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-heading);
}

.hero-stat .label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* =====================
   ABOUT SECTION
   ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  border-radius: var(--radius-xl);
  object-fit: cover;
  width: 100%;
  height: 480px;
  box-shadow: var(--shadow-lg);
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--secondary);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about-badge .big {
  font-size: 2rem;
  font-weight: 800;
}

.about-badge .small {
  font-size: 0.8rem;
  opacity: 0.9;
}

.about-content .section-tag {
  text-align: left;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-section);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.value-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* =====================
   ACTIVITIES CARDS
   ===================== */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}

.activity-card {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.activity-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.activity-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.activity-card:hover .activity-card-img img {
  transform: scale(1.05);
}

.activity-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
}

.activity-card-body {
  padding: 24px;
}

.activity-card h3 {
  margin-bottom: 10px;
}

.activity-card p {
  font-size: 0.92rem;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-section);
  color: var(--text-body);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 100px;
}

/* =====================
   WHY US
   ===================== */
.whyus {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.whyus .section-header h2,
.whyus .section-header p {
  color: #fff;
}

.whyus .section-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.whyus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.whyus-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  transition: var(--transition);
}

.whyus-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-5px);
}

.whyus-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 20px;
}

.whyus-card h3 {
  color: #fff;
  margin-bottom: 10px;
}

.whyus-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.93rem;
}

/* =====================
   TESTIMONIALS
   ===================== */
.testimonials {
  background: var(--bg-section);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 5rem;
  font-family: var(--font-heading);
  color: var(--primary-light);
  line-height: 1;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 14px;
}

.testimonial-card p {
  font-size: 0.97rem;
  color: var(--text-body);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.author-info .name {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.92rem;
}

.author-info .role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =====================
   STAFF
   ===================== */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.staff-card {
  text-align: center;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.staff-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.staff-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 4px solid var(--primary-light);
}

.staff-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.staff-card h4 {
  margin-bottom: 4px;
}

.staff-role {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.staff-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* =====================
   FAQ
   ===================== */
.faq-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open {
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  gap: 16px;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 28px;
  height: 28px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition);
  font-weight: 700;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =====================
   GALLERY
   ===================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 260px);
  gap: 14px;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  cursor: pointer;
}

.gallery-item:nth-child(1) {
  grid-column: 1 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 107, 181, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

/* =====================
   CONTACT SECTION
   ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-text .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-item-text .value {
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 2px;
}

.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-light);
  transition: var(--transition);
  outline: none;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26, 107, 181, 0.08);
}

.form-group textarea {
  height: 130px;
}

.map-wrap {
  margin-top: 50px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-wrap iframe {
  display: block;
}

/* =====================
   DOPOSCUOLA PAGE
   ===================== */
.doposcuola-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 140px 0 100px;
  color: #fff;
}

.doposcuola-hero h1 {
  color: #fff;
}

.doposcuola-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  font-size: 1.15rem;
}

.doposcuola-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.detail-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.detail-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.detail-card .icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.detail-card h4 {
  margin-bottom: 8px;
}

.detail-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.subject-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-section);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-weight: 500;
  transition: var(--transition);
}

.subject-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.subject-item .subject-icon {
  font-size: 1.3rem;
}

/* =====================
   PAGE HERO (inner pages)
   ===================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--secondary) 100%);
  padding: 140px 0 90px;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: #fff;
}

/* =====================
   CTA SECTION
   ===================== */
.cta-section {
  background: linear-gradient(135deg, #0d7bbf 0%, #29abe2 60%, #5bc8f5 100%);
  text-align: center;
  padding: 90px 0;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 36px;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
}

.footer-logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  align-items: flex-start;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--secondary);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

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

.designer-credit {
  width: 100%;
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.rygen-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.rygen-link:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(245, 135, 58, 0.5);
}

/* =====================
   WHATSAPP BUTTON
   ===================== */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: pulse-wa 2.5s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
}

.whatsapp-btn svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

@keyframes pulse-wa {

  0%,
  100% {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
  }
}

/* =====================
   ENTRANCE ANIMATIONS
   ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 {
  transition-delay: 0.1s;
}

.fade-in-delay-2 {
  transition-delay: 0.2s;
}

.fade-in-delay-3 {
  transition-delay: 0.3s;
}

.fade-in-delay-4 {
  transition-delay: 0.4s;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrap img {
    height: 380px;
  }

  .about-badge {
    bottom: 10px;
    right: 10px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-item:nth-child(1) {
    grid-column: 1;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .navbar-nav,
  .navbar-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-stats {
    gap: 14px;
  }

  .hero-stat {
    padding: 14px 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-item {
    height: 220px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .contact-form-wrap {
    padding: 28px 20px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .doposcuola-hero {
    padding: 120px 0 70px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 100px 0 20px;
  }

  .whatsapp-btn {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }

  .btn-lg {
    padding: 15px 28px;
    font-size: 1rem;
  }
}