/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* =========================
   FABBRO CASERTA - BASE CSS
   Child theme custom styles
   ========================= */

/* =========================
   1) ROOT / VARIABILI
   ========================= */
:root{
  --fc-primary:#0f766e;
  --fc-primary-dark:#0b5f59;
  --fc-secondary:#f59e0b;
  --fc-secondary-dark:#d97706;

  --fc-text:#1f2937;
  --fc-text-light:#4b5563;
  --fc-muted:#6b7280;

  --fc-bg:#f8fafc;
  --fc-bg-soft:#f3f6f8;
  --fc-white:#ffffff;
  --fc-border:#dbe4ea;

  --fc-danger:#b91c1c;
  --fc-success:#15803d;

  --fc-shadow-sm:0 8px 24px rgba(2,6,23,0.04);
  --fc-shadow-md:0 12px 35px rgba(15,118,110,0.10);
  --fc-shadow-lg:0 20px 50px rgba(2,6,23,0.10);

  --fc-radius-sm:12px;
  --fc-radius-md:18px;
  --fc-radius-lg:24px;

  --fc-max:1200px;
  --fc-max-narrow:900px;
}

/* =========================
   2) BASE GENERALE
   ========================= */
html{
  scroll-behavior:smooth;
}

body{
  color:var(--fc-text);
  background:#fff;
}

body,
button,
input,
select,
textarea{
  font-family:Arial, Helvetica, sans-serif;
}

a{
  transition:all .2s ease;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

/* Migliora leggibilità base con GeneratePress */
.entry-content > [class*="fc-"]:first-child{
  margin-top:0;
}

.entry-content p:last-child{
  margin-bottom:0;
}

/* Contenitore principale pagine custom */
.fc-page,
.fc-page *{
  box-sizing:border-box;
}

.fc-page{
  color:var(--fc-text);
  line-height:1.65;
}

.fc-wrap{
  width:min(100% - 32px, var(--fc-max));
  margin:0 auto;
}

.fc-wrap-narrow{
  width:min(100% - 32px, var(--fc-max-narrow));
  margin:0 auto;
}

.fc-section{
  padding:72px 0;
}

.fc-section-light{
  background:var(--fc-bg);
}

.fc-section-soft{
  background:var(--fc-bg-soft);
}

.fc-section-tight{
  padding:48px 0;
}

.fc-hidden{
  display:none !important;
}

/* =========================
   3) TYPOGRAPHY
   ========================= */
.fc-page h1,
.fc-page h2,
.fc-page h3,
.fc-page h4{
  color:var(--fc-text);
  margin:0 0 14px;
  line-height:1.15;
}

.fc-page h1{
  font-size:48px;
  letter-spacing:-0.02em;
}

.fc-page h2{
  font-size:38px;
  letter-spacing:-0.01em;
}

.fc-page h3{
  font-size:24px;
}

.fc-page h4{
  font-size:20px;
}

.fc-page p{
  margin:0 0 16px;
  color:var(--fc-text-light);
  font-size:17px;
}

.fc-lead{
  font-size:19px;
  color:var(--fc-text-light);
}

.fc-small{
  font-size:14px;
  color:var(--fc-muted);
}

.fc-strong{
  font-weight:800;
  color:var(--fc-text);
}

.fc-text-center{
  text-align:center;
}

.fc-text-left{
  text-align:left;
}

/* =========================
   4) TOPBAR / MINI HEADER
   ========================= */
.fc-topbar{
  background:var(--fc-primary-dark);
  color:#fff;
  font-size:14px;
  padding:10px 0;
}

.fc-topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}

.fc-topbar a{
  color:#fff;
  text-decoration:none;
  font-weight:700;
}

/* =========================
   5) HEADER / MENU SUPPORT
   (utile per menu WP + CTA)
   ========================= */

/* Bottone CTA nel menu WordPress:
   aggiungi classe CSS "nav-cta" alla voce menu */
