/* Diamond4u - Static Site Stylesheet */
/* Brand Colors: Red #eb1923 | Green #b0d133 | Blue #00abdc | Dark #030611 */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: #fff;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.85; }

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

ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: #030611;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 70px 0; }
.section-sm { padding: 40px 0; }

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  display: block;
  width: 60px;
  height: 3px;
  background: #b0d133;
  margin: 12px auto 0;
}
.divider--left { margin-left: 0; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-logo img {
  height: 48px;
  width: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #030611;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.navbar-nav a:hover,
.navbar-nav a.active { color: #eb1923; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #030611;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 12px 24px 20px;
}
.mobile-nav a {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #030611;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open { display: flex; }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f5f5f5;
  touch-action: pan-y;
  user-select: none;
}

.hero-slider__track {
  position: relative;
  width: 100%;
  height: clamp(280px, 44vw, 560px);
  min-height: 280px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(3, 6, 17, 0.7);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 2;
}

.hero-slider__btn:hover {
  background: rgba(235, 25, 35, 0.9);
  transform: translateY(-50%) scale(1.05);
}

.hero-slider__btn--prev { left: 16px; }
.hero-slider__btn--next { right: 16px; }

.hero-slider__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-slider__dots button {
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-slider__dots button.is-active {
  background: #eb1923;
  transform: scale(1.15);
}

@media (max-width: 768px) {
  .hero-slider__track {
    height: clamp(220px, 56vw, 320px);
  }

  .hero-slider__btn {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .hero-slider__track {
    height: 240px;
  }

  .hero-slider__btn {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .hero-slider__btn--prev { left: 10px; }
  .hero-slider__btn--next { right: 10px; }
}

/* ============================================================
   SECTION TITLE
   ============================================================ */
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  color: #030611;
  margin-bottom: 8px;
}
.section-title--left { text-align: left; }

/* ============================================================
   3-DIVISION CARDS (Home + Chi Siamo)
   ============================================================ */
.divisions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.division-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 24px;
  border-radius: 4px;
  min-height: 110px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.division-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.division-card--red   { background: #eb1923; }
.division-card--green { background: #b0d133; }
.division-card--blue  { background: #00abdc; }

.division-card__label {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  line-height: 1.45;
}

.division-card__img {
  width: 70px;
  height: auto;
  flex-shrink: 0;
  margin-left: 16px;
  filter: brightness(0) invert(1);
}

/* ============================================================
   IMAGE GALLERY (3-col, Home page)
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  margin-top: 70px;
}
.gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 2px;
  transition: transform 0.3s;
}
.gallery-grid img:hover { transform: scale(1.02); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 80px;
}
.cta-inner {
  background: rgba(25, 24, 24, 0.88);
  padding: 48px 56px;
  text-align: center;
  max-width: 520px;
  border-radius: 4px;
}
.cta-inner h2 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.cta-inner p {
  color: #ccc;
  margin-bottom: 28px;
  font-size: 0.95rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 12px 36px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 3px;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.btn-primary {
  background: #eb1923;
  color: #fff;
}
.btn-primary:hover { background: #c8141e; }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-outline:hover { background: #b0d133; border-color: #b0d133; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(3, 6, 17, 0.95);
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.cookie-banner__text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-banner__btn {
  border: none;
  border-radius: 4px;
  padding: 10px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.cookie-banner__btn:hover {
  transform: translateY(-1px);
}
.cookie-banner__btn--primary {
  background: #b0d133;
  color: #030611;
}
.cookie-banner__btn--secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-banner__actions {
    width: 100%;
  }
  .cookie-banner__btn {
    flex: 1;
    text-align: center;
  }
}

/* ============================================================
   PRODUCTS GRID (Recent products section)
   ============================================================ */
.products-section { padding: 0 0 80px; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.product-card {
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.product-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-card__body {
  padding: 14px 16px;
}
.product-card__body h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #030611;
  margin-bottom: 4px;
}
.product-card__body p {
  font-size: 0.8rem;
  color: #777;
  margin: 0;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: #f8f8f8;
  padding: 60px 0 50px;
  text-align: center;
}
.page-hero h1 {
  font-size: 2.4rem;
  color: #030611;
  margin-bottom: 8px;
}

/* ============================================================
   CHI SIAMO PAGE
   ============================================================ */
.about-intro {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: center;
  margin-top: 70px;
}
.about-intro img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
}
.about-intro__text h1 {
  font-size: 1.9rem;
  margin-bottom: 20px;
  color: #030611;
}
.about-intro__text p {
  color: #555;
  line-height: 1.8;
}

/* Timeline */
.timeline { margin-top: 60px; }
.timeline h2 { margin-bottom: 8px; }
.timeline-list {
  margin-top: 28px;
  border-left: 3px solid #b0d133;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.timeline-item {
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: #eb1923;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #eb1923;
}
.timeline-item strong {
  color: #eb1923;
  font-weight: 600;
}
.timeline-item p { margin: 2px 0 0; color: #555; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.service-card {
  background: #f8f8f8;
  border-radius: 6px;
  padding: 28px 24px;
  text-align: center;
  transition: box-shadow 0.25s, transform 0.25s;
  border-top: 3px solid #b0d133;
}
.service-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}
.service-card i {
  font-size: 1.8rem;
  color: #b0d133;
  margin-bottom: 14px;
}
.service-card h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #030611;
}
.service-card p {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   CONTATTI PAGE
   ============================================================ */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 50px;
}

.contact-person {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}
.contact-person:last-child { border-bottom: none; }
.contact-person strong {
  display: block;
  color: #030611;
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-person a {
  color: #00abdc;
  transition: color 0.2s;
}
.contact-person a:hover { color: #eb1923; }

/* ============================================================
   PRIVACY PAGE
   ============================================================ */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 0 80px;
}
.privacy-content h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 1.3rem;
}
.privacy-content h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #444;
}
.privacy-content p {
  color: #555;
  line-height: 1.8;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: #030611;
  color: #ccc;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo img {
  height: 44px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}
.footer-logo p {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.7;
  margin: 0;
}

.footer-col h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: #888;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: #b0d133; }

.footer-col--contact p {
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 8px;
  line-height: 1.6;
}
.footer-col--contact a { color: #888; }
.footer-col--contact a:hover { color: #b0d133; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.8rem;
  color: #555;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: #555; }
.footer-bottom a:hover { color: #b0d133; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .divisions-grid { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .hamburger { display: flex; }
  
  .hero img { height: 260px; }

  .divisions-grid { grid-template-columns: 1fr; gap: 14px; }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid img { height: 200px; }

  .cta-section { min-height: 300px; }
  .cta-inner { padding: 32px 24px; }

  .products-grid { grid-template-columns: repeat(2, 1fr); }

  .about-intro { grid-template-columns: 1fr; gap: 32px; }
  .about-intro img { max-height: 300px; object-fit: cover; }

  .services-grid { grid-template-columns: 1fr; }

  .contacts-grid { grid-template-columns: 1fr; gap: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .section-title { font-size: 1.6rem; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-inner { padding: 24px 16px; }
}
