/* ============================================
   GLOBAL EDILIZIA - CSS COMPLETO
   Sostituisci TUTTO il contenuto di custom.css con questo file
   ============================================ */

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

/* ============================================
   VARIABILI COLORI
   ============================================ */
:root {
  /* Colori brand Global Edilizia */
  --ge-primary: #1e73be;
  --ge-primary-dark: #155a8a;
  --ge-primary-light: #3498db;
  --ge-secondary: #2c3e50;
  --ge-accent: #27ae60;
  
  /* Testo */
  --ge-text-dark: #333333;
  --ge-text-light: #ffffff;
  --ge-text-muted: #666666;
  
  /* Sfondi */
  --ge-bg-white: #ffffff;
  --ge-bg-light: #f8f9fa;
  --ge-bg-dark: #2c3e50;
  
  /* Gradienti */
  --ge-gradient: linear-gradient(135deg, #1e73be 0%, #155a8a 100%);
  --ge-gradient-dark: linear-gradient(135deg, #155a8a 0%, #0d3a5c 100%);
}

/* ============================================
   TIPOGRAFIA
   ============================================ */
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ge-text-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  color: var(--ge-secondary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* ============================================
   HEADER
   ============================================ */
#header {
  background: var(--ge-bg-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#header .logo img {
  max-height: 60px;
}

#header nav ul li a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--ge-secondary);
  transition: color 0.3s ease;
}

#header nav ul li a:hover {
  color: var(--ge-primary);
}

/* ============================================
   LINK E BOTTONI
   ============================================ */
a {
  color: var(--ge-primary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--ge-primary-dark);
}

.button, 
button,
input[type="submit"] {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  background: var(--ge-primary);
  border: none;
  border-radius: 5px;
  padding: 12px 24px;
  color: var(--ge-text-light);
  transition: all 0.3s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--ge-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(30, 115, 190, 0.3);
}

/* Bottone secondario */
.button.secondary {
  background: transparent;
  border: 2px solid var(--ge-primary);
  color: var(--ge-primary);
}

.button.secondary:hover {
  background: var(--ge-primary);
  color: var(--ge-text-light);
}

/* ============================================
   HERO SECTION
   ============================================ */

/* Fix: centra le immagini hero verticalmente (non più tagliate in alto) */
.header-fixed .hero {
  background-position: center center !important;
}

#hero .hero-content {
  max-width: 700px;
}

#hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

#hero h2 {
  font-size: 1.5rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 20px;
}

#hero p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 30px;
}

#hero .button {
  margin: 8px;
  padding: 14px 30px;
  font-size: 1rem;
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.2rem;
  }
  
  #hero h2 {
    font-size: 1.2rem;
  }
}

/* ============================================
   SEZIONE SERVIZI
   ============================================ */
.services-section {
  padding: 60px 0;
  background: var(--ge-bg-light);
}

.services-section .section-header {
  margin-bottom: 40px;
}

.services-section .section-header h2 {
  color: var(--ge-secondary);
  margin-bottom: 15px;
}

.services-section .section-intro {
  max-width: 800px;
  margin: 0 auto;
  color: var(--ge-text-muted);
  font-size: 1.1rem;
}

.services-section .section-intro p {
  margin-bottom: 0;
}

.services-section .section-cta {
  margin-top: 40px;
}

/* ============================================
   GRIGLIA SERVIZI
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
  }
}

/* ============================================
   CARD SERVIZIO - IMMAGINE SOPRA, TESTO SOTTO
   ============================================ */
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--ge-bg-white);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(30, 115, 190, 0.2);
}

/* Immagine sopra */
.service-card-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--ge-bg-light);
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.08);
}

/* Testo sotto */
.service-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  color: var(--ge-primary);
  font-size: 1.1rem;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.service-card:hover h3 {
  color: var(--ge-primary-dark);
}