.main-navigation .main-nav ul li.nav-cta > a,
.main-navigation .menu-item.nav-cta > a{
  background:var(--fc-secondary);
  color:#111827 !important;
  border-radius:999px;
  font-weight:800;
  padding:12px 18px !important;
  line-height:1.1;
}

.main-navigation .main-nav ul li.nav-cta > a:hover,
.main-navigation .menu-item.nav-cta > a:hover{
  background:var(--fc-secondary-dark);
  color:#111827 !important;
}

/* Eventuale seconda CTA verde */
.main-navigation .main-nav ul li.nav-cta-green > a,
.main-navigation .menu-item.nav-cta-green > a{
  background:var(--fc-primary);
  color:#fff !important;
  border-radius:999px;
  font-weight:800;
  padding:12px 18px !important;
  line-height:1.1;
}

.main-navigation .main-nav ul li.nav-cta-green > a:hover,
.main-navigation .menu-item.nav-cta-green > a:hover{
  background:var(--fc-primary-dark);
  color:#fff !important;
}

/* Menu dropdown semplice più pulito */
.main-navigation ul ul{
  border:1px solid var(--fc-border);
  box-shadow:var(--fc-shadow-md);
}

/* =========================
   6) HERO
   ========================= */
.fc-hero{
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(135deg, rgba(15,118,110,.96), rgba(11,95,89,.96)),
    radial-gradient(circle at top right, rgba(245,158,11,.18), transparent 35%);
  color:#fff;
  padding:88px 0 80px;
}

.fc-hero .fc-wrap{
  position:relative;
  z-index:2;
}

.fc-hero-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:34px;
  align-items:center;
}

.fc-hero-simple{
  text-align:left;
}

.fc-breadcrumb{
  font-size:14px;
  opacity:.95;
  margin-bottom:18px;
}

.fc-breadcrumb a{
  color:#fff;
  text-decoration:none;
}

.fc-badge-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.fc-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.16);
  color:#fff;
  padding:8px 12px;
  border-radius:999px;
  font-size:14px;
  font-weight:700;
}

.fc-hero h1,
.fc-hero h2,
.fc-hero h3,
.fc-hero p{
  color:#fff;
}

.fc-hero p{
  max-width:760px;
}

.fc-hero-card{
  background:#fff;
  color:var(--fc-text);
  border-radius:22px;
  padding:28px;
  box-shadow:var(--fc-shadow-md);
}

.fc-hero-card h2,
.fc-hero-card h3,
.fc-hero-card h4{
  color:var(--fc-primary-dark);
}

.fc-hero-card p{
  color:var(--fc-text-light);
}

.fc-hero-points{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
  max-width:760px;
}

.fc-hero-point{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.12);
  padding:12px 14px;
  border-radius:14px;
  font-size:15px;
  font-weight:700;
}

/* =========================
   7) BOTTONI / CTA
   ========================= */
.fc-cta-row{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin:24px 0 0;
}

.fc-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
  padding:15px 22px;
  border-radius:999px;
  font-weight:800;
  font-size:16px;
  line-height:1.1;
  transition:all .2s ease;
  border:none;
  cursor:pointer;
}

.fc-btn:hover{
  transform:translateY(-2px);
}

.fc-btn-primary{
  background:var(--fc-secondary);
  color:#111827;
  box-shadow:0 8px 20px rgba(245,158,11,.25);
}

.fc-btn-primary:hover{
  background:var(--fc-secondary-dark);
  color:#111827;
}

.fc-btn-secondary{
  background:#fff;
  color:var(--fc-primary-dark);
}

.fc-btn-secondary:hover{
  background:#f3f4f6;
  color:var(--fc-primary-dark);
}

.fc-btn-outline{
  background:transparent;
  color:var(--fc-primary);
  border:2px solid var(--fc-primary);
}

.fc-btn-outline:hover{
  background:var(--fc-primary);
  color:#fff;
}

.fc-btn-dark{
  background:#111827;
  color:#fff;
}

