/* =============================================
   CLASSICO ITALIANO - style.css
   © Corex S.p.A.
   Dev: Davide Fulgione | www.davidefulgione.it
   ============================================= */

:root {
  --red:        #c0392b;
  --red-dark:   #96281b;
  --white:      #ffffff;
  --cream:      #fdf6ec;
  --text:       #2c2c2c;
  --text-light: #666666;
  --shadow:     0 4px 20px rgba(0,0,0,.12);
  --radius:     8px;
  --transition: 0.3s ease;
}

/* =============================================
   RESET
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.25; }
h2.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  text-align: center;
  color: var(--red);
  margin-bottom: .4rem;
}

/* =============================================
   UTILITY
   ============================================= */
.container { width: 90%; max-width: 1100px; margin: 0 auto; }

.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary { background: var(--red); color: var(--white); border: 2px solid var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); }
.btn-outline  { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--red); transform: translateY(-2px); }

.btn-red {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  cursor: pointer;
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
  transition: background var(--transition), transform var(--transition);
}
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); }

section { padding: 5rem 0; }
.divider { width: 60px; height: 3px; background: var(--red); margin: .6rem auto 2rem; border-radius: 2px; }

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: .9rem 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
#navbar .container { display: flex; align-items: center; justify-content: space-between; }

/* Logo */
.nav-logo { display: flex; align-items: center; gap: .7rem; }
.logo-img {
  height: 46px; width: auto;
  display: block; object-fit: contain;
  transition: opacity var(--transition);
  flex-shrink: 0;
}
.logo-img:hover { opacity: .85; }
.logo-img--footer { height: 40px; width: auto; display: block; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--red); letter-spacing: .02em;
}
.logo-text .sub { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-light); }

/* Nav links */
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: .9rem; font-weight: 600; color: var(--text);
  letter-spacing: .04em; text-transform: uppercase;
  position: relative; padding-bottom: 3px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--red);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--red); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 5px; background: none; border: none;
  position: relative; z-index: 1001;
}
.hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all var(--transition);
}
.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); }

/* ---- DROPDOWN desktop ---- */
.nav-links li { position: relative; }

