/* =========================================================
   PIAVE OCCHIALI — style.css
   Modern luxury eyewear single-page website
   ========================================================= */

/* ---------------------------------------------------------
   CSS VARIABLES
   --------------------------------------------------------- */
:root {
  /* COLOR PALETTES — Comment the "Active" block and uncomment ONE full palette
     (--clr-gold / --clr-gold-lt are the site accent; values can be any hue). */

  /* ----- Active: warm cream & antique gold (default) ----- */
  --clr-bg:         #FAF9F6;
  --clr-light:      #F0EDE8;
  --clr-border:     #DDD8D0;
  --clr-mid:        #6B6560;
  --clr-dark:       #1A1A1A;
  --clr-white:      #FFFFFF;
  --clr-gold:       #B8945F;
  --clr-gold-lt:    #D4AF7A;

  /* ----- Ocean: cool mint paper & deep teal accent ----- */
  /* --clr-bg:         #F3F8F7;
  --clr-light:      #E4EEEC;
  --clr-border:     #BFD5D0;
  --clr-mid:        #4A6670;
  --clr-dark:       #0C1F22;
  --clr-white:      #FFFFFF;
  --clr-gold:       #1F6F64;
  --clr-gold-lt:    #3BA89A; */

  /* ----- Wine: blush paper & bordeaux accent ----- */
  /* --clr-bg:         #FAF4F4;
  --clr-light:      #F0E6E8;
  --clr-border:     #D9C6CB;
  --clr-mid:        #6B4E56;
  --clr-dark:       #1E1014;
  --clr-white:      #FFFFFF;
  --clr-gold:       #8B2942;
  --clr-gold-lt:    #B84562; */

  /* ----- Forest: warm ivory & moss / sage accent ----- */
  /* --clr-bg:         #F6F7F2;
  --clr-light:      #E9EBE0;
  --clr-border:     #C8CEB8;
  --clr-mid:        #4D5744;
  --clr-dark:       #14180F;
  --clr-white:      #FFFFFF;
  --clr-gold:       #4F6B3C;
  --clr-gold-lt:    #6E9354; */

  /* ----- Arctic: ice gray & electric blue accent ----- */
  /* --clr-bg:         #F2F5FA;
  --clr-light:      #E3E9F2;
  --clr-border:     #B8C4D9;
  --clr-mid:        #4A5B73;
  --clr-dark:       #0B1220;
  --clr-white:      #FFFFFF;
  --clr-gold:       #2563EB;
  --clr-gold-lt:    #60A5FA; */

  /* ----- Terracotta: sand paper & burnt clay accent ----- */
  /* --clr-bg:         #FAF4ED;
  --clr-light:      #F0E4D8;
  --clr-border:     #D9C4B0;
  --clr-mid:        #6B5346;
  --clr-dark:       #1A120D;
  --clr-white:      #FFFFFF;
  --clr-gold:       #C45C3A;
  --clr-gold-lt:    #E07A5A; */

  /* ----- Plum: lilac-gray paper & violet accent ----- */
  /* --clr-bg:         #F5F3F8;
  --clr-light:      #E8E4EF;
  --clr-border:     #C9C0D6;
  --clr-mid:        #5A5470;
  --clr-dark:       #15121C;
  --clr-white:      #FFFFFF;
  --clr-gold:       #6B4C9A;
  --clr-gold-lt:    #9078C0; */

  /* ----- Hero (background.png): workshop slate & charcoal ----- */
  /* Cool concrete floor/grey shelving, slate shirt blues, deep charcoal navies
     from the scene. Pairs with the cooler side of the same artwork. */
  /* --clr-bg:         #F2F3F5;
  --clr-light:      #E5E7EA;
  --clr-border:     #C4C8CE;
  --clr-mid:        #556070;
  --clr-dark:       #1A1E24;
  --clr-white:      #FFFFFF;
  --clr-gold:       #5A6D7C;
  --clr-gold-lt:    #7C90A0; */

  --ff-heading:     'Cormorant Garamond', Georgia, serif;
  --ff-body:        'Inter', system-ui, -apple-system, sans-serif;

  --nav-h:          76px;
  --ease:           0.3s ease;
  --pad-section:    110px;
  --max-w:          1280px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  background-color: var(--clr-bg);
  color: var(--clr-dark);
  line-height: 1.72;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

button {
  font-family: var(--ff-body);
}

/* ---------------------------------------------------------
   LAYOUT UTILITIES
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 48px;
}

.section {
  padding-block: var(--pad-section);
}

/* Less vertical gap between gallery and contatti (both use full section padding by default) */
#collezione.section {
  padding-bottom: max(40px, min(76px, calc(var(--pad-section) * 0.50)));
}

