/* ============================================================
   Mixtura Orchestra — Modern Static Site
   Mobile-first, light theme, green/yellow/red palette
   ============================================================ */

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

:root {
  /* Colors — light theme */
  --c-bg: #ffffff;
  --c-bg-alt: #f7f7f5;
  --c-surface: #ffffff;
  --c-surface-hover: #f0f0ec;
  --c-border: rgba(0, 0, 0, 0.08);
  --c-border-light: rgba(0, 0, 0, 0.12);
  --c-text: #1a1a1a;
  --c-text-muted: #5c5c5c;
  --c-text-subtle: #8a8a8a;
  --c-heading: #111111;

  /* Brand triad */
  --c-green: #208037;
  --c-yellow: #fab72f;
  --c-red: #b20b08;

  /* Accent = green (primary), yellow & red for accents */
  --c-accent: #208037;
  --c-accent-hover: #1a6d2d;
  --c-accent-subtle: rgba(32, 128, 55, 0.08);
  --c-yellow-subtle: rgba(250, 183, 47, 0.12);
  --c-red-subtle: rgba(178, 11, 8, 0.08);

  --c-white: #ffffff;
  --c-overlay: rgba(0, 0, 0, 0.45);

  /* Typography */
  --ff-heading: "Outfit", sans-serif;
  --ff-body: "Inter", sans-serif;
  --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --fs-sm: clamp(0.8125rem, 0.77rem + 0.2vw, 0.875rem);
  --fs-base: clamp(0.9375rem, 0.88rem + 0.3vw, 1rem);
  --fs-md: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --fs-xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --fs-2xl: clamp(1.875rem, 1.4rem + 2.4vw, 2.75rem);
  --fs-3xl: clamp(2.25rem, 1.5rem + 3.75vw, 3.75rem);

  /* Spacing */
  --sp-xs: 0.5rem;
  --sp-sm: 0.75rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;
  --sp-section: clamp(4rem, 3rem + 5vw, 8rem);

  /* Layout */
  --max-w: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms;
  --t-base: 250ms;
  --t-slow: 400ms;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 4px 20px rgba(32, 128, 55, 0.25);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

a:hover {
  color: var(--c-accent-hover);
}

h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-heading);
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }

ul { list-style: none; }

.hidden { display: none !important; }

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1000;
  padding: 8px 16px;
  background: var(--c-accent);
  color: var(--c-white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top var(--t-fast);
}

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

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-lg);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--sp-xl);
  }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--sp-md) 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--c-border);
  transition: padding var(--t-base) var(--ease),
              background var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}

.site-header.scrolled {
  padding: var(--sp-xs) 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
}

.brand img {
  height: 36px;
  width: auto;
  transition: transform var(--t-base) var(--ease);
}

.brand:hover img {
  transform: scale(1.05);
}

/* Nav */
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.nav-list a {
  display: block;
  padding: var(--sp-xs) var(--sp-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--c-accent);
  background: var(--c-accent-subtle);
}

/* Hamburger */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--c-border-light);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}

.nav-toggle:hover {
  background: var(--c-bg-alt);
  border-color: var(--c-border-light);
}

.nav-toggle__icon {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background var(--t-fast) var(--ease);
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: absolute;
  left: 0;
  transition: transform var(--t-base) var(--ease);
}

.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle__label {
  display: inline;
}

/* Mobile nav */
@media (max-width: 859px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 80px var(--sp-lg) var(--sp-xl);
    background: var(--c-white);
    border-left: 1px solid var(--c-border);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform var(--t-slow) var(--ease);
    overflow-y: auto;
  }

  .nav-list[data-open="true"] {
    transform: translateX(0);
  }

  .nav-list a {
    font-size: var(--fs-md);
    padding: var(--sp-md) var(--sp-sm);
    border-bottom: 1px solid var(--c-border);
    border-radius: 0;
  }

  .nav-list a:hover {
    background: var(--c-accent-subtle);
  }
}