.nav-links li.has-dropdown > a { display: inline-flex; align-items: center; gap: .3rem; }
.nav-links li.has-dropdown > a .arrow {
  font-size: .6rem;
  transition: transform .3s ease;
  display: inline-block;
  line-height: 1;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 1rem;
  background: transparent;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s;
  z-index: 2000;
  list-style: none;
}
.dropdown::after {
  content: '';
  position: absolute;
  top: .4rem; left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-bottom-color: #fff;
  border-top: none;
  z-index: 1;
}
.dropdown li:first-child { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.dropdown li:last-child  { border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.dropdown li { background: #fff; }
.dropdown li:first-child { box-shadow: 0 -4px 0 0 #fff, 0 8px 28px rgba(0,0,0,.13); }
.dropdown li { box-shadow: 0 8px 28px rgba(0,0,0,.08); }

.nav-links li.has-dropdown:hover .dropdown,
.nav-links li.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.nav-links li.has-dropdown:hover > a .arrow { transform: rotate(180deg); }

.dropdown li a {
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem 1.2rem;
  font-size: .82rem; font-weight: 600;
  color: var(--text); letter-spacing: .03em;
  text-transform: none;
  border-bottom: 1px solid #f4f4f4;
  transition: background var(--transition), color var(--transition), padding-left var(--transition);
  position: static; padding-bottom: .75rem;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: #fdf6ec; color: var(--red); padding-left: 1.5rem; }
.dropdown li a::after { display: none !important; }

.dd-num {
  font-size: .65rem; font-weight: 700;
  color: rgba(192,57,43,.45);
  letter-spacing: .1em; flex-shrink: 0;
}

/* ---- Mobile menu ---- */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 75%; max-width: 300px; height: 100vh;
    background: var(--white); flex-direction: column;
    align-items: flex-start; gap: 0;
    padding: 4.5rem 1.8rem 2rem;
    box-shadow: -4px 0 20px rgba(0,0,0,.1);
    transition: right var(--transition); z-index: 999; overflow-y: auto;
  }
  .nav-links.open { right: 0; }
  .nav-links li { width: 100%; border-bottom: 1px solid #f0f0f0; }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; font-size: 1rem; padding: .9rem 0; width: 100%; }
  .nav-links a::after { display: none; }

  .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 998; }
  .nav-overlay.open { display: block; }

  /* Dropdown mobile — fix Safari/iPhone badge visivo */
  .nav-links li.has-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: .9rem 0;
  }

  .dropdown {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
    background: transparent;
    box-shadow: none !important;
    border-radius: 0;
    padding-top: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, background .35s ease;
  }

  /* Nasconde triangolino e pseudo-elementi che trapassano su Safari */
  .dropdown::after,
  .dropdown::before { display: none !important; }

  /* Azzera box-shadow sui <li> — causa del "badge" su iPhone */
  .dropdown li,
  .dropdown li:first-child,
  .dropdown li:last-child {
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent;
  }

  /* Dropdown aperto */
  .nav-links li.has-dropdown.open .dropdown {
    max-height: 280px;
    background: #fff;
    pointer-events: auto;
    border-top: 1px solid rgba(0,0,0,.07);
    border-bottom: 1px solid rgba(0,0,0,.05);
  }
  .nav-links li.has-dropdown.open .dropdown li {
    background: #fff;
  }
  .nav-links li.has-dropdown.open > a .arrow { transform: rotate(180deg); }

  /* Link interni dropdown */
  .dropdown li a {
    padding: .75rem 1rem .75rem 1.5rem;
    font-size: .92rem;
    border-bottom: 1px solid rgba(0,0,0,.05);
    color: var(--text);
  }
  .dropdown li:last-child a { border-bottom: none; }
  .dropdown li a:hover,
  .dropdown li a:active { padding-left: 1.8rem; color: var(--red); background: rgba(0,0,0,.03); }
  .dropdown li a .dd-num { font-size: .65rem; min-width: 20px; }
}

/* =============================================
   HERO
   ============================================= */
#hero {
  position: relative; height: 100vh; min-height: 580px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
}
.hero-slide:nth-child(1) { background-image: url('classico1.jpg'); }
.hero-slide:nth-child(2) { background-image: url('classico2.jpg'); }
.hero-slide:nth-child(3) { background-image: url('classico3.jpg'); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(150,40,27,.65) 0%, rgba(0,0,0,.45) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  color: var(--white); padding: 0 1.2rem;
  animation: fadeUp .9s ease both; animation-delay: .2s;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-tag {
  display: inline-block; background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.45); color: var(--white);
  font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .35rem 1rem; border-radius: 20px; margin-bottom: 1.2rem;
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.hero-content h1 {
  font-size: clamp(2.2rem, 7vw, 4.2rem); margin-bottom: .8rem;
  text-shadow: 0 2px 16px rgba(0,0,0,.7), 0 1px 4px rgba(0,0,0,.9);
}
.hero-content h1 em { font-style: italic; color: #ffd580; }
.hero-content p {
  font-size: clamp(.95rem, 2.5vw, 1.2rem); max-width: 600px;
  margin: 0 auto 2rem; opacity: .95;
  text-shadow: 0 1px 8px rgba(0,0,0,.8);
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-dots {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); z-index: 3; display: flex; gap: .6rem;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.45); cursor: pointer;
  transition: background var(--transition), transform var(--transition); border: none;
}
.hero-dot.active { background: var(--white); transform: scale(1.25); }

.flag-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(to right, #009246 33.3%, #ffffff 33.3% 66.6%, #ce2b37 66.6%);
  z-index: 4;
}

/* =============================================
   VALUES STRIP
   ============================================= */
#values {
  background: #1e1e1e;
  padding: 3.5rem 0;
}
.values-strip {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 0;
  align-items: start;
}
.value-item { padding: 0 2.5rem; }
.value-item h3 {
  font-size: 1rem; font-weight: 700;
  font-family: 'Lato', sans-serif;
  letter-spacing: .1em; text-transform: uppercase;
  color: #c0392b; margin-bottom: .6rem;
}
.value-item p { font-size: .88rem; color: rgba(255,255,255,.6); line-height: 1.7; }
.value-sep {
  background: rgba(255,255,255,.1);
  width: 1px; align-self: stretch; min-height: 60px;
}

@media (max-width: 768px) {
  .values-strip { grid-template-columns: 1fr; }
  .value-sep { width: 40px; height: 1px; background: rgba(255,255,255,.1); margin: 1.2rem 0; }
  .value-item { padding: 0; }
}

/* =============================================
   ABOUT — PARALLAX
   ============================================= */
.about-parallax {
  position: relative; overflow: hidden;
  padding: 6rem 0; min-height: 500px;
}
.about-parallax-bg {
  position: absolute;
  top: -30%; left: 0; right: 0; bottom: -30%;
  background: url('classico4.jpg') center center / cover no-repeat;
  will-change: transform; z-index: 0;
}
.about-parallax-overlay {
  position: absolute; inset: 0; z-index: 1; overflow: hidden;
}
.about-mini-slides { position: absolute; inset: 0; }
.about-mini-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease-in-out;
}
.about-mini-slide.active { opacity: .28; }
.about-parallax-overlay::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,.58); z-index: 1;
}
.about-parallax-content { position: relative; z-index: 2; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3.5rem; align-items: center;
}
.about-img-col { flex-shrink: 0; }
.about-photo {
  width: 100%; height: 480px; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.about-text { color: var(--white); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { height: 280px; }
}

.about-text .eyebrow {
  display: inline-block; font-size: .75rem; letter-spacing: .16em;
  text-transform: uppercase; color: #ffd580; font-weight: 700; margin-bottom: .6rem;
}
.about-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--white); margin-bottom: 1rem; }
.about-text h3 { font-size: 1.1rem; color: #ffd580; margin: 1.4rem 0 .4rem; }
.about-text p  { color: rgba(255,255,255,.88); font-size: .97rem; margin-bottom: .6rem; }
.about-text .btn-primary { margin-top: 1.6rem; }

.years-badge {
  display: inline-flex; align-items: center; justify-content: center;
  flex-direction: column; width: 86px; height: 86px;
  border-radius: 50%; background: var(--red); color: var(--white);
  font-family: 'Playfair Display', serif;
  box-shadow: 0 4px 16px rgba(192,57,43,.5); margin-bottom: 1.2rem;
}
.years-badge .num { font-size: 1.7rem; font-weight: 700; line-height: 1; }
.years-badge .lbl { font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }

/* =============================================
   PRODUCT LINES
   ============================================= */
#product-lines {
  position: relative; overflow: hidden;
}
#product-lines .container { position: relative; z-index: 1; }
#product-lines .section-title { color: var(--white); }
#product-lines .divider { background: rgba(255,255,255,.5); }