.section-contatti.section {
  padding-top: max(40px, min(76px, calc(var(--pad-section) * 0.50)));
}

.section-dark {
  background-color: var(--clr-dark);
}

.section-light {
  background-color: var(--clr-light);
}

/* ---------------------------------------------------------
   TYPOGRAPHY
   --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(3.2rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); }

em {
  font-style: italic;
  color: var(--clr-gold);
}

.section-dark em {
  color: var(--clr-gold-lt);
}

.section-tag {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 14px;
}

.section-tag.light {
  color: var(--clr-gold-lt);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-dark .section-header h2 {
  color: var(--clr-white);
}

/* ---------------------------------------------------------
   COMPETENZE (sfondo scuro: section-dark + tile chiare)
   --------------------------------------------------------- */
.section-competenze {
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.section-competenze .tech-lead p {
  color: rgba(255, 255, 255, 0.68);
}

.section-competenze .tech-lead strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.tech-lead {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 56px;
  text-align: center;
}

.tech-lead p {
  font-size: 1.02rem;
  color: var(--clr-mid);
  line-height: 1.85;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tech-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  padding: 36px 32px 40px;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.tech-card:hover {
  border-color: rgba(184, 148, 95, 0.5);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.tech-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 36px;
  align-items: start;
}

.tech-card-wide .tech-card-icon {
  grid-row: 1 / span 2;
  margin-bottom: 0;
  font-size: 1.5rem;
  line-height: 1;
  padding-top: 4px;
}

.tech-card-wide h3 {
  margin-bottom: 12px;
}

.tech-card-wide p {
  grid-column: 2;
  margin-bottom: 0;
}

.tech-card-icon {
  display: block;
  font-size: 1.15rem;
  color: var(--clr-gold);
  margin-bottom: 18px;
}

.tech-card h3 {
  font-family: var(--ff-heading);
  font-weight: 400;
  font-size: 1.28rem;
  margin-bottom: 14px;
  color: var(--clr-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tech-card p {
  font-size: 0.91rem;
  color: var(--clr-mid);
  line-height: 1.78;
  margin: 0;
}

.tech-grid .tech-card:nth-child(2) { transition-delay: 0.08s; }
.tech-grid .tech-card:nth-child(3) { transition-delay: 0.16s; }
.tech-grid .tech-card:nth-child(4) { transition-delay: 0.22s; }

/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 40px;
  min-height: 52px;
  background: transparent;
  color: var(--clr-white);
  border: 1px solid var(--clr-gold);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  white-space: nowrap;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--clr-gold);
  color: var(--clr-dark);
  outline: none;
}

.btn-dark {
  color: var(--clr-dark);
  border-color: var(--clr-dark);
}

.btn-dark:hover,
.btn-dark:focus-visible {
  background: var(--clr-dark);
  color: var(--clr-white);
}

/* ---------------------------------------------------------
   NAVBAR
   --------------------------------------------------------- */
#navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 900;
  transition: background var(--ease), box-shadow var(--ease);
}

.nav-brand {
  position: relative;
  flex: 0 0 auto;
  display: block;
  line-height: 0;
  height: 44px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--ease), visibility var(--ease);
}

#navbar.scrolled .nav-brand {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-brand:focus-visible {
  outline: 2px solid var(--clr-gold);
  outline-offset: 4px;
}

.nav-brand__img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
}

@media (max-width: 480px) {
  .nav-brand {
    height: 36px;
  }
}

#navbar.scrolled {
  background: rgba(20, 20, 20, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Dark chrome on hero (white gradient, top of page) */
#navbar:not(.scrolled) .nav-links a {
  color: rgba(26, 26, 26, 0.82);
}

