/*
Theme Name:   Hello Elementor Child — Allenamento Golf River
Theme URI:    https://github.com/elementor/hello-theme
Description:  Child theme di Hello Elementor per il sito Allenamento Golf River.
              Importa lo stile del parent e aggiunge CSS personalizzato per
              replicare l'estetica Squarespace River (sezioni scure/chiare alternate,
              font Cormorant + DM Sans, effetti reveal, ticker, contatore).
Author:       Allenamento Golf River
Template:     hello-elementor
Version:      1.0.0
Text Domain:  hello-elementor-child
*/

/* ─── Importa il foglio di stile del tema padre ─── */
@import url('../hello-elementor/style.css');

/* ─── Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ================================================================
   VARIABILI GLOBALI
   ================================================================ */
:root {
  --agr-nero:        #0d0d0d;
  --agr-scuro:       #1a1a18;
  --agr-grigio:      #2e2e2b;
  --agr-bianco:      #f5f3ee;   /* warm off-white come Squarespace River */
  --agr-accent:      #c8b896;   /* gold/tan */
  --agr-text-dark:   #1a1a18;
  --agr-text-light:  #f5f3ee;
  --agr-text-muted:  #888880;
  --agr-max-w:       1400px;
  --agr-gutter:      5vw;
  --agr-ease-out:    cubic-bezier(0.19, 1, 0.22, 1);
  --agr-ease-io:     cubic-bezier(0.76, 0, 0.24, 1);
  --agr-dur:         0.9s;
}

/* ================================================================
   BODY / BASE
   ================================================================ */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--agr-bianco);
  color: var(--agr-text-dark);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ================================================================
   CUSTOM CURSOR
   ================================================================ */
.agr-cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--agr-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--agr-ease-out),
              width 0.3s var(--agr-ease-out),
              height 0.3s var(--agr-ease-out);
  mix-blend-mode: difference;
}
.agr-cursor.expand {
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--agr-accent);
}

/* ================================================================
   ANIMAZIONI REVEAL (scroll)
   Aggiungere la classe .agr-reveal a ogni widget Elementor
   da animare. Aggiungere .agr-delay-N per scaglionare.
   ================================================================ */
.agr-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--agr-dur) var(--agr-ease-out),
              transform var(--agr-dur) var(--agr-ease-out);
}
.agr-reveal.agr-visible {
  opacity: 1;
  transform: translateY(0);
}
.agr-delay-1 { transition-delay: 0.10s; }
.agr-delay-2 { transition-delay: 0.20s; }
.agr-delay-3 { transition-delay: 0.32s; }
.agr-delay-4 { transition-delay: 0.45s; }
.agr-delay-5 { transition-delay: 0.60s; }

/* ================================================================
   HERO SECTION
   In Elementor: Sezione > altezza 100vh, immagine sfondo
   ================================================================ */
.agr-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--agr-gutter) 8vh;
  background: var(--agr-nero);
  overflow: hidden;
}
.agr-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,13,13,0.25) 0%,
    rgba(13,13,13,0.10) 45%,
    rgba(13,13,13,0.72) 100%
  );
  z-index: 1;
}
.agr-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.agr-hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--agr-accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: agr-fadeUp 1s var(--agr-ease-out) 0.3s forwards;
}
.agr-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 6rem);
  font-weight: 300;
  color: var(--agr-text-light);
  line-height: 1.08;
  margin-bottom: 2rem;
  opacity: 0;
  animation: agr-fadeUp 1.1s var(--agr-ease-out) 0.5s forwards;
}
.agr-hero-actions {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: agr-fadeUp 1s var(--agr-ease-out) 0.75s forwards;
}

@keyframes agr-fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator hero */
.agr-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  right: var(--agr-gutter);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: agr-fadeUp 1s var(--agr-ease-out) 1.2s forwards;
}
.agr-scroll-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,243,238,0.5);
  writing-mode: vertical-rl;
}
.agr-scroll-line {
  width: 1px; height: 60px;
  background: rgba(245,243,238,0.25);
  position: relative;
  overflow: hidden;
}
.agr-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--agr-accent);
  animation: agr-scrollDown 2s ease 1.5s infinite;
}
@keyframes agr-scrollDown {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ================================================================
   BOTTONI
   ================================================================ */
.agr-btn-primary {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: var(--agr-accent);
  color: var(--agr-nero);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--agr-accent);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}
