/*
Theme Name: Emanuele Franzoni Theme
Description: Tema custom per Emanuele Franzoni - Imprenditore del Verde
Version: 1.0
*/

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

:root {
  --dark:        #16281A;
  --black:       #0A0A0A;
  --green-deep:  #1F3A21;
  --green:       #3B6636;
  --green-mid:   #4F7C46;
  --green-light: #7CA96E;
  --cream:       #F6F4EC;
  --cream-dark:  #EDE9DB;
  --white:       #FFFFFF;
  --orange:      #E07B39;
  --orange-dark: #C4642A;
  --text:        #22301F;
  --text-light:  rgba(255,255,255,.95);
  --text-muted:  rgba(255,255,255,.75);
  --serif: 'Montserrat', 'Inter', system-ui, sans-serif;
  --title-font: 'Antonio', 'Montserrat', sans-serif;
  --sans:  'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3, h4 {
  font-family: var(--title-font);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(22,40,26,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(245,243,236,0.08);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 0; }
.site-logo { display: flex; align-items: center; gap: 0.7rem; }
.site-logo img { width: 300px; min-width: 300px; height: auto; display: block; }
.site-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.site-logo-text strong { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--white); letter-spacing: 0.01em; }
.site-logo-text span { font-size: 0.62rem; color: var(--green-light); text-transform: uppercase; letter-spacing: 0.1em; }

.main-nav ul { display: flex; gap: 2.2rem; align-items: center; }
.main-nav a {
  color: var(--text-light); font-size: 0.92rem; font-weight: 500;
  transition: color 0.2s; position: relative; padding: 0.3rem 0;
}
.main-nav a:hover { color: var(--white); }
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--orange); transition: width 0.25s;
}
.main-nav a:hover::after { width: 100%; }
.nav-cta {
  background: var(--orange); color: var(--white) !important; padding: 0.7rem 1.4rem !important;
  border-radius: 4px; font-weight: 600 !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--orange-dark); }

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 2.2rem; border-radius: 4px; font-weight: 600; font-size: 0.95rem;
  transition: all 0.25s; border: none; cursor: pointer; font-family: var(--sans);
}
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(224,123,57,0.3); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(245,243,236,0.4); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-deep); transform: translateY(-2px); }

/* ═══════════════════════════════════════════════
   HERO SLIDER
═══════════════════════════════════════════════ */
.hero-slider { position: relative; height: 100vh; min-height: 640px; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease;
  background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,25,17,0.88) 0%, rgba(15,25,17,0.62) 45%, rgba(15,25,17,0.3) 75%, rgba(15,25,17,0.15) 100%);
}
.hero-content {
  position: relative; z-index: 3; height: 100%; display: flex; align-items: center;
  padding-top: 150px;
}
.hero-text { max-width: 720px; }
.hero-kicker {
  display: inline-block; color: var(--orange); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: clamp(0.75rem, 0.3vw + 0.65rem, 0.95rem); margin-bottom: 1.2rem;
}
.hero-title {
  color: var(--white); font-size: clamp(2.1rem, 2.6vw + 1.2rem, 4.4rem); line-height: 1.1;
  margin-bottom: 1.4rem; font-weight: 800;
}
.hero-text p.hero-desc {
  color: var(--text-light); font-size: clamp(1rem, 0.4vw + 0.9rem, 1.3rem);
  max-width: 600px; margin-bottom: 2.2rem; font-weight: 400;
}
.hero-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-dots { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: 0.6rem; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.35); cursor: pointer; transition: all 0.25s; border: none; }
.hero-dot.active { background: var(--orange); width: 28px; border-radius: 6px; }

@media (min-width: 1600px) {
  .hero-title { font-size: 5.6rem; }
  .hero-text p.hero-desc { font-size: 1.5rem; max-width: 720px; }
  .hero-content { justify-content: center; }
  .hero-text { text-align: center; }
  .hero-cta-row { justify-content: center; }
}
@media (min-width: 2000px) {
  .hero-title { font-size: 6.8rem; }
  .hero-text { max-width: 1080px; }
  .hero-text p.hero-desc { font-size: 1.75rem; max-width: 880px; margin-left: auto; margin-right: auto; }
  .hero-kicker { font-size: 1.2rem; }
}
@media (min-width: 2400px) {
  .hero-title { font-size: 7.8rem; }
  .hero-text { max-width: 1240px; }
  .hero-text p.hero-desc { font-size: 1.95rem; max-width: 1000px; }
  .hero-kicker { font-size: 1.35rem; }
}

