/*
Theme Name: 2Z Serramenti
Theme URI: https://duezetaserramenti.it
Author: 2Z Serramenti
Description: Tema ufficiale 2Z Serramenti - Finestre e porte su misura a Vicenza
Version: 1.0.0
License: Proprietary
Text Domain: 2z-serramenti
*/

/* =========================================
   GOOGLE FONTS
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Open+Sans:wght@300;400;500;600&display=swap');

/* =========================================
   CSS VARIABLES
========================================= */
:root {
  --primary: hsl(145, 63%, 42%);
  --primary-dark: hsl(145, 63%, 32%);
  --primary-light: hsl(145, 63%, 55%);
  --primary-10: hsla(145, 63%, 42%, 0.1);
  --background: #ffffff;
  --foreground: hsl(150, 10%, 10%);
  --secondary-bg: hsl(150, 5%, 96%);
  --dark-bg: hsl(150, 10%, 8%);
  --dark-fg: #ffffff;
  --muted: hsl(150, 5%, 45%);
  --border: hsl(150, 10%, 90%);
  --card-bg: #ffffff;
  --radius: 0.5rem;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --hero-overlay: linear-gradient(135deg, hsla(150,10%,8%,0.75) 0%, hsla(145,63%,20%,0.55) 100%);
  --container: 1280px;
}

/* =========================================
   RESET & BASE
========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* =========================================
   LAYOUT
========================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.section-dark {
  background: hsl(150, 10%, 8%);
  color: #ffffff;
}
.section-dark .muted { color: rgba(255,255,255,0.6); }

/* =========================================
   BUTTONS
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* =========================================
   NAVBAR
========================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.nav-logo img { height: 48px; }
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--foreground);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }
.nav-ctas { display: flex; gap: 0.75rem; align-items: center; }

/* Mobile hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--foreground);
  transition: all 0.3s;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } .nav-ctas { display: flex; } }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--border);
  gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--foreground);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu .btn { margin-top: 0.75rem; width: fit-content; }

/* =========================================
   HERO SECTION
========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 80px;
}
.hero.compact { min-height: 55vh; }
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero-content h1 .highlight { color: var(--primary-light); }
.hero-content p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* =========================================
   FEATURES SECTION
========================================= */
.features { padding: 5rem 0; background: var(--secondary-bg); }
.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-title h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
}
.section-title h2 .accent { color: var(--primary); }
.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.feature-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  background: var(--primary-10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 28px; height: 28px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* =========================================
   PRODUCTS GRID (Home)
========================================= */
.products-home { padding: 5rem 0; }
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); transform: translateY(-2px); }
.product-card img { width: 100%; height: 220px; object-fit: cover; }
.product-card-body { padding: 1.5rem; }
.product-card-body h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.product-card-body p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* =========================================
   CTA BANNER
========================================= */
.cta-banner {
  padding: 5rem 0;
  background: var(--dark-bg);
  color: #fff;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto 2rem; line-height: 1.7; }

/* =========================================
   PRODOTTI PAGE
========================================= */
.products-list { padding: 5rem 0; }
.product-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 5rem;
}
.product-row:last-child { margin-bottom: 0; }
@media (min-width: 1024px) {
  .product-row { flex-direction: row; gap: 4rem; }
  .product-row.reverse { flex-direction: row-reverse; }
}
.product-row-img { flex: 1; }
.product-row-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
@media (min-width: 1024px) { .product-row-img img { height: 380px; } }
.product-row-text { flex: 1; }
.product-row-text h2 { font-size: 1.875rem; font-weight: 700; margin-bottom: 1rem; }
.product-row-text p { color: var(--muted); line-height: 1.8; margin-bottom: 1.5rem; }
.product-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  list-style: none;
}
.product-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.product-features li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* Bonus Energia */
.bonus-section { padding: 5rem 0; }
.bonus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 2.5rem auto 0;
}
@media (min-width: 768px) { .bonus-grid { grid-template-columns: repeat(3, 1fr); } }
.bonus-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.bonus-card h4 { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: #fff; margin-bottom: 0.5rem; }
.bonus-card p { color: rgba(255,255,255,0.6); font-size: 0.875rem; line-height: 1.6; }

/* Badge 100% Italiano */
.badge-italia {
  padding: 2.5rem 0;
  background: var(--secondary-bg);
}
.badge-italia-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 640px) { .badge-italia-inner { flex-direction: row; text-align: left; } }
.badge-italia-inner .flag { font-size: 2.5rem; }
.badge-italia-inner p { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; }
.badge-italia-inner p span { color: var(--primary); }