/* ============================================================
   SLIDESHOW
   ============================================================ */
.slideshow {
  position: relative;
  width: 100%;
  height: 65vh;
  overflow: hidden;
  background: #000;
}

.slideshow-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* Dots */
.slideshow-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}

.dot.active {
  background: #fff;
  transform: scale(1.4);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Prev / Next */
.slideshow-prev,
.slideshow-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              opacity var(--t-base) var(--ease);
  opacity: 0.6;
}

.slideshow-prev:hover,
.slideshow-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.5);
}

.slideshow-prev { left: 1.5rem; }
.slideshow-next { right: 1.5rem; }

@media (max-width: 640px) {
  .slideshow-prev,
  .slideshow-next {
    width: 36px;
    height: 36px;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.4;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t-base) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--c-green);
  color: var(--c-white);
}

.btn-primary:hover {
  background: var(--c-accent-hover);
  color: var(--c-white);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--c-bg-alt);
  color: var(--c-text);
  border: 1px solid var(--c-border-light);
}

.btn-secondary:hover {
  background: var(--c-accent-subtle);
  color: var(--c-green);
  border-color: var(--c-green);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--c-text-muted);
  border: 1px solid var(--c-border-light);
}

.btn-ghost:hover {
  background: var(--c-accent-subtle);
  color: var(--c-green);
  border-color: var(--c-green);
  transform: translateY(-2px);
}

.btn-small {
  padding: 8px 18px;
  font-size: var(--fs-xs);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: var(--sp-section) 0;
}

.section-alt {
  background: var(--c-bg-alt);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--sp-3xl);
}

.section-head h2 {
  margin-bottom: var(--sp-md);
}

/* Tricolor underline under section titles */
.section-head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  border-radius: 2px;
  margin: var(--sp-md) auto 0;
  background: linear-gradient(90deg,
    var(--c-green)  0%  10%,
    var(--c-yellow) 10% 20%,
    var(--c-red)    20% 30%,
    #000            30% 70%,
    var(--c-red)    70% 80%,
    var(--c-yellow) 80% 90%,
    var(--c-green)  90% 100%
  );
}

.muted {
  color: var(--c-text-muted);
}

.small {
  font-size: var(--fs-xs);
}

.section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  justify-content: center;
  margin-top: var(--sp-2xl);
}

/* ============================================================
   GRID
   ============================================================ */
.grid {
  display: grid;
  gap: var(--sp-lg);
}

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

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

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-xl);
  transition: border-color var(--t-base) var(--ease),
              transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}

.card:hover {
  border-color: rgba(32, 128, 55, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin-bottom: var(--sp-sm);
  font-size: var(--fs-lg);
}

.card p {
  color: var(--c-text-muted);
  line-height: 1.7;
}

.card p + p,
.card p + ul,
.card ul + p {
  margin-top: var(--sp-md);
}

/* Check list */
.check {
  margin-top: var(--sp-md);
}

.check li {
  position: relative;
  padding-left: 28px;
  padding-block: 4px;
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
}

.check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-accent-subtle);
  border: 2px solid var(--c-green);
}

.check li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 13px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--c-green);
  border-bottom: 2px solid var(--c-green);
  transform: rotate(-45deg);
}

/* Event cards */
.event {
  display: flex;
  flex-direction: column;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

.pill {
  display: inline-block;
  padding: 4px 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}

/* Alternate pill colors with the triad */
.event:nth-child(1) .pill {
  background: var(--c-accent-subtle);
  color: var(--c-green);
}

.event:nth-child(2) .pill {
  background: var(--c-yellow-subtle);
  color: #b58a00;
}

.event:nth-child(3) .pill {
  background: var(--c-red-subtle);
  color: var(--c-red);
}

.event h3 {
  margin-bottom: var(--sp-sm);
}

.event .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--c-bg-alt);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease),
              filter var(--t-slow) var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.85);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}

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

