@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   RENZO USERI — Forniture Industriali
   style.css — Single shared stylesheet
   ============================================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  color: #222;
  background: #fafafa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Variables (used via literal values for compatibility) */
/* --red: #c0392b; --dark: #2c3e50; --grey: #f5f5f5; */

/* ============================================================
   TOP BAR (contact info strip)
   ============================================================ */
.topbar {
  background: #c0392b;
  color: #fff;
  font-size: 13px;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; }
.topbar .tb-item { display: flex; align-items: center; gap: 6px; }
.topbar .tb-sep { flex: 1; }

/* ============================================================
   MAIN HEADER WITH LOGO
   ============================================================ */
.site-header {
  background: #2c3e50;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.header-logo img { height: 52px; width: auto; }
.header-logo .logo-text { color: #fff; line-height: 1.2; }
.header-logo .logo-text .logo-name {
  font-size: 22px;
  font-weight: 700;
  color: #c0392b;
  letter-spacing: 1px;
}
.header-logo .logo-text .logo-sub {
  font-size: 12px;
  color: #ccc;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.lang-switcher { display: flex; align-items: center; gap: 10px; }
.lang-switcher a {
  font-size: 20px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lang-switcher a:hover,
.lang-switcher a.active { opacity: 1; }

/* ============================================================
   NAVIGATION (mobile hamburger via checkbox)
   ============================================================ */
nav { background: #243342; }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: stretch;
}

/* Hamburger checkbox hack */
#nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 14px 20px;
  color: #fff;
  font-size: 22px;
  user-select: none;
}

.nav-menu { display: flex; align-items: stretch; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block;
  padding: 18px 20px;
  color: #ddd;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  position: relative;
}
.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 3px;
  background: #c0392b;
  transition: left 0.2s ease, right 0.2s ease;
}
.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
  left: 0;
  right: 0;
}
.nav-menu > li > a:hover { color: #fff; }
.nav-menu > li > a.active {
  color: #fff;
  border-bottom: 3px solid #ff4444;
}

/* Dropdown */

/* ============================================================
   STATIC HERO
   ============================================================ */
/* Static hero */
.hero {
  position: relative;
  overflow: hidden;
  max-height: 520px;
}
.hero-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-caption {
  text-align: center;
  color: #fff;
  padding: 20px;
}
.hero-caption h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 0 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero-caption p {
  font-size: 1.15rem;
  margin: 0 0 24px;
  opacity: 0.92;
}
.hero-cta {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  padding: 13px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}
.hero-cta:hover { background: #96281b; }

/* Brand strip */
.brand-strip {
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 18px 0;
  overflow: hidden;
}
.brand-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  padding: 0 40px;
}
.brand-strip-inner img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(40%);
  opacity: 0.8;
  transition: filter 0.2s, opacity 0.2s;
}
.brand-strip-inner img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.section {
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.section-grey {
  background: #f5f5f5;
  width: 100%;
  padding: 50px 0;
}
.section-grey .section { padding-top: 0; padding-bottom: 0; }

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #c0392b;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c0392b;
}
.section-title.dark { color: #2c3e50; border-color: #2c3e50; }

/* Specializations */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.spec-card {
  background: #fff;
  color: #2c3e50;
  padding: 22px 20px;
  text-align: center;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #c0392b;
  font-size: 15px;
  font-weight: 600;
  font-style: normal;
}

/* Tagline section */
.tagline-section {
  background: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 50px 20px;
}
.tagline-section h2 {
  font-size: 26px;
  font-weight: 700;
  color: #c0392b;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tagline-section p {
  font-size: 17px;
  font-style: italic;
  margin-bottom: 12px;
  color: #ddd;
}

/* ============================================================
   PRODUCTS LAYOUT (sidebar + main)
   ============================================================ */
.products-layout {
  display: flex;
  align-items: flex-start;
  min-height: 500px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 30px 20px;
  gap: 0;
}
.products-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #2c3e50;
  border-radius: 4px 0 0 4px;
  overflow: hidden;
  align-self: flex-start;
  position: sticky;
  top: 60px;
}
.products-sidebar h3 {
  background: #c0392b;
  color: #fff;
  padding: 14px 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.products-sidebar ul { padding: 8px 0; }
.products-sidebar ul li a {
  display: block;
  padding: 10px 18px;
  color: #ccc;
  font-size: 13px;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.products-sidebar ul li a:hover,
.products-sidebar ul li a.active {
  background: #243342;
  border-left-color: #c0392b;
  color: #fff;
}

.products-main {
  flex: 1;
  padding: 30px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 0 4px 4px 0;
  min-width: 0;
}
.products-main h2 {
  font-size: 22px;
  color: #c0392b;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
}
.products-main h3 {
  font-size: 16px;
  color: #2c3e50;
  font-weight: 700;
  margin: 24px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.products-main ul {
  list-style: disc;
  padding-left: 22px;
  color: #444;
  line-height: 1.8;
}
.products-main ul li { margin-bottom: 2px; }

/* .product-images removed — images now inside individual product cards */

/* ============================================================
   BRANDS GRID (Prodotti page)
   ============================================================ */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  transition: box-shadow 0.2s, border-color 0.2s;
  min-height: 90px;
}
.brand-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  border-color: #c0392b;
}
.brand-item img {
  max-height: 70px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ============================================================
   PROMO CARDS GRID
   ============================================================ */
.promo-section { margin-bottom: 48px; }
.promo-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #c0392b;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c0392b;
}
.promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.promo-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.promo-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.promo-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.promo-card-body { padding: 14px; flex: 1; }
.promo-card-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 6px;
}
.promo-card-body p {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 8px;
}
.promo-price {
  font-size: 20px;
  font-weight: 700;
  color: #c0392b;
  padding: 10px 14px;
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
}

/* Cart/Tool large promo card */
.promo-card-large {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  transition: box-shadow 0.2s;
}
.promo-card-large:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.promo-card-large img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}
.promo-card-large-body {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.promo-card-large-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 6px;
}
.promo-card-large-body ul {
  list-style: disc;
  padding-left: 18px;
  color: #555;
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
}
.promo-card-large-body .promo-price {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 22px;
  font-weight: 700;
  margin-top: 12px;
  border: none;
}