.plines-bg {
  position: absolute;
  top: -30%; left: 0; right: 0; bottom: -30%;
  background: url('classico1.jpg') center center / cover no-repeat;
  will-change: transform; z-index: 0;
}
.plines-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.52);
  z-index: 1; pointer-events: none;
}

.plines-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.pline-card {
  position: relative; border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  min-height: 360px; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.pline-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
}
.pline-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .6s ease;
}
.pline-card:hover .pline-img { transform: scale(1.06); }
.pline-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.72) 100%);
  transition: background var(--transition);
}
.pline-card:hover .pline-overlay {
  background: linear-gradient(to bottom, rgba(150,40,27,.3) 0%, rgba(0,0,0,.82) 100%);
}
.pline-body {
  position: relative; z-index: 2;
  margin-top: auto; padding: 1.6rem 1.4rem;
  color: var(--white);
}
.pline-num {
  display: block; font-size: .68rem; letter-spacing: .2em;
  font-weight: 700; color: rgba(255,255,255,.45); margin-bottom: .5rem;
}
.pline-body h3 { font-size: 1.15rem; color: var(--white); margin-bottom: .5rem; line-height: 1.2; }
.pline-body p {
  font-size: .8rem; color: rgba(255,255,255,.7); line-height: 1.55;
  margin-bottom: .9rem; max-height: 0; overflow: hidden;
  transition: max-height .4s ease, opacity .4s ease; opacity: 0;
}
.pline-card:hover .pline-body p { max-height: 80px; opacity: 1; }
.pline-link {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #ffd580;
  transition: letter-spacing var(--transition);
}
.pline-card:hover .pline-link { letter-spacing: .14em; }

@media (max-width: 900px) {
  .plines-grid { grid-template-columns: repeat(2, 1fr); }
  .pline-card  { min-height: 280px; }
  .pline-body p { max-height: 80px; opacity: 1; }
}
@media (max-width: 480px) {
  .plines-grid { grid-template-columns: 1fr; }
  .pline-card  { min-height: 240px; }
}

/* =============================================
   CTA BANNER
   ============================================= */
#cta-banner {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white); padding: 4rem 0; text-align: center;
}
#cta-banner h2 { color: var(--white); font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: .8rem; }
#cta-banner p  { opacity: .88; max-width: 520px; margin: 0 auto 2rem; font-size: .97rem; }

/* =============================================
   PAGE HERO (pagine prodotto)
   ============================================= */