/* ═══════════════════════════════════════════════
   SECTION GENERALS
═══════════════════════════════════════════════ */
.section { padding: 6rem 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--dark); color: var(--text-light); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.kicker {
  display: inline-block; color: var(--orange); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.8rem; margin-bottom: 1rem;
}
.section-head h2 { font-size: clamp(1.9rem, 1.6vw + 1.3rem, 3rem); margin-bottom: 1.2rem; }
.section-head p { font-size: clamp(1rem, 0.3vw + 0.9rem, 1.2rem); color: #5a6a54; }
.section-dark .section-head p { color: var(--text-light); }

@media (min-width: 1600px) {
  .section { padding: 8rem 0; }
  .section-head p { font-size: 1.3rem; }
}
@media (min-width: 2000px) {
  .section-head h2 { font-size: 3.4rem; }
  .section-head p { font-size: 1.45rem; }
}

/* ═══════════════════════════════════════════════
   FEATURE CARDS (home + chi-siamo)
═══════════════════════════════════════════════ */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; }
.feature-card {
  background: var(--white); border: 1px solid #e8e4d8; border-radius: 8px; padding: 2.2rem 1.8rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(31,58,33,0.1); }
.feature-icon { font-size: 2.1rem; margin-bottom: 1.1rem; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.7rem; }
.feature-card p { font-size: 0.92rem; color: #5a6a54; line-height: 1.65; }

@media (min-width: 1600px) {
  .feature-card h3 { font-size: 1.3rem; }
  .feature-card p { font-size: 1.02rem; }
}

/* ═══════════════════════════════════════════════
   ABOUT / STORY SPLIT
═══════════════════════════════════════════════ */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: center; }
.split-img { border-radius: 10px; overflow: hidden; aspect-ratio: 3/4; }
.split-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.split-text .kicker { margin-bottom: 1rem; }
.split-text h2 { font-size: clamp(1.8rem, 1.4vw + 1.2rem, 2.6rem); margin-bottom: 1.5rem; }
.split-text p { margin-bottom: 1.2rem; color: #4a5a46; font-size: 1.02rem; }
.split-quote {
  border-left: 3px solid var(--orange); padding-left: 1.4rem; margin: 1.8rem 0;
  font-style: italic; font-size: 1.1rem; color: var(--dark); font-family: var(--serif);
}

@media (min-width: 1600px) {
  .split-text p { font-size: 1.15rem; }
  .split-quote { font-size: 1.3rem; }
}

/* ═══════════════════════════════════════════════
   PROCESS / STEPS (protocollo)
═══════════════════════════════════════════════ */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step-card { position: relative; padding: 2rem 1.8rem 2rem 0; }
.step-num {
  font-family: var(--serif); font-weight: 800; font-size: 3.2rem; color: var(--orange);
  opacity: 0.35; line-height: 1; margin-bottom: 0.8rem;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.step-card p { font-size: 0.92rem; color: #5a6a54; }
.section-dark .step-card p { color: var(--text-light); }

/* ═══════════════════════════════════════════════
   GALLERY / CAROUSEL
═══════════════════════════════════════════════ */
.carousel-track { display: flex; flex-wrap: nowrap; animation: carousel-loop 32s linear infinite; }
.carousel-track:hover { animation-play-state: paused; }
.carousel-slide { min-width: 28%; width: 28%; height: 380px; flex-shrink: 0; padding: 0 8px; box-sizing: border-box; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
@keyframes carousel-loop { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item { aspect-ratio: 1/1; overflow: hidden; border-radius: 6px; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.06); }

/* ═══════════════════════════════════════════════
   BLOG
═══════════════════════════════════════════════ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-card { background: var(--white); border-radius: 8px; overflow: hidden; border: 1px solid #e8e4d8; transition: transform 0.25s, box-shadow 0.25s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(31,58,33,0.1); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--green-deep); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.6rem; }
.blog-card-cat { color: var(--orange); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.blog-card h3 { font-size: 1.15rem; margin: 0.6rem 0 0.7rem; line-height: 1.35; }
.blog-card p { font-size: 0.9rem; color: #5a6a54; margin-bottom: 1rem; }
.blog-card-link { color: var(--green); font-weight: 600; font-size: 0.88rem; }

/* ═══════════════════════════════════════════════
   TESTIMONIAL / QUOTE BAND
═══════════════════════════════════════════════ */
.quote-band { background: var(--green-deep); color: var(--white); padding: 5rem 0; text-align: center; }
.quote-band blockquote {
  font-family: var(--serif); font-size: clamp(1.3rem, 1.2vw + 1rem, 2.1rem); font-weight: 600;
  max-width: 880px; margin: 0 auto 1.2rem; line-height: 1.4;
}
.quote-band cite { color: var(--text-light); font-style: normal; font-size: 0.95rem; }

/* ═══════════════════════════════════════════════
   CTA BAND
═══════════════════════════════════════════════ */
.cta-band {
  background: linear-gradient(120deg, var(--green-deep), var(--green));
  padding: 5rem 0; text-align: center; color: var(--white);
}
.cta-band h2 { color: var(--white); font-size: clamp(1.7rem, 1.4vw + 1.1rem, 2.6rem); margin-bottom: 1rem; }
.cta-band p { color: var(--text-light); font-size: 1.05rem; margin-bottom: 2rem; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════════════════════
   FORM CONTATTI
═══════════════════════════════════════════════ */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; }
.contact-info h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.contact-info p { color: #5a6a54; margin-bottom: 1.6rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.contact-info-icon {
  width: 42px; height: 42px; background: var(--cream-dark); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.2rem;
}
.contact-photo-rect { margin-bottom: 1.8rem; border-radius: 10px; overflow: hidden; aspect-ratio: 3/4; max-width: 320px; }
.contact-photo-rect img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact-form { background: var(--white); border: 1px solid #e8e4d8; border-radius: 10px; padding: 2.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--dark); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1px solid #d8d4c6; border-radius: 5px;
  font-family: var(--sans); font-size: 0.95rem; background: var(--cream); transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--green); background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-consent { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 1.4rem; }
.form-consent input { width: auto; margin-top: 0.25rem; }
.form-consent label { font-size: 0.82rem; color: #5a6a54; font-weight: 400; }
.form-error {
  background: #fdecea; border: 1px solid #f5c2be; color: #a83229; padding: 1rem 1.2rem;
  border-radius: 6px; margin-bottom: 1.4rem; font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════
   THANK YOU PAGE
═══════════════════════════════════════════════ */
.thankyou-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8rem 0; }
.thankyou-icon { font-size: 3.5rem; margin-bottom: 1.5rem; }
.thankyou-wrap h1 { font-size: clamp(1.8rem, 1.5vw + 1.2rem, 2.8rem); margin-bottom: 1rem; }
.thankyou-wrap p { color: #5a6a54; font-size: 1.1rem; max-width: 480px; margin: 0 auto 2rem; }

/* ═══════════════════════════════════════════════
   PAGE HERO (chi-siamo, servizi, contatti, lavori, blog)
═══════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(120deg, var(--dark), var(--green-deep));
  padding: 11rem 0 5rem; text-align: center; position: relative; overflow: hidden;
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 1.8vw + 1.3rem, 3.4rem); }
.page-hero p { color: var(--text-light); font-size: 1.05rem; margin-top: 1rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.site-footer { background: var(--black); color: var(--text-light); padding: 4.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-logo { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.2rem; }
.footer-logo img { height: 42px; }
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 1.1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col a { font-size: 0.9rem; color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(245,243,236,0.1); padding-top: 1.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.82rem; color: var(--text-muted); }
.footer-legal-links a { color: var(--text-muted); transition: color 0.2s; }
.footer-legal-links a:hover { color: var(--orange); }
.footer-contact-list li { color: var(--text-muted); font-size: 0.9rem; }
.footer-contact-list li strong { color: var(--white); }
.footer-contact-list a { font-size: 0.9rem; color: var(--text-muted); }
.footer-contact-list a:hover { color: var(--orange); }

/* WHATSAPP WIDGET */
.whatsapp-widget {
  position: fixed; bottom: 7rem; left: 1.8rem; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3); transition: transform 0.2s;
}
.whatsapp-widget:hover { transform: scale(1.08); }
.whatsapp-widget svg { width: 32px; height: 32px; }
@media (max-width: 900px) {
  .whatsapp-widget { bottom: 6.5rem; left: 1.2rem; width: 52px; height: 52px; }
  .whatsapp-widget svg { width: 28px; height: 28px; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET
═══════════════════════════════════════════════ */
@media (min-width: 900px) and (max-width: 1100px) {
  .main-nav ul { gap: 1.2rem; }
  .main-nav a { font-size: 0.8rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split-img { aspect-ratio: 4/5; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE
═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .header-inner { padding: 0.8rem 0; }
  .site-logo img { width: 180px; min-width: 180px; }
  .hero-slider { height: auto; min-height: 100vh; }
  .hero-content { padding-top: 120px; padding-bottom: 2.5rem; align-items: flex-start; }
  .hero-text .hero-desc { margin-bottom: 1.6rem; }
  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 0.7rem; }
  .hero-cta-row .btn { justify-content: center; }
  .section { padding: 4rem 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .blog-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split-img { aspect-ratio: 4/5; }
  .steps-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .carousel-slide { min-width: 85vw; width: 85vw; height: 260px; }
  .page-hero { padding: 9rem 0 3.5rem; }
}

div[style*="grid-template-columns:repeat(4"] { }
@media (max-width: 900px) {
  div[style*="grid-template-columns:repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; }
  div[style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; }
}