.fc-btn-dark:hover{
  background:#000;
  color:#fff;
}

.fc-phone-box{
  background:var(--fc-bg);
  border:1px solid var(--fc-border);
  border-radius:16px;
  padding:16px;
}

.fc-phone-box strong{
  display:block;
  margin-bottom:6px;
  font-size:14px;
  color:var(--fc-text-light);
}

.fc-phone-box a{
  color:var(--fc-primary-dark);
  text-decoration:none;
  font-weight:800;
  font-size:28px;
  line-height:1.1;
}

/* Bande CTA forti */
.fc-cta-band{
  background:linear-gradient(135deg,var(--fc-primary),var(--fc-primary-dark));
  color:#fff;
  border-radius:24px;
  padding:36px;
  box-shadow:var(--fc-shadow-md);
}

.fc-cta-band h2,
.fc-cta-band h3,
.fc-cta-band p{
  color:#fff;
}

/* =========================
   8) TITOLI SEZIONE
   ========================= */
.fc-sec-head{
  max-width:860px;
  margin:0 auto 34px;
  text-align:center;
}

.fc-sec-head h2{
  margin-bottom:12px;
}

.fc-sec-head p{
  margin-bottom:0;
}

.fc-sec-head-left{
  max-width:860px;
  margin:0 0 28px;
  text-align:left;
}

/* =========================
   9) GRID / LAYOUT
   ========================= */
.fc-grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
}

.fc-grid-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}

.fc-grid-4{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px;
}

.fc-split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:26px;
  align-items:start;
}

.fc-split-40{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:28px;
  align-items:center;
}

.fc-split-60{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:28px;
  align-items:center;
}

/* =========================
   10) CARD
   ========================= */
.fc-card{
  background:#fff;
  border:1px solid var(--fc-border);
  border-radius:var(--fc-radius-md);
  padding:24px;
  box-shadow:var(--fc-shadow-sm);
  height:100%;
}

.fc-card h3,
.fc-card h4{
  margin-bottom:10px;
}

.fc-card p{
  margin-bottom:14px;
}

.fc-card a{
  color:var(--fc-primary);
  font-weight:800;
  text-decoration:none;
}

.fc-card-highlight{
  border-left:5px solid var(--fc-secondary);
}

.fc-card-dark{
  background:#111827;
  border-color:#111827;
}

.fc-card-dark h3,
.fc-card-dark h4,
.fc-card-dark p,
.fc-card-dark a{
  color:#fff;
}

.fc-card-soft{
  background:var(--fc-bg);
}

/* =========================
   11) LISTE / CHECK / LINK
   ========================= */
.fc-list-clean,
.fc-link-list,
.fc-checks,
.fc-mini-list{
  list-style:none;
  padding:0;
  margin:0;
}

.fc-mini-list li{
  padding:10px 0;
  border-bottom:1px solid var(--fc-border);
  font-size:15px;
  color:var(--fc-text);
}

.fc-mini-list li:last-child{
  border-bottom:none;
}

.fc-link-list li{
  margin-bottom:10px;
}

.fc-link-list a{
  color:var(--fc-primary);
  text-decoration:none;
  font-weight:700;
}

.fc-checks li{
  margin-bottom:12px;
  padding-left:28px;
  position:relative;
  color:var(--fc-text);
  font-weight:600;
}

.fc-checks li:before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  color:var(--fc-primary);
  font-weight:900;
}

.fc-danger-list li:before{
  content:"•";
  color:var(--fc-danger);
}

/* =========================
   12) BOX SERVIZI / GUASTI / PROBLEMI
   ========================= */
.fc-service-card{
  background:#fff;
  border:1px solid var(--fc-border);
  border-radius:18px;
  padding:24px;
  box-shadow:var(--fc-shadow-sm);
  height:100%;
}

.fc-service-card h3{
  margin-bottom:10px;
}

.fc-service-card p{
  margin-bottom:14px;
}

