/* ===== VARIABLES ===== */
:root {
  --brand: #dfa37c;
  --brand-dark: #dd8952;
  --brand-darker: #ad714a;
  --text: #444444;
  --text-light: #666666;
  --bg-footer: #eeeeee;
  --white: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: #fff;
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-dark); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

p { margin-bottom: 1rem; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== META BAR ===== */
.meta-bar {
  background: var(--white);
  border-bottom: 1px solid #eee;
  font-size: 13px;
  padding: 6px 0;
}
.meta-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.meta-bar .social a {
  color: var(--text-light);
  margin-right: 10px;
  font-size: 15px;
}
.meta-bar .social a:hover { color: var(--brand); }
.meta-bar .contact-info {
  color: var(--text-light);
  font-size: 12px;
}
.meta-bar .contact-info a { color: var(--text-light); }
.meta-bar .contact-info a:hover { color: var(--brand); }

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  border-top: 3px solid var(--brand);
  padding: 15px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo img { max-height: 80px; width: auto; }
.site-logo .tagline {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
  font-style: italic;
}
.header-address {
  text-align: right;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}
.header-address a { color: var(--brand); }

/* ===== NAVIGATION ===== */
.site-nav {
  background: var(--white);
  border-bottom: 2px solid var(--brand);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}
.site-nav .container { display: flex; align-items: center; }

.nav-menu {
  list-style: none;
  display: flex;
  gap: 0;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s;
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  background: var(--brand);
  color: var(--white);
}

/* Dropdown */
.nav-menu .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  border-top: 2px solid var(--brand);
  list-style: none;
  z-index: 200;
}
.nav-menu > li:hover .dropdown { display: block; }
.nav-menu .dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid #f0f0f0;
}
.nav-menu .dropdown li a:hover {
  background: var(--brand);
  color: var(--white);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== PAGE HERO (sezione sfondo fisso) ===== */
.page-hero {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
}
.page-hero-content h1 {
  font-size: 2.5rem;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 500px;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide.active { opacity: 1; }
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}
.slide-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}
.slide-content h2 {
  font-size: 2.8rem;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  margin-bottom: 15px;
}
.slide-content a.btn {
  display: inline-block;
  padding: 10px 28px;
  background: var(--brand);
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.2s;
}
.slide-content a.btn:hover { background: var(--brand-dark); }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--brand);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.slider-btn:hover { opacity: 1; }
.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

/* ===== SECTIONS ===== */
.section { padding: 60px 0; }
.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--text);
}
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--brand);
  margin: 10px auto 30px;
}

/* ===== INTRO TEXT ===== */
.intro-section {
  padding: 60px 0;
  text-align: center;
}
.intro-section p {
  max-width: 800px;
  margin: 0 auto 1rem;
  font-size: 15px;
  color: var(--text-light);
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.product-card {
  position: relative;
  overflow: hidden;
}
.product-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover img { transform: scale(1.05); }
.product-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(223,163,124,0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  text-align: center;
  padding: 20px;
}
.product-card:hover .product-card-overlay { opacity: 1; }
.product-card-overlay h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 10px; }
.product-card-overlay a {
  color: var(--white);
  border: 1px solid var(--white);
  padding: 6px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.product-card-overlay a:hover { background: var(--white); color: var(--brand); }

/* ===== TWO COLUMN BANNERS ===== */
.two-col-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 40px 0;
}
.banner-card { position: relative; overflow: hidden; }
.banner-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s;
}
.banner-card:hover img { transform: scale(1.03); }
.banner-card-body { padding: 20px 0 10px; }
.banner-card-body h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--brand); }
.banner-card-body p { font-size: 14px; color: var(--text-light); }
.banner-card-body a.btn-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--brand);
}
.banner-card-body a.btn-link:hover { color: var(--brand-dark); border-color: var(--brand-dark); }

/* ===== QUOTE / TESTIMONIAL ===== */
.quotes-section {
  background: #f9f5f2;
  padding: 60px 0;
}
.quotes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.quote-box {
  padding: 30px;
  background: var(--white);
  border-left: 4px solid var(--brand);
  position: relative;
}
.quote-box::before {
  content: '\f10d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--brand);
  font-size: 24px;
  margin-bottom: 12px;
  display: block;
}
.quote-box p {
  font-style: italic;
  color: var(--text-light);
  font-size: 15px;
  margin: 0;
}