/* =========================================
   SERVIZI PAGE
========================================= */
.services-grid { padding: 5rem 0; }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.service-card {
  background: var(--secondary-bg);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: box-shadow 0.2s;
}
.service-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.service-card .icon-wrap {
  width: 56px; height: 56px;
  background: var(--primary-10);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.service-card .icon-wrap svg { width: 28px; height: 28px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-card p { color: var(--muted); line-height: 1.8; }

/* Process steps */
.process-steps { padding: 5rem 0; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }
.step { text-align: center; }
.step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.step h4 { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; color: #fff; }

/* =========================================
   CHI SIAMO PAGE
========================================= */
.about-section { padding: 5rem 0; }
.about-prose { max-width: 800px; margin: 0 auto; }
.about-prose h2 { font-size: 1.875rem; font-weight: 700; margin-bottom: 1.5rem; }
.about-prose p { color: var(--muted); line-height: 1.8; margin-bottom: 1.5rem; }
.about-prose p strong { color: var(--foreground); }
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
}
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
.value-card {
  background: var(--secondary-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.value-card h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.value-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.about-cta { text-align: center; margin-top: 3rem; }

/* =========================================
   CONTATTI PAGE
========================================= */
.contatti-hero {
  padding: 5rem 0;
  background: var(--dark-bg);
  color: #fff;
  text-align: center;
  margin-top: 80px;
}
.contatti-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; margin-bottom: 1rem; }
.contatti-hero p { color: rgba(255,255,255,0.7); max-width: 500px; margin: 0 auto; }
.contatti-section { padding: 5rem 0; }
.contatti-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) { .contatti-grid { grid-template-columns: 1fr 1fr; } }
.contatti-info h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 2rem; }
.info-items { display: flex; flex-direction: column; gap: 1.5rem; }
.info-item { display: flex; align-items: flex-start; gap: 1rem; }
.info-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--primary-10);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.info-icon svg { width: 20px; height: 20px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-item h3 { font-family: var(--font-heading); font-weight: 600; font-size: 1rem; margin-bottom: 0.25rem; }
.info-item p, .info-item a { color: var(--muted); font-size: 0.9rem; display: block; transition: color 0.2s; }
.info-item a:hover { color: var(--primary); }
.dati-aziendali {
  margin-top: 2rem;
  background: var(--secondary-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.dati-aziendali h3 { font-family: var(--font-heading); font-weight: 600; margin-bottom: 0.75rem; }
.dati-aziendali p { color: var(--muted); font-size: 0.875rem; line-height: 1.8; }
.map-wrap h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 2rem; }
.map-wrap iframe {
  width: 100%; height: 500px;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border: 0;
}

/* =========================================
   WHATSAPP BUTTON
========================================= */
.whatsapp-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,0.5); }
.whatsapp-btn svg { width: 30px; height: 30px; fill: #fff; }

/* =========================================
   FOOTER
========================================= */
#site-footer {
  background: hsl(150, 10%, 8%);
  color: #fff;
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand img { height: 40px; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.875rem; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact a {
  display: flex; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-contact a:hover { color: var(--primary); }
.footer-contact svg { width: 16px; height: 16px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.footer-address p { color: rgba(255,255,255,0.5); font-size: 0.875rem; line-height: 1.8; }
.footer-address .flex { display: flex; gap: 0.5rem; align-items: flex-start; }
.footer-address svg { width: 16px; height: 16px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 3px; }
.footer-address .vat { margin-top: 0.75rem; font-size: 0.75rem; color: rgba(255,255,255,0.35); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

/* =========================================
   RESPONSIVE MISC
========================================= */
@media (max-width: 1023px) {
  .nav-ctas { display: none; }
}