.fc-service-card a{
  color:var(--fc-primary);
  text-decoration:none;
  font-weight:800;
}

.fc-problem-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}

.fc-problem-item{
  background:#fff;
  border:1px solid var(--fc-border);
  border-radius:18px;
  padding:24px;
  box-shadow:var(--fc-shadow-sm);
}

.fc-problem-item h3{
  margin-bottom:10px;
}

.fc-problem-item p{
  margin-bottom:0;
}

/* =========================
   13) AREE / COMUNI / LINK GEO
   ========================= */
.fc-areas{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.fc-area-item{
  display:block;
  background:#fff;
  border:1px solid var(--fc-border);
  border-radius:14px;
  padding:14px 16px;
  text-decoration:none;
  color:var(--fc-text);
  font-weight:700;
  transition:.2s ease;
}

.fc-area-item:hover{
  transform:translateY(-2px);
  border-color:var(--fc-primary);
  color:var(--fc-primary);
}

/* =========================
   14) STEP / COME FUNZIONA
   ========================= */
.fc-steps{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}

.fc-step{
  background:#fff;
  border:1px solid var(--fc-border);
  border-radius:18px;
  padding:24px;
  box-shadow:var(--fc-shadow-sm);
}

.fc-step-num{
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:var(--fc-primary);
  color:#fff;
  font-weight:900;
  margin-bottom:12px;
}

.fc-step h3{
  margin-bottom:8px;
}

.fc-step p{
  margin-bottom:0;
}

/* =========================
   15) FAQ
   ========================= */
.fc-faq{
  display:grid;
  gap:14px;
  max-width:980px;
  margin:0 auto;
}

.fc-faq-item{
  background:#fff;
  border:1px solid var(--fc-border);
  border-radius:16px;
  padding:22px;
  box-shadow:var(--fc-shadow-sm);
}

.fc-faq-item h3{
  margin:0 0 8px;
  font-size:21px;
  line-height:1.25;
}

.fc-faq-item p{
  margin:0;
  color:var(--fc-text-light);
}

/* =========================
   16) TESTI INFO / BOX TRUST
   ========================= */
.fc-info-box{
  background:var(--fc-bg);
  border:1px solid var(--fc-border);
  border-radius:18px;
  padding:24px;
}

.fc-trust-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.fc-trust-item{
  background:#fff;
  border:1px solid var(--fc-border);
  border-radius:16px;
  padding:20px;
  text-align:left;
  box-shadow:var(--fc-shadow-sm);
}

.fc-trust-item strong{
  display:block;
  font-size:18px;
  margin-bottom:8px;
  color:var(--fc-text);
}

.fc-trust-item span{
  color:var(--fc-text-light);
  font-size:15px;
}

/* =========================
   17) FOOTER CUSTOM
   ========================= */
.fc-footer{
  padding:20px 0 0;
  color:#1f2937;
}

.fc-footer-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:28px;
}

.fc-footer-col h3{
  margin:0 0 14px;
  font-size:20px;
  line-height:1.2;
}

.fc-footer-col p,
.fc-footer-col li,
.fc-footer-col a{
  font-size:15px;
  line-height:1.7;
  color:#4b5563;
  text-decoration:none;
}

.fc-footer-col ul{
  list-style:none;
  padding:0;
  margin:0;
}

.fc-footer-col li{
  margin-bottom:8px;
}

.fc-footer-col a:hover{
  color:var(--fc-primary);
}

.fc-footer-bottom{
  margin-top:28px;
  padding-top:18px;
  border-top:1px solid var(--fc-border);
}

.fc-footer-bottom p{
  margin:0;
  font-size:14px;
  color:#6b7280;
}

/* =========================
   18) CTA FINALE PAGINA
   ========================= */
.fc-footer-cta{
  text-align:center;
  background:var(--fc-bg);
  border:1px solid var(--fc-border);
  border-radius:22px;
  padding:32px;
}

.fc-footer-cta h2{
  margin-bottom:10px;
}

.fc-footer-cta p{
  margin-bottom:20px;
}