#navbar:not(.scrolled) .nav-links a:hover,
#navbar:not(.scrolled) .nav-links a:focus-visible {
  color: var(--clr-dark);
}

#navbar:not(.scrolled) .hamburger span {
  background: var(--clr-dark);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 48px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  padding-bottom: 2px;
  transition: color var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 0;
  height: 1px;
  background: var(--clr-gold);
  transition: width var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--clr-white);
  outline: none;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--clr-white);
  transform-origin: center;
  transition: transform var(--ease), opacity var(--ease);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU */
.mobile-menu {
  display: none;
  overflow: hidden;
  max-height: 0;
  background: rgba(20, 20, 20, 0.97);
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  max-height: 400px;
}

.mobile-menu ul {
  padding: 8px 48px 32px;
  display: flex;
  flex-direction: column;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color var(--ease);
}

.mobile-menu a:hover {
  color: var(--clr-gold-lt);
}

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
#hero {
  position: relative;
  height: 100svh;
  min-height: 580px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.06);
  transition: transform 10s ease;
}

#hero.loaded .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.94) 40%,
    rgba(255, 255, 255, 0.72) 46%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0) 54%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 48px;
  padding-top: calc(var(--nav-h) + 16px);
  padding-bottom: 48px;
}

.hero-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 20px;
}

.hero-eyebrow-flag {
  display: inline-block;
  width: 1.5em;
  height: auto;
  aspect-ratio: 3 / 2;
  vertical-align: -0.06em;
  margin-inline-start: 0.25em;
  margin-inline-end: 0.05em;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.25);
  object-fit: cover;
}

.hero-heading {
  --hero-logo-w: clamp(56px, 10vw, 112px);
  --hero-logo-gap: clamp(14px, 2.5vw, 28px);

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--clr-dark);
  margin-bottom: 24px;
  max-width: 580px;
}

.hero-heading__top {
  display: flex;
  align-items: center;
  gap: var(--hero-logo-gap);
}

.hero-logo {
  flex-shrink: 0;
  width: var(--hero-logo-w);
  height: auto;
  object-fit: contain;
}

.hero-heading__accent {
  display: block;
  margin-top: 0.04em;
}

.hero-heading em {
  color: var(--clr-gold);
}

.hero-sub {
  font-size: 1rem;
  color: var(--clr-mid);
  line-height: 1.85;
  margin-bottom: 40px;
  max-width: 380px;
}

#hero .btn-primary {
  color: var(--clr-dark);
  border-color: var(--clr-gold);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

#hero .btn-primary:hover,
#hero .btn-primary:focus-visible {
  background: var(--clr-gold);
  color: var(--clr-dark);
  box-shadow: 0 4px 24px rgba(184, 148, 95, 0.35);
}

/* SCROLL INDICATOR */
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-scroll-indicator span {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-shadow:
    0 0 12px rgba(0, 0, 0, 0.45),
    0 1px 3px rgba(0, 0, 0, 0.55);
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--clr-gold) 0%, transparent 100%);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.9); }
  50%       { opacity: 1;    transform: scaleY(1.1); }
}

/* ---------------------------------------------------------
   IL MARCHIO — BRAND BENTO
   --------------------------------------------------------- */
.section-marchio {
  background:
    linear-gradient(180deg, var(--clr-bg) 0%, var(--clr-light) 55%, var(--clr-bg) 100%);
}

.brand-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(240px, 0.92fr);
  grid-template-rows: auto auto;
  gap: 14px;
  align-items: stretch;
}

.brand-tile {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  padding: clamp(28px, 4vw, 44px);
  transition:
    border-color var(--ease),
    box-shadow var(--ease),
    background var(--ease);
}

.brand-tile:hover {
  border-color: rgba(184, 148, 95, 0.45);
  box-shadow: 0 18px 48px rgba(26, 26, 26, 0.06);
}

.brand-tile--dark {
  background: var(--clr-dark);
  color: var(--clr-white);
  border-color: rgba(255, 255, 255, 0.12);
}