/* ============================================================
   PROMO TABLES
   ============================================================ */
.promo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 8px;
}
.promo-table th {
  background: #2c3e50;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
}
.promo-table td {
  padding: 9px 14px;
  border-bottom: 1px solid #e8e8e8;
  color: #333;
}
.promo-table tr:nth-child(even) td { background: #f9f9f9; }
.promo-table tr:hover td { background: #fff3f3; }
.promo-table .price-cell {
  color: #c0392b;
  font-weight: 700;
  font-size: 15px;
  text-align: right;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-wrapper {
  max-width: 700px;
  margin: 0 auto;
}
.contact-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.contact-card-header {
  background: #c0392b;
  color: #fff;
  padding: 22px 28px;
}
.contact-card-header h2 {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.contact-card-body { padding: 28px; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.contact-row:last-child { border-bottom: none; }
.contact-icon {
  font-size: 22px;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
  color: #c0392b;
  margin-top: 2px;
}
.contact-detail { flex: 1; }
.contact-detail strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 3px;
}
.contact-detail span {
  font-size: 16px;
  color: #2c3e50;
  font-weight: 500;
}
.contact-detail a { color: #c0392b; }
.contact-detail a:hover { text-decoration: underline; }

.contact-map-hint {
  background: #f5f5f5;
  padding: 20px 28px;
  font-size: 13px;
  color: #666;
  border-top: 1px solid #e0e0e0;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #2c3e50;
  color: #aaa;
  padding: 30px 20px;
  margin-top: auto;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand .footer-name {
  font-size: 18px;
  font-weight: 700;
  color: #c0392b;
  margin-bottom: 4px;
}
.footer-brand .footer-sub { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.footer-info { font-size: 13px; line-height: 1.8; }
.footer-info a { color: #ccc; }
.footer-info a:hover { color: #c0392b; }
.footer-copy {
  font-size: 12px;
  color: #666;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #243342;
  text-align: center;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 900px) {
  /* Hamburger nav */
  .nav-toggle-label { display: block; }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #2c3e50;
  }
  #nav-toggle:checked ~ .nav-menu { display: flex; }
  .nav-inner { flex-direction: column; padding: 0; }
  .nav-menu > li > a { padding: 12px 20px; border-bottom: 1px solid #243342; }

  .hero { max-height: 280px; }
  .hero-img { height: 280px; }
  .hero-caption h1 { font-size: 20px; }
  .hero-overlay { padding: 20px; }

  /* Products layout stacks */
  .products-layout { flex-direction: column; padding: 16px; }
  .products-sidebar {
    width: 100%;
    position: static;
    border-radius: 4px;
  }
  .products-main { border-radius: 4px; padding: 20px; }

  .promo-card-large { flex-direction: column; }
  .promo-card-large img { width: 100%; height: 220px; }
}

@media (max-width: 700px) {
  .topbar .tb-item:nth-child(3) { display: none; } /* hide address */
  .product-card-grid { grid-template-columns: 1fr; }
  .product-intro { padding: 20px; }
}

@media (max-width: 600px) {
  .topbar { font-size: 11px; gap: 10px; }
  .header-logo .logo-name { font-size: 17px; }
  .footer-inner { flex-direction: column; }
  .specs-grid { grid-template-columns: 1fr 1fr; }
  .brands-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .promo-cards { grid-template-columns: 1fr 1fr; }
  .tagline-section h2 { font-size: 20px; }
  .tagline-section p { font-size: 15px; }
  .section-title { font-size: 19px; }
  .hero-img { height: 280px; }
  .hero-caption h1 { font-size: 1.4rem; }
  .hero-caption p { font-size: 0.95rem; }
  .brand-strip-inner { gap: 20px; padding: 0 20px; }
  .brand-strip-inner img { height: 30px; }
}

@media (max-width: 380px) {
  .promo-cards { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   NEW COMPONENTS (added 2026-03-08)
   ============================================================ */

/* Breadcrumb */
.breadcrumb { padding: 10px 24px; background: #f0f0f0; font-size: 0.85rem; color: #555; border-bottom: 1px solid #ddd; }
.breadcrumb a { color: #c0392b; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* CTA box */
.cta-box { background: #f5f5f5; border-left: 4px solid #c0392b; padding: 20px 24px; margin: 32px 0 16px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-box p { margin: 0; font-size: 1rem; flex: 1; }
.cta-btn { background: #c0392b; color: #fff; padding: 12px 24px; border-radius: 4px; text-decoration: none; font-weight: 700; white-space: nowrap; transition: background 0.2s; }
.cta-btn:hover { background: #a00000; }

/* WhatsApp floating button */
.whatsapp-btn { position: fixed; bottom: 24px; right: 24px; background: #25d366; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 999; transition: transform 0.2s; }
.whatsapp-btn:hover { transform: scale(1.1); }

/* Contact form */
.contact-form { max-width: 560px; margin: 24px 0; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 4px; margin-top: 16px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; font-family: inherit; box-sizing: border-box; }
.contact-form textarea { height: 120px; resize: vertical; }
.contact-form button { margin-top: 16px; background: #c0392b; color: #fff; border: none; padding: 12px 28px; font-size: 1rem; font-weight: 700; border-radius: 4px; cursor: pointer; transition: background 0.2s; }
.contact-form button:hover { background: #a00000; }

/* Hours badge */
.hours-badge { display: inline-flex; align-items: center; gap: 8px; background: #f5f5f5; border: 1px solid #ddd; border-radius: 6px; padding: 10px 16px; font-size: 1rem; margin: 16px 0; }

/* Map */
.map-wrapper { margin: 32px 0; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

/* About page */
.about-section { max-width: 800px; margin: 0 auto 40px; }
.about-section h2 { color: #c0392b; border-bottom: 2px solid #c0392b; padding-bottom: 8px; margin-bottom: 16px; }
.about-section ul { padding-left: 20px; line-height: 2; }

/* 404 page */
.error-404 { text-align: center; padding: 80px 24px; }
.error-404 h1 { font-size: 8rem; color: #c0392b; margin: 0; line-height: 1; }
.error-404 p { font-size: 1.2rem; color: #555; margin: 16px 0 32px; }
.error-404 a { background: #c0392b; color: #fff; padding: 14px 32px; border-radius: 4px; text-decoration: none; font-weight: 700; }
.error-404 a:hover { background: #a00000; }

/* ── Product page redesign ── */
.product-intro {
  background: #2c3e50;
  color: #fff;
  padding: 32px 40px;
  margin-bottom: 32px;
  border-left: 5px solid #c0392b;
}
.product-intro h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
  color: #fff;
}
.product-intro p {
  margin: 0;
  color: #bbb;
  font-size: 1rem;
}

.product-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.product-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: 4px solid #c0392b;
  border-radius: 4px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.product-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.product-card-title .icon {
  font-size: 2rem;
  line-height: 1;
}
.product-card-title h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #fff;
  padding: 16px;
  box-sizing: border-box;
  border-radius: 2px;
  mix-blend-mode: multiply;
}

.product-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-card ul li {
  padding-left: 20px;
  position: relative;
  font-size: 0.93rem;
  color: #444;
  line-height: 1.4;
}
.product-card ul li::before {
  content: "✓";
  color: #c0392b;
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* Card inline CTA */
.card-cta {
  margin-top: auto;
  padding-top: 12px;
}
.card-cta a {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c0392b;
  border: 1.5px solid #c0392b;
  padding: 6px 14px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.card-cta a:hover {
  background: #c0392b;
  color: #fff;
}

/* WhatsApp CTA on contacts page */
.wa-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 13px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  margin: 20px 0;
  transition: background 0.2s;
}
.wa-cta:hover { background: #1da851; }