.page-hero {
  position: relative; height: 340px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-top: 68px;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.45);
}
.page-hero-content {
  position: relative; z-index: 1;
  text-align: center; color: #fff; padding: 0 1rem;
}
.page-hero-content .eyebrow {
  display: inline-block; font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: #ffd580; font-weight: 700; margin-bottom: .6rem;
}
.page-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 3rem); margin-bottom: .6rem;
  text-shadow: 0 2px 16px rgba(0,0,0,.7);
}
.page-hero-content p {
  font-size: clamp(.9rem, 2vw, 1.05rem);
  opacity: .88; max-width: 520px; margin: 0 auto;
}

/* =============================================
   PRODUCTS GRID (pagine prodotto)
   ============================================= */
#products-section {
  padding: 4rem 0 5rem;
  background:
    linear-gradient(rgba(253,246,236,.93), rgba(253,246,236,.93)),
    url('classico5.jpg') center center / cover fixed no-repeat;
}

.filter-bar {
  display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: center; margin-bottom: 2.5rem;
}
.filter-btn {
  padding: .45rem 1.1rem; border-radius: 20px;
  border: 2px solid var(--red); background: transparent; color: var(--red);
  font-family: 'Lato', sans-serif; font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; transition: background var(--transition), color var(--transition);
}
.filter-btn:hover,
.filter-btn.active { background: var(--red); color: #fff; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
@media (max-width: 900px) { .products-grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; } }
@media (max-width: 600px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; } }
@media (max-width: 360px) { .products-grid { grid-template-columns: 1fr; } }

.prod-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  cursor: pointer; display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.prod-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,.15); }
.prod-card.hidden { display: none; }

.prod-img-wrap {
  width: 100%; aspect-ratio: 1 / 1; background: #f9f9f9;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; overflow: hidden;
}
.prod-img-wrap img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .4s ease;
}
.prod-card:hover .prod-img-wrap img { transform: scale(1.06); }

.prod-name {
  padding: .8rem .9rem;
  font-family: 'Lato', sans-serif; font-size: .82rem; font-weight: 700;
  color: var(--text); text-align: center; line-height: 1.3;
  border-top: 1px solid #f0f0f0;
}
.no-results {
  grid-column: 1/-1; text-align: center; padding: 3rem 0;
  color: var(--text-light); font-size: 1rem; display: none;
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lb-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.88); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.lb-overlay.open { opacity: 1; visibility: visible; }
.lb-box {
  position: relative; background: #fff;
  border-radius: var(--radius); padding: 2rem 1.5rem 1.5rem;
  max-width: 420px; width: 100%; text-align: center;
  transform: scale(.9); transition: transform .35s ease;
}
.lb-overlay.open .lb-box { transform: scale(1); }
.lb-close {
  position: absolute; top: .7rem; right: .9rem;
  background: none; border: none; font-size: 1.6rem;
  cursor: pointer; color: var(--text-light); line-height: 1;
}
.lb-close:hover { color: var(--red); }
.lb-img { width: 100%; max-height: 300px; object-fit: contain; margin-bottom: 1rem; }
.lb-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--text); }
.lb-nav { display: flex; justify-content: space-between; margin-top: 1rem; }
.lb-nav button {
  background: var(--red); color: #fff; border: none;
  border-radius: 20px; padding: .4rem 1.1rem;
  font-size: .8rem; font-weight: 700; cursor: pointer;
  transition: background var(--transition);
}
.lb-nav button:hover { background: var(--red-dark); }
.lb-nav button:disabled { background: #ccc; cursor: default; }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-hero {
  position: relative; height: 340px;
  background: url('classico2.jpg') center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.contact-hero::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(44,14,12,.55);
}
.contact-hero-inner { position: relative; z-index: 1; color: #fff; }
.contact-hero-inner h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700;
  margin: 0 0 .5rem; text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.contact-hero-inner p { font-family: 'Lato', sans-serif; font-size: 1.05rem; opacity: .9; margin: 0; }

.contact-section { background: var(--cream); padding: 5rem 1.5rem 6rem; }
.contact-container {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem; align-items: start;
}

.contact-info h2 { font-family: 'Playfair Display', serif; font-size: 1.75rem; color: var(--red); margin: 0 0 1.5rem; }
.contact-info p  { font-family: 'Lato', sans-serif; color: var(--text); line-height: 1.75; margin: 0 0 2rem; }

.info-block { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 2.2rem; }
.info-item  { display: flex; align-items: flex-start; gap: .9rem; }
.info-item .icon {
  width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem;
}
.info-item .txt strong {
  display: block; font-family: 'Lato', sans-serif; font-weight: 700;
  font-size: .82rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--red-dark); margin-bottom: .2rem;
}
.info-item .txt span,
.info-item .txt a { font-family: 'Lato', sans-serif; color: var(--text); font-size: .97rem; line-height: 1.5; text-decoration: none; }
.info-item .txt a:hover { color: var(--red); }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.map-wrap iframe { width: 100%; height: 240px; border: 0; display: block; }

