/* =========================================
   BONORA LUIGI S.R.L. — Main Stylesheet
   Colors: #FFFFFF, #C41E3A, #111111
   ========================================= */


:root {
  --red:    #C41E3A;
  --red-dk: #9A1528;
  --black:  #111111;
  --white:  #FFFFFF;
  --cream:  #F8F5F0;
  --gray:   #888888;
  --border: rgba(196,30,58,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--white);
  color: var(--black);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ─── HEADER ─── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
}

.logo-text .sub {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
  font-weight: 600;
}

nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding: 8px 14px;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}

nav a:hover, nav a.active {
  color: var(--white);
  background: var(--red);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ─── PAGE WRAPPER ─── */
main { padding-top: 72px; }

/* ─── HERO ─── */
.hero {
  background: var(--black);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(196,30,58,0.22) 0%, transparent 65%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 10vw;
  max-width: 900px;
}

.hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  width: 36px; height: 2px;
  background: var(--red);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 12px;
}

.hero h1 em {
  color: var(--red);
  font-style: normal;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  margin-bottom: 40px;
  letter-spacing: 0.04em;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 2px solid var(--red);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  background: transparent;
  color: var(--red);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 2px solid rgba(255,255,255,0.35);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}

.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
}

.hero-year {
  position: absolute;
  right: 8vw;
  bottom: 60px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  user-select: none;
}

/* ─── SECTION UTILS ─── */
.section { padding: 90px 5vw; }
.section-sm { padding: 60px 5vw; }
.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--red);
}

h2.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 24px;
}

h2.section-title em {
  color: var(--red);
  font-style: normal;
}

.section-dark {
  background: var(--black);
}
.section-dark h2.section-title { color: var(--white); }
.section-dark .section-label { color: var(--red); }
.section-dark p { color: rgba(255,255,255,0.7); }

.section-cream {
  background: var(--cream);
}

/* ─── NUMBERS BAND ─── */
.numbers-band {
  background: var(--red);
  padding: 50px 5vw;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.number-item {
  text-align: center;
  color: var(--white);
}

.number-item .num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  display: block;
}

.number-item .label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 6px;
  display: block;
}

/* ─── PRODOTTI CARDS ─── */
.prodotti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
}

.prodotto-card {
  background: var(--black);
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.prodotto-card .card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red-dk), var(--black));
  transition: opacity 0.4s;
  opacity: 0.85;
}

.prodotto-card:hover .card-bg { opacity: 1; }

.prodotto-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0.12;
  transition: opacity 0.4s, transform 0.4s;
}

.prodotto-card:hover .prodotto-icon {
  opacity: 0.08;
  transform: scale(1.15);
}

.prodotto-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.prodotto-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.prodotto-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s, opacity 0.3s;
  opacity: 0;
}

.prodotto-card:hover p {
  max-height: 80px;
  opacity: 1;
}

.prodotto-tag {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 3px 10px;
  margin-bottom: 10px;
}

/* ─── STORIA TIMELINE ─── */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 48px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
}

.timeline-year {
  flex-shrink: 0;
  width: 96px;
  text-align: right;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--red);
  padding-top: 2px;
  position: relative;
}

.timeline-year::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 10px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--red);
}

.timeline-text h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--black);
}

.timeline-text p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.65;
}

/* ─── STRENGTHS ─── */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.strength-item {
  border: 1px solid var(--border);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.strength-item:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}

.strength-item .ico {
  font-size: 2rem;
  margin-bottom: 14px;
}

.strength-item h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 8px;
}

.strength-item p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
}

/* ─── CONTACT FORM ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.75;
  margin-bottom: 28px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  font-weight: 500;
}

.contact-detail .icon {
  width: 36px; height: 36px;
  background: var(--red);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 0;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--black);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--red);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ─── FOOTER ─── */
footer {
  background: var(--black);
  padding: 60px 5vw 30px;
  border-top: 2px solid var(--red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 48px;
}

.footer-brand .logo-text .brand { font-size: 1.3rem; }
.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 280px;
}

footer h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
footer ul li a:hover { color: var(--white); }

.footer-contact p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}

.footer-contact a { color: rgba(255,255,255,0.5); }
.footer-contact a:hover { color: var(--red); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: var(--black);
  padding: 90px 5vw 70px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  max-width: 700px;
}

.page-hero h1 em {
  color: var(--red);
  font-style: normal;
}

.page-hero p {
  color: rgba(255,255,255,0.55);
  font-size: 1.1rem;
  margin-top: 16px;
  max-width: 540px;
}

.page-hero-bg-text {
  position: absolute;
  right: 5vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-size: clamp(6rem, 16vw, 14rem);
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  user-select: none;
  white-space: nowrap;
}

/* ─── ORARI TABLE ─── */
.orari-table {
  width: 100%;
  border-collapse: collapse;
}
.orari-table td {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}
.orari-table td:first-child {
  font-weight: 600;
  color: var(--black);
  width: 45%;
}
.orari-table td:last-child { color: #555; }
.orari-table tr:last-child td { border-bottom: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  nav { display: none; }
  .nav-toggle { display: flex; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--black);
    padding: 20px;
    border-bottom: 2px solid var(--red);
    gap: 4px;
  }
  nav.open a { padding: 12px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .timeline::before { left: 32px; }
  .timeline-year { width: 64px; font-size: 1rem; }
  .hero-year { display: none; }
}