/* ============================================================
   CONTACT FORM
   ============================================================ */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--sp-lg);
}

.field span {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--c-text);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px var(--c-accent-subtle);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

/* Contact list */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  color: var(--c-text-muted);
}

.contact-list .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--c-accent-subtle);
  color: var(--c-green);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  flex-shrink: 0;
}

svg.icon {
  padding: 10px;
}

.contact-list a {
  color: var(--c-text-muted);
}

.contact-list a:hover {
  color: var(--c-green);
}

/* ============================================================
   SOCIAL
   ============================================================ */
.social-links {
  display: flex;
  justify-content: center;
  gap: var(--sp-md);
  flex-wrap: nowrap;
}

.social-link {
  display: flex;
  align-items: center;
  padding: var(--sp-xs);
  opacity: 0.85;
  transition: opacity var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}

.social-link:hover {
  opacity: 1;
  transform: translateY(-3px);
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-heading);
  color: rgba(255, 255, 255, 0.7);
  border-top: none;
  padding-top: var(--sp-3xl);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.6);
}

.site-footer a:hover {
  color: var(--c-yellow);
}

.footer-inner {
  display: grid;
  gap: var(--sp-2xl);
  margin-bottom: var(--sp-2xl);
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.2fr 2fr;
  }
}

.footer-brand img {
  height: 32px;
  width: auto;
  margin-bottom: var(--sp-md);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.footer-cols {
  display: grid;
  gap: var(--sp-2xl);
}

@media (min-width: 480px) {
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--sp-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.footer-links a,
.footer-links span {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--t-fast) var(--ease);
}

.footer-links a:hover {
  color: var(--c-yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--sp-lg) 0;
  text-align: center;
}

.footer-bottom .muted {
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease),
              transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 500ms; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: 600ms; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

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

/* ============================================================
   FOCUS VISIBLE
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--c-green);
  outline-offset: 3px;
}

/* ============================================================
   MOBILE OVERLAY (when nav is open)
   ============================================================ */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--c-overlay);
  z-index: 90;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ============================================================
   SELECTION
   ============================================================ */
::selection {
  background: var(--c-yellow);
  color: var(--c-heading);
}

/* ============================================================
   SCROLLBAR (Webkit)
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--c-bg-alt);
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* ============================================================
   INTRO / STORIA
   ============================================================ */
.intro-section {
  background: #ffffff;
  padding: var(--sp-section) 0;
}

.intro-wrapper {
  max-width: 700px;
  margin-inline: auto;
  padding: 0 var(--sp-lg);
}

.intro-ornament {
  text-align: center;
  color: rgba(100, 70, 20, 0.4);
  font-size: 1rem;
  margin-bottom: var(--sp-2xl);
  user-select: none;
}

.intro-ornament--bottom {
  margin-bottom: 0;
  margin-top: var(--sp-2xl);
}

.intro-text {
  text-align: left;
}

.intro-h1 {
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--c-heading);
  margin-bottom: var(--sp-md);
}

.intro-tagline {
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.3rem);
  font-style: italic;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-xl);
  line-height: 1.6;
}

.intro-p {
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.2rem);
  line-height: 1.9;
  color: #28150a;
  margin-bottom: var(--sp-lg);
}

/* Expand button */
.intro-expand-wrap {
  text-align: center;
  margin: var(--sp-md) 0 var(--sp-lg);
}

.intro-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-yellow);
  border: none;
  cursor: pointer;
  color: #1a1a1a;
  box-shadow: 0 2px 10px rgba(250, 183, 47, 0.45);
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}

.intro-expand-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(250, 183, 47, 0.6);
}

.intro-arrow {
  transition: transform 0.45s var(--ease);
}

.intro-expand-btn[aria-expanded="true"] .intro-arrow {
  transform: rotate(180deg);
}

/* Expandable content — height animated via JS */
.intro-more {
  height: 0;
  overflow: hidden;
  overflow-anchor: none;
}

.intro-expand-wrap {
  overflow-anchor: none;
}