.brand-tile--dark:hover {
  border-color: rgba(212, 175, 122, 0.55);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.22);
}

.brand-tile--lead {
  grid-column: 1;
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.brand-tile--lead .section-tag {
  display: block;
}

.brand-tile--lead h2 {
  position: relative;
  z-index: 1;
  margin-block: 10px 22px;
}

.brand-lead {
  position: relative;
  z-index: 1;
  font-size: 1.02rem;
  color: var(--clr-mid);
  line-height: 1.78;
  max-width: none;
  margin: 0;
  padding-right: min(18%, 120px);
}

.brand-lead__watermark {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(52%, 340px);
  height: auto;
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}

.brand-tile--metric {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.brand-metric__value {
  font-family: var(--ff-heading);
  font-size: clamp(3.25rem, 5vw + 1.2rem, 4.85rem);
  font-weight: 300;
  line-height: 1;
  color: var(--clr-gold-lt);
  letter-spacing: -0.04em;
}

.brand-metric__label {
  display: block;
  margin-top: 14px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.brand-tile--heritage {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--clr-light);
}

.brand-tile__eyebrow {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-mid);
  margin-bottom: 12px;
}

.brand-tile__kicker {
  font-family: var(--ff-heading);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--clr-dark);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-tile__flag {
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.brand-tile__text {
  font-size: 0.88rem;
  color: var(--clr-mid);
  line-height: 1.72;
  margin: 0;
}

.brand-tile--body {
  grid-column: 1 / -1;
  padding-block: clamp(24px, 3.5vw, 36px);
  padding-inline: clamp(28px, 4vw, 48px);
}

.brand-tile--body p {
  font-size: 0.97rem;
  color: var(--clr-mid);
  line-height: 1.78;
  margin: 0;
  max-width: 62rem;
}

.brand-pillars {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.brand-tile--pillar h3 {
  font-family: var(--ff-heading);
  font-weight: 400;
  font-size: 1.35rem;
  margin: 0 0 12px;
  color: var(--clr-dark);
}

.brand-tile--pillar p {
  font-size: 0.9rem;
  color: var(--clr-mid);
  line-height: 1.75;
  margin: 0;
}

.brand-pillar__icon {
  display: block;
  font-size: 1.35rem;
  color: var(--clr-gold);
  margin-bottom: 18px;
  line-height: 1;
}

/* ---------------------------------------------------------
   COLLEZIONE — GALLERY
   --------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--clr-light);
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.07);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--clr-gold);
  outline-offset: 2px;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.56);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--ease);
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--clr-white);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   CONTATTI
   --------------------------------------------------------- */
.section-contatti {
  background:
    linear-gradient(180deg, var(--clr-bg) 0%, var(--clr-light) 42%, var(--clr-bg) 100%);
}

.contatti-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.contatti-panel {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  transition:
    border-color var(--ease),
    box-shadow var(--ease);
}

.contatti-panel:hover {
  border-color: rgba(184, 148, 95, 0.45);
  box-shadow: 0 18px 48px rgba(26, 26, 26, 0.06);
}

.contatti-panel--info {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
}

.contatti-panel-head {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--clr-border);
}

.contatti-company {
  font-family: var(--ff-heading);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 300;
  color: var(--clr-dark);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 10px;
}

.contatti-panel-kicker {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-mid);
  margin: 0;
  line-height: 1.5;
}

.contatti-details {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contatti-detail {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contatti-detail-body {
  min-width: 0;
}

.contatti-detail-text {
  font-size: 0.95rem;
  color: var(--clr-mid);
  line-height: 1.85;
  margin: 0;
}

.contatti-detail-text strong {
  font-weight: 500;
  color: var(--clr-dark);
}

.contatti-icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  color: var(--clr-gold);
}

.contatti-icon-wrap--sm {
  width: 1.35rem;
}

.contatti-detail .contatti-icon-wrap {
  align-self: flex-start;
  align-items: flex-start;
  margin-top: 0.2rem;
}

.contatti-icon {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contatti-icon-wrap--sm .contatti-icon {
  width: 18px;
  height: 18px;
}

.contatti-address {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--clr-mid);
  line-height: 1.85;
  margin: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.93rem;
  color: var(--clr-mid);
}

.contact-details a {
  font-weight: 500;
  color: var(--clr-dark);
  transition: color var(--ease);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.contact-details a:hover {
  color: var(--clr-gold);
  border-bottom-color: rgba(184, 148, 95, 0.45);
}

.contatti-panel--map {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.contatti-map-wrap {
  flex: 1;
  min-height: 320px;
  line-height: 0;
  position: relative;
  background: var(--clr-light);
}

.contatti-map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contatti-map-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--clr-border);
  background: var(--clr-white);
}

.contatti-map-link {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-gold);
  transition: color var(--ease), opacity var(--ease);
}

.contatti-map-link:hover {
  color: var(--clr-dark);
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
#footer {
  background: var(--clr-dark);
  padding-block: 68px 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 52px;
}

.footer-logo {
  width: min(200px, 46vw);
  height: auto;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 18px;
  opacity: 0.95;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.75;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--ease);
}