.agr-btn-primary:hover {
  background: transparent;
  color: var(--agr-accent);
}
.agr-btn-ghost {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: transparent;
  color: var(--agr-text-light);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(245,243,238,0.4);
  text-decoration: none;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.agr-btn-ghost:hover { border-color: var(--agr-text-light); }
.agr-btn-ghost-dark {
  border-color: rgba(26,26,24,0.4);
  color: var(--agr-text-dark);
}
.agr-btn-ghost-dark:hover {
  border-color: var(--agr-text-dark);
  color: var(--agr-text-dark);
}

/* ================================================================
   TICKER / MARQUEE
   ================================================================ */
.agr-ticker {
  background: var(--agr-accent);
  overflow: hidden;
  padding: 0.75rem 0;
  white-space: nowrap;
}
.agr-ticker-inner {
  display: inline-flex;
  animation: agr-ticker 25s linear infinite;
}
.agr-ticker-item {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--agr-nero);
  padding: 0 3rem;
}
.agr-ticker-dot { color: rgba(13,13,13,0.35); }
@keyframes agr-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ================================================================
   SEZIONE 2 — INTRO + FEATURE CARDS (sfondo bianco)
   TRANSIZIONE: il fondo bianco "emerge" dal nero del hero
   usando un clip-path o un bordo arrotondato superiore
   ================================================================ */
.agr-section-intro {
  background: var(--agr-bianco);
  padding: 10vmax var(--agr-gutter);
}
.agr-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: start;
  max-width: var(--agr-max-w);
  margin: 0 auto;
}
.agr-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--agr-text-muted);
  margin-bottom: 1.2rem;
}
.agr-heading-lg {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 300;
  color: var(--agr-text-dark);
  margin-bottom: 2rem;
}
.agr-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--agr-text-muted);
  margin-bottom: 2.5rem;
  max-width: 420px;
  line-height: 1.7;
}

/* Feature cards accordion-style */
.agr-cards { display: flex; flex-direction: column; }
.agr-card {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(26,26,24,0.1);
  transition: padding-left 0.4s var(--agr-ease-out);
  cursor: default;
}
.agr-card:first-child { border-top: 1px solid rgba(26,26,24,0.1); }
.agr-card:hover { padding-left: 1rem; }
.agr-card-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--agr-accent);
  margin-bottom: 0.6rem;
}
.agr-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--agr-text-dark);
  margin-bottom: 0.5rem;
}
.agr-card-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--agr-text-muted);
  line-height: 1.7;
}

/* ================================================================
   SEZIONE 3 — TESTIMONIAL (sfondo scuro)
   TRANSIZIONE dark ↔ light: onda clip-path top + bottom
   ================================================================ */
.agr-section-dark {
  background: var(--agr-scuro);
  padding: 10vmax var(--agr-gutter);
  position: relative;
  overflow: hidden;
}

/* Transizione curva tra sezione bianca → scura (sotto sezione 2) */
.agr-section-dark.agr-wave-top::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 80px;
  background: var(--agr-bianco);
  clip-path: ellipse(55% 100% at 50% 0%);
  z-index: 0;
}
/* Transizione curva tra sezione scura → bianca (sopra sezione 4) */
.agr-section-dark.agr-wave-bottom::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: var(--agr-bianco);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 0;
}
.agr-section-dark.agr-wave-top::before,
.agr-section-dark.agr-wave-bottom::after {
  pointer-events: none;
}

/* Quote decorativa grande */
.agr-section-testimonial::before {
  content: '"';
  position: absolute;
  top: -0.1em; left: var(--agr-gutter);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(10rem, 20vw, 20rem);
  color: rgba(200,184,150,0.06);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}
.agr-testimonial-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.agr-testimonial-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--agr-text-light);
  line-height: 1.45;
  margin-bottom: 2.5rem;
}
.agr-testimonial-author {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--agr-accent);
}

/* ================================================================
   SEZIONE 4 — PRODOTTI / PROGRAMMI (sfondo bianco)
   ================================================================ */
.agr-section-light {
  background: var(--agr-bianco);
  padding: 10vmax var(--agr-gutter);
}
.agr-products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  max-width: var(--agr-max-w);
  margin-left: auto;
  margin-right: auto;
}
.agr-products-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--agr-text-muted);
  border-bottom: 1px solid var(--agr-text-muted);
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.agr-products-link:hover {
  color: var(--agr-text-dark);
  border-color: var(--agr-text-dark);
}
.agr-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: var(--agr-max-w);
  margin: 0 auto;
}
.agr-product-card { display: flex; flex-direction: column; cursor: pointer; }
.agr-product-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #ddd;
  margin-bottom: 1.2rem;
}
.agr-product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--agr-ease-out);
}
.agr-product-card:hover .agr-product-img img { transform: scale(1.04); }
.agr-product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}
.agr-product-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--agr-text-muted);
  margin-bottom: 1rem;
  flex: 1;
  line-height: 1.6;
}
.agr-product-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--agr-text-dark);
  margin-bottom: 1rem;
}
.agr-btn-add {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--agr-nero);
  color: var(--agr-text-light);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--agr-nero);
  transition: background 0.3s ease, color 0.3s ease;
}
.agr-btn-add:hover { background: transparent; color: var(--agr-nero); }