.fc-small-note{
  margin-top:14px;
  font-size:14px;
  color:var(--fc-text-light);
}

.fc-small-note a{
  color:var(--fc-primary);
  text-decoration:none;
}

/* =========================
   19) STICKY MOBILE CTA
   ========================= */
.fc-sticky-bar{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:9999;
  background:#ffffff;
  border-top:1px solid var(--fc-border);
  box-shadow:0 -8px 25px rgba(15,118,110,.10);
  padding:10px 12px;
}

.fc-sticky-inner{
  width:min(100%, 700px);
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.fc-sticky-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-height:50px;
  border-radius:999px;
  font-size:15px;
  font-weight:800;
  padding:12px 14px;
  text-decoration:none;
}

.fc-sticky-call{
  background:var(--fc-primary);
  color:#fff;
}

.fc-sticky-call:hover{
  background:var(--fc-primary-dark);
  color:#fff;
}

.fc-sticky-wa{
  background:#25D366;
  color:#fff;
}

.fc-sticky-wa:hover{
  background:#1fb55a;
  color:#fff;
}

.fc-mobile-spacer{
  display:none;
  height:82px;
}

/* =========================
   20) UTILITIES
   ========================= */
.fc-mt-0{margin-top:0 !important;}
.fc-mb-0{margin-bottom:0 !important;}
.fc-mb-10{margin-bottom:10px !important;}
.fc-mb-16{margin-bottom:16px !important;}
.fc-mb-20{margin-bottom:20px !important;}
.fc-mb-24{margin-bottom:24px !important;}
.fc-mb-30{margin-bottom:30px !important;}
.fc-mb-40{margin-bottom:40px !important;}

.fc-pt-0{padding-top:0 !important;}
.fc-pb-0{padding-bottom:0 !important;}

.fc-center{
  text-align:center;
}

.fc-bg-primary{
  background:var(--fc-primary);
  color:#fff;
}

.fc-bg-primary h1,
.fc-bg-primary h2,
.fc-bg-primary h3,
.fc-bg-primary h4,
.fc-bg-primary p{
  color:#fff;
}

/* =========================
   21) RESPONSIVE
   ========================= */
@media (max-width: 1200px){
  .fc-page h1{
    font-size:42px;
  }

  .fc-page h2{
    font-size:34px;
  }
}

@media (max-width: 1100px){
  .fc-hero-grid,
  .fc-split,
  .fc-split-40,
  .fc-split-60{
    grid-template-columns:1fr;
  }

  .fc-grid-4,
  .fc-problem-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .fc-steps{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .fc-footer-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 820px){
  .fc-page h1{
    font-size:36px;
  }

  .fc-page h2,
  .fc-footer-cta h2,
  .fc-cta-band h2{
    font-size:30px;
  }

  .fc-grid-3,
  .fc-grid-4,
  .fc-grid-2,
  .fc-areas,
  .fc-hero-points,
  .fc-problem-grid,
  .fc-trust-row{
    grid-template-columns:1fr;
  }

  .fc-section{
    padding:56px 0;
  }

  .fc-hero{
    padding:68px 0 56px;
  }

  .fc-topbar-inner{
    justify-content:center;
    text-align:center;
  }
}

@media (max-width: 767px){
  .fc-btn{
    width:100%;
  }

  .fc-phone-box a{
    font-size:24px;
  }

  .fc-step{
    padding:20px;
  }

  .fc-steps{
    grid-template-columns:1fr;
  }

  .fc-footer-grid{
    grid-template-columns:1fr;
  }

  .fc-sticky-bar{
    display:block;
  }

  .fc-mobile-spacer{
    display:block;
  }

  .fc-page h1{
    font-size:32px;
  }

  .fc-page h2{
    font-size:28px;
  }

  .fc-page p,
  .fc-lead{
    font-size:16px;
  }
}

@media (min-width: 768px){
  .fc-sticky-bar{
    display:none;
  }
}