.footer-nav a:hover {
  color: var(--clr-gold-lt);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.06em;
}

/* ---------------------------------------------------------
   LIGHTBOX
   --------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: 88vw;
  max-height: 84vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox-content img {
  max-width: 88vw;
  max-height: 78vh;
  object-fit: contain;
  display: block;
}

.lightbox-content p {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  transition: color var(--ease), transform var(--ease);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--clr-gold-lt);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
}

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

.lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(3px); }

/* ---------------------------------------------------------
   FADE-IN SCROLL ANIMATION
   --------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------
   RESPONSIVE — TABLET (≤ 1024px)
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --pad-section: 88px;
  }

  .brand-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
  }

  .brand-tile--lead {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .brand-tile--metric {
    grid-column: 1;
    grid-row: 2;
  }

  .brand-tile--heritage {
    grid-column: 2;
    grid-row: 2;
  }

  .brand-tile--body {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .brand-pillars {
    grid-column: 1 / -1;
    grid-row: 4;
  }
}

/* ---------------------------------------------------------
   RESPONSIVE — MOBILE (≤ 768px)
   --------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --pad-section: 72px;
  }

  .container,
  .nav-container,
  .hero-content {
    padding-inline: 24px;
  }

  /* NAVBAR */
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }

  /* HERO */
  .hero-heading {
    --hero-logo-w: clamp(52px, 14vw, 88px);
    --hero-logo-gap: 16px;
    max-width: 100%;
  }
  .hero-sub {
    font-size: 0.95rem;
    max-width: 100%;
  }

  /* IL MARCHIO — bento stack */
  .brand-bento {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .brand-tile--lead,
  .brand-tile--metric,
  .brand-tile--heritage,
  .brand-tile--body,
  .brand-pillars {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .brand-lead__watermark {
    width: min(70%, 280px);
    right: -12%;
    opacity: 0.06;
  }

  .brand-pillars {
    grid-template-columns: 1fr;
  }

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

  .tech-card-wide {
    grid-template-columns: 1fr;
  }

  .tech-card-wide .tech-card-icon {
    grid-row: auto;
    margin-bottom: 12px;
  }

  .tech-card-wide h3,
  .tech-card-wide p {
    grid-column: auto;
  }

  .tech-card-wide p {
    margin-top: 0;
  }

  /* GALLERY */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* CONTATTI */
  .contatti-layout {
    grid-template-columns: 1fr;
  }

  .contatti-map-wrap {
    min-height: 340px;
  }

  /* FOOTER */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav ul {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 24px;
  }

  .footer-nav a { min-height: 40px; }

  /* LIGHTBOX */
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ---------------------------------------------------------
   RESPONSIVE — SMALL PHONE (≤ 480px)
   --------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --pad-section: 56px;
    --nav-h: 64px;
  }

  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.2rem; }

  .hero-heading {
    --hero-logo-w: min(80px, 28vw);
    --hero-logo-gap: 12px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .hero-scroll-indicator { display: none; }

  .section-header { margin-bottom: 44px; }

  .contatti-map-wrap { min-height: 260px; }

  .contatti-map-actions {
    justify-content: center;
  }
}