.service-card p {
  color: var(--ge-text-muted);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .service-card-image {
    height: 130px;
  }
  
  .service-card-content {
    padding: 15px;
  }
  
  .service-card h3 {
    font-size: 1rem;
  }
  
  .service-card p {
    font-size: 0.8rem;
  }
}

/* ============================================
   SEZIONI CONTENUTO
   ============================================ */
.content-section {
  padding: 60px 0;
}

.content-section.bg-light {
  background: var(--ge-bg-light);
}

.content-section.bg-dark {
  background: var(--ge-bg-dark);
  color: var(--ge-text-light);
}

.content-section.bg-dark h2 {
  color: var(--ge-text-light);
}

/* ============================================
   SEZIONE FINALE CTA
   ============================================ */
.section-cta-final {
  background: var(--ge-bg-light);
  padding: 60px 0;
}

.section-cta-final .container {
  max-width: 800px;
  text-align: center;
}

/* ============================================
   PAGINE SERVIZI
   ============================================ */
.service-page-header {
  background: var(--ge-gradient);
  padding: 60px 0;
  color: var(--ge-text-light);
  margin-bottom: 40px;
}

.service-page-header h1 {
  color: var(--ge-text-light);
}

/* ============================================
   PAGINA CONTATTI
   ============================================ */
.contact-info {
  background: var(--ge-bg-light);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.contact-info h3 {
  color: var(--ge-primary);
  margin-bottom: 15px;
}

.contact-info a {
  font-size: 1.3rem;
  font-weight: 600;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  color: #FFF;
}

.whatsapp-float svg {
  fill: white;
  width: 35px;
  height: 35px;
}

/* Tooltip WhatsApp */
.whatsapp-float::before {
  content: 'Chatta con noi';
  position: absolute;
  right: 70px;
  background: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.whatsapp-float:hover::before {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
  background: var(--ge-bg-dark);
  color: var(--ge-text-light);
  padding: 40px 0 20px;
}

#footer a {
  color: var(--ge-primary-light);
}

#footer a:hover {
  color: var(--ge-text-light);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--ge-primary); }
.bg-primary { background: var(--ge-primary); }
.bg-gradient { background: var(--ge-gradient); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ============================================
   CORREZIONI - Sostituisci nel tuo custom.css
   ============================================ */

/* ============================================
   SPAZIATURE RIDOTTE TRA SEZIONI
   ============================================ */
.services-section {
  padding: 40px 0;
  background: var(--ge-bg-light);
}

.services-section .section-header {
  margin-bottom: 30px;
}

/* Sezione testo/contatti */
#body-wrapper .modular-row {
  padding: 30px 0;
}

/* ============================================
   BOTTONI CTA CORRETTI
   ============================================ */
.cta-buttons {
  text-align: center;
  margin: 25px 0;
}

.cta-buttons .button {
  margin: 8px;
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 140px;
  line-height: 1.4;
}

.cta-buttons .btn-primary {
  background: var(--ge-primary);
  color: var(--ge-text-light) !important;
  border: 2px solid var(--ge-primary);
}

.cta-buttons .btn-primary:hover {
  background: var(--ge-primary-dark);
  border-color: var(--ge-primary-dark);
  color: var(--ge-text-light) !important;
}

.cta-buttons .btn-secondary {
  background: var(--ge-primary);
  color: var(--ge-text-light) !important;
  border: 2px solid var(--ge-primary);
}

.cta-buttons .btn-secondary:hover {
  background: var(--ge-primary-dark);
  border-color: var(--ge-primary-dark);
  color: var(--ge-text-light) !important;
}

/* Immagine telefono */
.cta-phone {
  text-align: center;
  margin: 20px 0 10px;
}

.cta-phone a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.cta-phone a:hover {
  transform: scale(1.05);
}

.cta-phone img {
  max-width: 280px;
  height: auto;
}