/* ===== CTA BANNER ===== */
.cta-section {
  background: var(--brand);
  padding: 40px 0;
  text-align: center;
}
.cta-section h2 { color: var(--white); font-size: 1.6rem; margin-bottom: 10px; }
.cta-section p { color: rgba(255,255,255,0.9); margin-bottom: 20px; font-size: 15px; }
.btn-white {
  display: inline-block;
  padding: 12px 32px;
  background: var(--white);
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  transition: background 0.2s, color 0.2s;
}
.btn-white:hover { background: var(--brand-dark); color: var(--white); }

/* ===== FUN FACTS ===== */
.funfacts-section {
  background: var(--text);
  padding: 50px 0;
  color: var(--white);
}
.funfacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.funfact-item .number {
  font-family: 'Roboto Slab', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}
.funfact-item .label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
  color: rgba(255,255,255,0.8);
}

/* ===== FULL WIDTH IMAGE ===== */
.full-image { width: 100%; max-height: 400px; object-fit: cover; }

/* ===== PAGE CONTENT ===== */
.page-content {
  padding: 60px 0;
}
.page-content .container {
  max-width: 900px;
}
.page-content h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--brand);
}
.page-content p { color: var(--text-light); font-size: 15px; }
.page-content ul {
  margin: 0 0 1rem 1.5rem;
  color: var(--text-light);
  font-size: 15px;
}
.page-content ul li { margin-bottom: 6px; }

/* ===== PAGE HERO IMAGE ===== */
.page-hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* ===== PRODUZIONE GRID ===== */
.produzione-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 40px 0;
}
.produzione-item { overflow: hidden; }
.produzione-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s;
}
.produzione-item:hover img { transform: scale(1.03); }
.produzione-item h3 { margin: 12px 0 6px; font-size: 1.1rem; }
.produzione-item p { font-size: 14px; color: var(--text-light); }
.produzione-item a.btn-link {
  display: inline-block;
  font-size: 13px;
  color: var(--brand);
  text-transform: uppercase;
  border-bottom: 1px solid var(--brand);
}

/* ===== PUNTO VENDITA ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}
.contact-info-box h3 {
  color: var(--brand);
  margin-bottom: 15px;
  font-size: 1.1rem;
}
.contact-info-box p { font-size: 15px; color: var(--text-light); margin-bottom: 8px; }
.contact-info-box a { color: var(--brand); }
.map-embed { width: 100%; height: 300px; border: none; }

/* ===== FOOTER ===== */
.footer-widgets {
  background: var(--bg-footer);
  padding: 50px 0 30px;
  border-top: 3px solid var(--brand);
}
.footer-widgets .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-widget h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand);
  display: inline-block;
}
.footer-widget p,
.footer-widget ul { font-size: 13px; color: var(--text-light); }
.footer-widget ul { list-style: none; }
.footer-widget ul li { margin-bottom: 6px; }
.footer-widget ul li a { color: var(--text-light); }
.footer-widget ul li a:hover { color: var(--brand); }

.footer-socket {
  background: var(--text);
  padding: 15px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .funfacts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .meta-bar .container { flex-wrap: wrap; gap: 6px; }
  .site-header .container { flex-direction: column; text-align: center; gap: 10px; }
  .header-address { text-align: center; }

  .nav-toggle { display: flex; flex-direction: column; }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--white);
    border-top: 1px solid #eee;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { border-bottom: 1px solid #f0f0f0; }
  .nav-menu .dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    background: #fafafa;
    display: none;
  }
  .nav-menu > li.open .dropdown { display: block; }

  .hero-slider { height: 300px; }
  .slide-content h2 { font-size: 1.8rem; }

  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col-banners { grid-template-columns: 1fr; }
  .quotes-grid { grid-template-columns: 1fr; }
  .funfacts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-widgets .container { grid-template-columns: 1fr; }
  .produzione-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .page-hero-content h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .funfacts-grid { grid-template-columns: repeat(2, 1fr); }
}