/* ============================================================
   PROGETTI
   ============================================================ */
.progetti-section {
  position: relative;
  padding: var(--sp-section) 0;
  background-image: url("/assets/images/galleria1.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@media (max-width: 640px) {
  .progetti-section {
    background-attachment: scroll;
  }
}

.progetti-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  z-index: 0;
}

.progetti-inner {
  position: relative;
  z-index: 1;
}

.progetti-head h2 {
  color: var(--c-white);
}

.progetti-head .progetti-subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-md);
}

.progetti-description {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--sp-3xl);
  text-align: center;
}

.progetti-p {
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.25rem);
  line-height: 1.9;
  color: var(--c-white);
  margin-bottom: var(--sp-md);
}

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

/* Cards grid */
.progetto-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
}

@media (min-width: 640px) {
  .progetto-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.progetto-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: var(--sp-sm);
  text-align: center;
}

.progetto-card:focus-visible {
  outline: 2px solid var(--c-yellow);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.progetto-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}

.progetto-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease),
              filter var(--t-slow) var(--ease);
}

.progetto-card:hover .progetto-img-wrap img,
.progetto-card:focus-visible .progetto-img-wrap img {
  transform: scale(1.07);
  filter: brightness(0.6);
}

.progetto-hover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}

.progetto-card:hover .progetto-hover-overlay,
.progetto-card:focus-visible .progetto-hover-overlay {
  opacity: 1;
}

.progetto-hover-label {
  font-family: var(--ff-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 22px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-full);
}

.progetto-label {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: 0.02em;
}

/* ============================================================
   RASSEGNA STAMPA — Parlano di noi
   ============================================================ */
.rassegna-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-lg);
}

@media (min-width: 640px) {
  .rassegna-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .rassegna-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rassegna-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-xl);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t-base) var(--ease),
              transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}

.rassegna-card:hover {
  border-color: rgba(32, 128, 55, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.rassegna-source {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-green);
}

.rassegna-quote {
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.15rem);
  font-style: italic;
  line-height: 1.75;
  color: var(--c-text-muted);
  flex: 1;
}

.rassegna-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-green);
  margin-top: var(--sp-xs);
  transition: gap var(--t-fast) var(--ease);
}

.rassegna-card:hover .rassegna-cta {
  gap: 8px;
}

/* ============================================================
   PROGETTO MODALS
   ============================================================ */
.progetto-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 200;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) var(--ease),
              visibility var(--t-base) var(--ease);
}

.progetto-modal-backdrop.open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.progetto-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-lg);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) var(--ease),
              visibility var(--t-base) var(--ease);
}

.progetto-modal.open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.progetto-modal-inner {
  position: relative;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(24px) scale(0.97);
  transition: transform var(--t-slow) var(--ease);
}

.progetto-modal.open .progetto-modal-inner {
  transform: translateY(0) scale(1);
}

.progetto-modal-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
}

.progetto-modal-body {
  padding: var(--sp-xl);
}

.progetto-modal-body h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-md);
  color: var(--c-heading);
}

.progetto-modal-body p {
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.15rem);
  line-height: 1.85;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-md);
}

.progetto-modal-body p:last-child {
  margin-bottom: 0;
}

#modal-scuola .progetto-modal-body h3,
#modal-scuola .progetto-modal-body li,
#modal-teambuilding .progetto-modal-body h3,
#modal-teambuilding .progetto-modal-body li {
  font-family: "Crimson Pro", Georgia, serif;
}

#modal-scuola .progetto-modal-body li,
#modal-teambuilding .progetto-modal-body li {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.15rem);
  line-height: 1.85;
  color: var(--c-text-muted);
}

.progetto-modal-close {
  position: absolute;
  top: var(--sp-md);
  right: var(--sp-md);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  color: var(--c-text);
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: background var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}

.progetto-modal-close:hover {
  background: var(--c-white);
  transform: scale(1.1);
}