@media (max-width: 768px) {
  .cta-buttons .button {
    display: flex;
    margin: 10px auto;
    max-width: 250px;
  }
  
  .cta-phone img {
    max-width: 220px;
  }
  
  .services-section {
    padding: 30px 0;
  }
}
/* ============================================
   FOOTER - STILE COERENTE CON HEADER
   Sostituisci la sezione footer nel tuo custom.css
   ============================================ */

/* Footer principale */
.ge-footer,
#footer {
    background-color: #FFFFFF !important;
    padding: 20px 0 !important;
    border-top: 1px solid #e0e0e0;
}

.ge-footer-content {
    text-align: center;
}

.ge-footer-content p,
.ge-footer p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

#footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Rimuovi stili footer Quark default */
#footer .copyright,
#footer .powered-by {
    display: none !important;
}

/* ============================================
   PORTFOLIO / I NOSTRI LAVORI - CAROSELLI
   Aggiungi questo al tuo custom.css
   ============================================ */

.portfolio-page {
    padding: 40px 0;
}

.portfolio-intro {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    max-width: 800px;
}

/* Sezione progetto */
.project-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.project-section:last-of-type {
    border-bottom: none;
}

.project-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e73be;
    margin-bottom: 20px;
}

/* Container carosello */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.carousel-track-wrapper {
    flex: 1;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 15px;
    transition: transform 0.4s ease;
}

/* Slide singola */
.carousel-slide {
    flex: 0 0 200px;
    height: 150px;
}

.carousel-slide a {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-slide a:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bottoni frecce - SEMPLICI */
.carousel-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #1e73be;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: #1e73be;
    color: #fff;
    border-color: #1e73be;
}

/* CTA finale */
.portfolio-cta {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 40px;
}

.portfolio-cta p {
    font-size: 18px;
    margin: 0;
}

.portfolio-cta a {
    color: #1e73be;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 150px;
        height: 110px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .project-section h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .carousel-btn {
        display: none;
    }
    
    .carousel-track-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .carousel-track-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .carousel-track {
        transition: none;
    }
}

/* Rimuovi bordo bianco Featherlight */
.featherlight .featherlight-content {
    padding: 0;
    border: none;
    background: transparent;
}

.featherlight .featherlight-image {
    border: none;
}

/* Pagina portfolio a larghezza piena */
.portfolio-page .container {
    max-width: 100%;
    padding: 0 40px;
}

/* ============================================
   VIDEO HERO BACKGROUND
   ============================================ */

/* Container principale video hero */
.video-background-holder {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
}

/* Video di sfondo */
.video-background-holder video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

/* Overlay scuro sopra il video */
.video-background-holder .video-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    z-index: 2;
}

/* Contenuto testuale sopra il video */
.video-background-holder .video-background-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

/* Rimuovi l'overlay interno duplicato */
.video-background-holder .video-background-content .image-overlay {
    display: none;
}

/* Stili testo hero con video */
.video-background-holder h1 {
    font-size: 3.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.video-background-holder h2 {
    font-size: 1.8rem;
    color: #ffffff;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.video-background-holder p {
    font-size: 1.2rem;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    margin: 0 auto;
}

/* Fix per la section hero con video - rimuovi padding inline */
.modular-hero.hero:has(.video-background-holder) {
    padding: 0 !important;
    min-height: auto;
    background: none !important;
}

/* Freccia scroll down */
.video-background-holder + #to-start,
.modular-hero #to-start {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    color: #ffffff;
    font-size: 2.5rem;
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .video-background-holder {
        height: 80vh;
        min-height: 400px;
        max-height: 600px;
    }
    
    .video-background-holder h1 {
        font-size: 2.2rem;
    }
    
    .video-background-holder h2 {
        font-size: 1.3rem;
    }
    
    .video-background-holder p {
        font-size: 1rem;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .video-background-holder {
        height: 70vh;
        min-height: 350px;
    }
    
    .video-background-holder h1 {
        font-size: 1.8rem;
    }
    
    .video-background-holder h2 {
        font-size: 1.1rem;
    }
}
