/*
 * Theme Name:   Oltre Collina Child
 * Theme URI:    https://oltrecollina.it
 * Description:  Tema child di GeneratePress per la CER Oltre Collina – Torino
 * Author:       Oltre Collina CER
 * Author URI:   https://oltrecollina.it
 * Template:     generatepress
 * Version:      1.0.0
 * License:      GNU General Public License v2
 * Text Domain:  oltre-collina-child
 */

/* ============================================================
   VARIABILI COLORI
   ============================================================ */
:root {
  --verde:        #2d6a4f;
  --verde-chiaro: #52b788;
  --ambra:        #e9c46a;
  --ambra-scuro:  #f4a261;
  --terra:        #6b4c11;
  --crema:        #fefae0;
  --testo:        #2d2d2d;
}

/* ============================================================
   TIPOGRAFIA GLOBALE
   ============================================================ */
body {
  font-family: 'Lato', sans-serif;
  color: var(--testo);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--verde);
}

a { color: var(--verde); }
a:hover { color: var(--verde-chiaro); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.main-navigation .menu > li > a {
  color: var(--testo);
  font-size: .9rem;
  font-weight: 400;
  padding: 0 14px;
  transition: color .2s;
}

.main-navigation .menu > li > a:hover {
  color: var(--verde);
}

.main-navigation .menu > li.menu-item-cta > a {
  background: var(--verde);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 700;
}
.main-navigation .menu > li.menu-item-cta > a:hover {
  background: var(--verde-chiaro);
}

/* ============================================================
   BOTTONI GLOBALI
   ============================================================ */
.wp-block-button__link,
.button,
button[type="submit"],
input[type="submit"] {
  background: var(--verde) !important;
  color: #fff !important;
  border-radius: 30px !important;
  font-weight: 700 !important;
  border: none !important;
  padding: 12px 30px !important;
  transition: background .2s, transform .2s !important;
}

.wp-block-button__link:hover,
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--verde-chiaro) !important;
  transform: translateY(-2px);
}

.btn-ambra {
  background: var(--ambra) !important;
  color: var(--terra) !important;
}
.btn-ambra:hover {
  background: var(--ambra-scuro) !important;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-oc {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-oc::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,106,79,.72) 0%, rgba(0,0,0,.2) 100%);
}

.hero-oc .hero-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 700px;
}

.hero-oc .hero-badge {
  display: inline-block;
  background: var(--ambra);
  color: var(--terra);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-oc h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.4rem;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}

.hero-oc .hero-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  opacity: .92;
  margin-bottom: 34px;
}

.hero-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero-stat {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  padding: 16px 26px;
  color: #fff;
  text-align: center;
  flex: 1;
  min-width: 130px;
}

.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ambra);
  display: block;
}

.hero-stat-label {
  font-size: .8rem;
  opacity: .85;
  margin-top: 2px;
  display: block;
}

/* ============================================================
   SEZIONI GENERALI
   ============================================================ */
.section-tag {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--verde-chiaro);
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  color: var(--verde);
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 1rem;
  color: #555;
  line-height: 1.75;
  max-width: 580px;
}

.bg-crema { background: var(--crema); }

.bg-verde {
  background: var(--verde);
  color: #fff;
}
.bg-verde .section-title { color: #fff; }
.bg-verde .section-sub   { color: rgba(255,255,255,.8); }

/* ============================================================
   CARD VANTAGGIO
   ============================================================ */
.vantaggio-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  padding: 32px 26px;
  transition: .2s;
}
.vantaggio-card:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-4px);
}
.vantaggio-card .icon { font-size: 2.4rem; margin-bottom: 16px; display: block; }
.vantaggio-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--ambra);
  margin-bottom: 10px;
}
.vantaggio-card p { font-size: .88rem; line-height: 1.6; opacity: .85; color: #fff; }

/* ============================================================
   STEP ADERIRE
   ============================================================ */
.step-box { text-align: center; padding: 30px 20px; }
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--verde);
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  display: flex;
  align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.step-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--verde);
  margin-bottom: 10px;
}
.step-box p { font-size: .88rem; color: #666; line-height: 1.6; }

/* ============================================================
   NEWS CARD
   ============================================================ */
.news-card-oc {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transition: .2s;
}
.news-card-oc:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.news-card-oc .thumb img { width: 100%; height: 200px; object-fit: cover; transition: .3s; }
.news-card-oc:hover .thumb img { transform: scale(1.05); }
.news-card-oc .body { padding: 22px; }
.news-card-oc .cat {
  font-size: .72rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--verde-chiaro); margin-bottom: 8px; display: block;
}
.news-card-oc h3 { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--verde); margin-bottom: 8px; }
.news-card-oc p  { font-size: .85rem; color: #666; line-height: 1.6; }
.news-card-oc .date { font-size: .75rem; color: #999; margin-top: 12px; display: block; }

/* ============================================================
   FORM CONTATTO
   ============================================================ */
.contact-form-oc input,
.contact-form-oc textarea,
.contact-form-oc select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: 'Lato', sans-serif;
  font-size: .95rem;
  transition: border-color .2s;
  outline: none;
  margin-bottom: 16px;
}
.contact-form-oc input:focus,
.contact-form-oc textarea:focus {
  border-color: var(--verde-chiaro);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1a3a2a !important;
  color: rgba(255,255,255,.65);
}
.site-footer a { color: rgba(255,255,255,.65); }
.site-footer a:hover { color: var(--verde-chiaro); }
.footer-widget-title,
.site-footer h3,
.site-footer h4 {
  font-family: 'Playfair Display', serif;
  color: var(--ambra) !important;
}
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.4);
  font-size: .8rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero-oc h1    { font-size: 2.2rem; }
  .hero-stats    { flex-direction: column; }
  .section-title { font-size: 1.8rem; }
}