/* ================================================================
   SEZIONE 5 — STATS + TESTIMONIAL 2 (sfondo scuro)
   Transizione curva anche qui
   ================================================================ */
.agr-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: center;
  max-width: var(--agr-max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.agr-stat-big {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(5rem, 12vw, 11rem);
  font-weight: 300;
  color: var(--agr-text-light);
  line-height: 1;
  margin-bottom: 1rem;
}
.agr-stat-big span { color: var(--agr-accent); }
.agr-stat-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: rgba(245,243,238,0.55);
  max-width: 350px;
  line-height: 1.7;
}
.agr-stats-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 2.4vw, 2.2rem);
  font-style: italic;
  font-weight: 300;
  color: var(--agr-text-light);
  line-height: 1.5;
  border-left: 2px solid var(--agr-accent);
  padding-left: 2rem;
}
.agr-stats-author {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--agr-accent);
  margin-top: 1.5rem;
  padding-left: 2rem;
}

/* ================================================================
   SEZIONE 6 — INSTRUCTOR BIO (sfondo bianco)
   ================================================================ */
.agr-instructor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: center;
  max-width: var(--agr-max-w);
  margin: 0 auto;
}
.agr-instructor-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #ddd;
  position: relative;
}
.agr-instructor-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color 0.4s ease;
  pointer-events: none;
}
.agr-instructor-img:hover::after { border-color: var(--agr-accent); }
.agr-instructor-title-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--agr-accent);
  margin-bottom: 2rem;
  font-weight: 400;
}
.agr-bio {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--agr-text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.8;
}
.agr-cert-list { list-style: none; margin-bottom: 2.5rem; }
.agr-cert-list li {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--agr-text-muted);
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(26,26,24,0.08);
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
}
.agr-cert-list li::before {
  content: '▸';
  color: var(--agr-accent);
  flex-shrink: 0;
}

/* ================================================================
   SEZIONE 7 — CTA BANNER (sfondo nero)
   ================================================================ */
.agr-section-cta {
  background: var(--agr-nero);
  padding: 10vmax var(--agr-gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.agr-section-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,184,150,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.agr-cta-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--agr-accent);
  margin-bottom: 1.5rem;
}
.agr-cta-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  font-weight: 300;
  color: var(--agr-text-light);
  margin: 0 auto 2.5rem;
  max-width: 700px;
}
.agr-cta-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: rgba(245,243,238,0.5);
  margin: 0 auto 2.5rem;
  max-width: 480px;
}
.agr-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ================================================================
   FOOTER
   ================================================================ */
.agr-footer {
  background: var(--agr-nero);
  padding: 5rem var(--agr-gutter) 3rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.agr-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  max-width: var(--agr-max-w);
  margin: 0 auto 4rem;
}
.agr-footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--agr-text-light);
  margin-bottom: 1rem;
}
.agr-footer-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: rgba(245,243,238,0.4);
  max-width: 280px;
  line-height: 1.7;
}
.agr-footer-col-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--agr-accent);
  margin-bottom: 1.2rem;
}
.agr-footer-links { list-style: none; }
.agr-footer-links li { margin-bottom: 0.6rem; }
.agr-footer-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: rgba(245,243,238,0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}
.agr-footer-links a:hover { color: var(--agr-text-light); }
.agr-footer-bottom {
  max-width: var(--agr-max-w);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: rgba(245,243,238,0.3);
}
.agr-footer-social { display: flex; gap: 1.5rem; }
.agr-footer-social a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,243,238,0.3);
  text-decoration: none;
  transition: color 0.3s ease;
}
.agr-footer-social a:hover { color: var(--agr-text-light); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .agr-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --agr-gutter: 6vw; }
  .agr-intro-grid,
  .agr-stats-grid,
  .agr-instructor-grid { grid-template-columns: 1fr; gap: 3rem; }
  .agr-products-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .agr-products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .agr-footer-grid { grid-template-columns: 1fr 1fr; }
  .agr-wave-top::before,
  .agr-wave-bottom::after { height: 50px; }
}
@media (max-width: 480px) {
  .agr-products-grid { grid-template-columns: 1fr; }
  .agr-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .agr-cta-actions { flex-direction: column; align-items: center; }
}
