/*
 Theme Name: GeneratePress Child
 Theme URI: https://generatepress.com
 Description: Child theme for GeneratePress.
 Author: User
 Template: generatepress
 Version: 1.0
*/

/* ===============================
   ROOT + BASE TYPO
================================ */
:root {
  --accent: #f4963a;
  --black: #000000;
  --white: #ffffff;
  --text: #111111;
  --spacing: 70px;
  font-family: 'Inter', sans-serif;
}

p {
  max-width: 700px;
  line-height: 1.6;
}

/* ===============================
   SECTIONS
================================ */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.35)
  );
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* HERO TITLE */
.home .hero h1 {
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
  color: var(--accent);
}

/* HERO SUBTITLE */
.home .hero p {
  font-weight: 500;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 760px;
  margin: 1.5rem auto 0;
}

/* ===============================
   FEATURES – LAYOUT
================================ */
.features-alt {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  opacity: 0;
  will-change: transform, opacity;
}

.feature-row.left {
  flex-direction: row;
}

.feature-row.right {
  flex-direction: row-reverse;
}

/* ===============================
   FEATURE MEDIA
================================ */
.feature-media {
  flex: 0 0 320px;
  display: flex;
  justify-content: center;
}

.circle {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
}

.circle > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.circle-overlay {
  position: absolute;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.circle-overlay img {
  width: 135px;
  height: auto;
}

@media (hover: hover) and (pointer: fine) {
  .circle:hover > img {
    opacity: 0;
  }
  .circle:hover .circle-overlay {
    opacity: 1;
  }
}

/* ===============================
   FEATURE TEXT
================================ */
.feature-text {
  flex: 1;
  max-width: 520px;
}

.feature-text h3 {
  margin-bottom: 0.5rem;
}

.feature-text p {
  margin: 0;
}

/* ===============================
   PARALLAX – DESKTOP
================================ */
@media (min-width: 1025px) {
  .feature-row.left {
    transform: translateX(-260px);
  }
  .feature-row.right {
    transform: translateX(260px);
  }
  .feature-row.parallax-active {
    opacity: 1;
    transform: translateX(0);
    transition:
      opacity 0.9s ease-out,
      transform 0.9s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 1024px) {
  .feature-row,
  .feature-row.left,
  .feature-row.right {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    opacity: 1;
    transform: none;
  }

  .circle {
    width: 200px;
    height: 200px;
  }

  .feature-text {
    max-width: 90%;
    text-align: center;
  }

  .circle-overlay {
    display: none;
  }
}

/* ===============================
   IMAGE DIVIDER
================================ */
.image-divider {
  padding: 0;
}

.image-divider img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===============================
   LOGO SECTION
================================ */
.logo-section {
  padding: 6rem 2rem;
  text-align: center;
}

.sb-logo {
  max-width: 180px;
  height: auto;
}

/* =================================================
   FOOTER – SOUND BENESSERE (SEMPLICE E STABILE)
================================================= */
.sb-footer {
  background: #111;
  color: #ddd;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Colonne */
.sb-footer-column {
  margin: 0;
}

/* Box */
.sb-footer-box {
  background: linear-gradient(135deg, #0b0b0b, #151515);
  padding: 28px 26px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
  color: #ddd;
}

/* Titoli */
.sb-footer-box h4 {
  margin: 0 0 16px;
  font-weight: 500;
  color: var(--accent);
}

/* Testi */
.sb-footer-box p,
.sb-footer-box li {
  margin: 0 0 12px;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Liste */
.sb-footer-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Link */
.sb-footer-box a {
  color: var(--accent);
  text-decoration: none;
}

.sb-footer-box a:hover {
  color: #ffa85c;
}

//* Social */
.sb-footer-social {
  margin-top: 14px;
}

/* neutralizza lo stile Gutenberg "logos-only" SOLO nel footer */
.sb-footer .wp-block-social-links.is-style-logos-only .wp-social-link {
  background: none;
}

/* colore reale dell’icona (currentColor) */
.sb-footer .wp-block-social-link-anchor {
  color: var(--accent);
}

/* hover */
.sb-footer-social a:hover svg {
  fill: #ffa85c;
  filter: drop-shadow(0 0 6px rgba(244, 151, 58, 0.6));
}



/* Credit */
.sb-footer-credit {
  margin: 30px auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: #000000;
  opacity: 0.7;
  font-weight: 600;
}

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

/* ===============================
   DISATTIVA ANIMAZIONI FUORI HOME
================================ */
body:not(.home) .feature-row {
  opacity: 1;
  transform: none;
}