.contact-form-wrap {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2.5rem 2.2rem;
}
.contact-form-wrap h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--text); margin: 0 0 1.8rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-family: 'Lato', sans-serif; font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--text);
}
.form-group label span { color: var(--red); }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Lato', sans-serif; font-size: .97rem; color: var(--text);
  background: #fafafa; border: 1.5px solid #e0d8cc;
  border-radius: var(--radius); padding: .7rem .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; width: 100%; box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,57,43,.12);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c0392b' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}

.alert { border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.5rem; font-family: 'Lato', sans-serif; font-size: .95rem; line-height: 1.5; }
.alert-success { background: #edf7ed; border: 1.5px solid #4caf50; color: #2e7d32; }
.alert-error   { background: #fdf0ee; border: 1.5px solid var(--red); color: var(--red-dark); }
.alert-error ul { margin: .4rem 0 0 1.2rem; padding: 0; }

.btn-submit {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--red); color: #fff;
  font-family: 'Lato', sans-serif; font-size: .95rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  border: none; border-radius: var(--radius); padding: .85rem 2rem;
  cursor: pointer; transition: background var(--transition), transform var(--transition); margin-top: .5rem;
}
.btn-submit:hover { background: var(--red-dark); transform: translateY(-1px); }

@media (max-width: 860px) {
  .contact-container { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-info { order: 2; }
  .contact-form-wrap { order: 1; }
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.8rem 1.3rem; }
}

/* =============================================
   OFFLINE PAGE
   ============================================= */
.offline-wrap {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--cream); text-align: center; padding: 2rem; gap: 1.5rem;
}
.offline-wrap img { width: 160px; opacity: .85; }
.offline-wrap h1 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--red); margin: 0; }
.offline-wrap p  { font-family: 'Lato', sans-serif; color: var(--text); max-width: 420px; line-height: 1.7; margin: 0; }
.offline-icon { font-size: 3.5rem; line-height: 1; }

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background: #1a1a1a; color: rgba(255,255,255,.7);
  padding: 3.5rem 0 1.5rem; position: relative; overflow: hidden;
}
#footer::before {
  content: ''; position: absolute; inset: 0;
  background: url('img/corex.png') center center / 340px auto no-repeat;
  opacity: .04; pointer-events: none; z-index: 0;
}
#footer .container { position: relative; z-index: 1; }

.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p { margin-top: 1rem; font-size: .84rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  font-family: 'Lato', sans-serif; font-size: .75rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--white); margin-bottom: 1.1rem;
}
.footer-col ul li { margin-bottom: .55rem; }
.footer-col ul li a { font-size: .86rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-col address { font-style: normal; font-size: .85rem; line-height: 1.8; color: rgba(255,255,255,.6); }
#footer address a { color: rgba(255,255,255,.6); transition: color var(--transition); }
#footer address a:hover { color: var(--white); }

.flag-mini { display: inline-flex; height: 5px; width: 54px; border-radius: 2px; overflow: hidden; margin-top: .7rem; }
.flag-mini span { flex: 1; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem; padding-top: 1.5rem;
  font-size: .77rem; color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: var(--white); }

#footer .logo-text .brand { color: var(--white); }
#footer .logo-text .sub   { color: rgba(255,255,255,.45); }

.corex-logo { height: 36px; width: auto; opacity: .75; transition: opacity var(--transition); }
.corex-logo:hover { opacity: 1; }
.corex-links { display: flex; flex-direction: column; gap: .4rem; }
.corex-links a {
  font-size: .8rem; color: rgba(255,255,255,.45); letter-spacing: .03em;
  transition: color var(--transition), padding-left var(--transition);
  display: flex; align-items: center; gap: .4rem;
}
.corex-links a:hover { color: var(--white); padding-left: .3rem; }
.link-arrow { font-size: .7rem; color: var(--red); flex-shrink: 0; }

.footer-corex {
  margin-top: 1.4rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column; gap: .8rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}