/* =========================================================
   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; */

  /* Fonts: defined in fonts-config.css (--ff-heading, --ff-body) */

  --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);
}

.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);
}

/* Nav is transparent on hero — keep links white (default) */

.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 — full-bleed editorial
   --------------------------------------------------------- */
#hero {
  position: relative;
  height: 100svh;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ---- Image (full bleed, absolutely positioned) ---- */
.hero-image-panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 35%;
  display: block;
  transform: scale(1.06);
  transition: transform 10s ease;
}

#hero.loaded .hero-image {
  transform: scale(1);
}

/* ---- Dark gradient overlay ---- */
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(6, 6, 6, 0.32) 0%,
                                rgba(6, 6, 6, 0.52) 35%,
                                rgba(6, 6, 6, 0.55) 65%,
                                rgba(6, 6, 6, 0.70) 100%);
}

/* ---- Content block centred in the viewport ---- */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 48px;
  padding-block: 40px;
  display: flex;
  flex-direction: column;
}

/* ---- Eyebrow row ---- */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 28px;
}

.hero-eyebrow-flag {
  display: inline-block;
  width: 1.5em;
  height: auto;
  aspect-ratio: 3 / 2;
  vertical-align: -0.06em;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.2);
  object-fit: cover;
}

/* thin gold rule after the flag */
.hero-eyebrow-sep {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--clr-gold);
  opacity: 0.75;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ---- Thin rule separating heading from footer row ---- */
.hero-rule {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  margin-block: clamp(24px, 3.5vw, 44px);
  flex-shrink: 0;
}

/* ---- Footer row: sub-text left, CTA right ---- */
.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 72px);
  min-width: 0;
}

/* ---- Big typographic statement ---- */
.hero-heading {
  --hero-logo-w: clamp(72px, 13vw, 190px);
  --hero-logo-gap: clamp(16px, 3vw, 40px);

  min-width: 0;
  max-width: 100%;
  /* Big display type; vw + svh cap keeps long headlines fitting; max ~6rem */
  font-size: clamp(3.2rem, min(9vw + 0.5rem, 15svh), 8rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--clr-white);
  margin-bottom: 0;
  overflow-wrap: break-word;
  hyphens: manual;
}

.hero-heading__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: var(--hero-logo-gap);
  row-gap: 0.12em;
  min-width: 0;
  max-width: 100%;
}

.hero-heading__brand {
  min-width: 0;
}

.hero-logo {
  flex-shrink: 0;
  width: var(--hero-logo-w);
  height: auto;
  object-fit: contain;
}

.hero-heading__accent {
  display: block;
  margin-top: 0.12em;
  max-width: 100%;
  font-size: clamp(0.88em, min(4.1vw, 6.5svh), 1.06em);
  line-height: 1.12;
}

.hero-heading em {
  color: var(--clr-gold-lt);
}

.hero-sub {
  font-size: 1.14rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.78;
  margin-bottom: 0;
  max-width: clamp(280px, 38vw, 480px);
  flex: 1;
}


#hero .btn-primary {
  color: var(--clr-white);
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
  padding: 18px 48px;
  min-height: 58px;
  font-size: 0.78rem;
  flex-shrink: 0;
}

#hero .btn-primary:hover,
#hero .btn-primary:focus-visible {
  background: var(--clr-gold);
  border-color: var(--clr-gold);
  color: var(--clr-dark);
  box-shadow: 0 4px 24px rgba(184, 148, 95, 0.38);
}

/* ---------------------------------------------------------
   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;
}

/* ---------------------------------------------------------
   COMPETENZE — IMAGE SHOWCASE
   --------------------------------------------------------- */
.comp-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.comp-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.comp-photo:hover {
  border-color: rgba(184, 148, 95, 0.5);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.comp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.comp-photo:hover img {
  transform: scale(1.05);
}

/* ---------------------------------------------------------
   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;
}

/* ---------------------------------------------------------
   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 {
    padding-inline: 24px;
  }

  /* NAVBAR */
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }

  /* HERO — stack vertically on mobile (image top / cream text bottom) */
  #hero {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 44svh 1fr;
    height: auto;
    min-height: 100svh;
    align-items: stretch;
  }

  /* Image occupies first row, back in normal flow */
  .hero-image-panel {
    position: relative;
    min-height: 220px;
    grid-row: 1;
  }

  /* Overlay not needed on mobile */
  .hero-overlay {
    display: none;
  }

  /* Text panel on cream background */
  .hero-content {
    position: static;
    grid-row: 2;
    background: var(--clr-bg);
    padding-top: 36px;
    padding-bottom: 52px;
    padding-inline: 24px;
    margin: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
  }

  /* Eyebrow — restore gold colour on light background */
  .hero-eyebrow {
    color: var(--clr-gold);
  }

  .hero-eyebrow-sep {
    background: var(--clr-gold);
  }

  /* Footer row — stack vertically on mobile */
  .hero-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  /* Heading — dark text on cream */
  .hero-heading {
    --hero-logo-w: clamp(52px, 14vw, 92px);
    --hero-logo-gap: 16px;
    font-size: clamp(2.4rem, min(8.5vw + 0.35rem, 13svh), 3.65rem);
    color: var(--clr-dark);
    margin-bottom: 0;
  }

  .hero-heading__accent {
    font-size: clamp(0.84em, min(3.8vw, 5.5svh), 0.98em);
  }

  /* Restore dark logo on cream background */
  .hero-logo {
    content: url('imgs/logo.svg');
  }

  .hero-heading em {
    color: var(--clr-gold);
  }

  /* Rule — gold tint on light background */
  .hero-rule {
    background: rgba(0, 0, 0, 0.12);
  }

  .hero-sub {
    font-size: 1.05rem;
    color: var(--clr-mid);
    max-width: 100%;
    margin-bottom: 28px;
  }

  #hero .btn-primary {
    color: var(--clr-dark);
    border-color: var(--clr-dark);
    background: transparent;
    padding: 15px 40px;
    min-height: 52px;
    font-size: 0.72rem;
  }

  #hero .btn-primary:hover,
  #hero .btn-primary:focus-visible {
    background: var(--clr-dark);
    color: var(--clr-white);
  }

  /* 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;
  }

  /* COMPETENZE SHOWCASE */
  .comp-showcase {
    grid-template-columns: 1fr 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; }

}

/* ---------------------------------------------------------
   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(60px, 20vw);
    --hero-logo-gap: 12px;
    font-size: clamp(2.1rem, min(8.2vw, 12svh), 3.05rem);
  }

  #hero {
    grid-template-rows: 38svh 1fr;
  }

  .comp-showcase {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .section-header { margin-bottom: 44px; }

  .contatti-map-wrap { min-height: 260px; }

  .contatti-map-actions {
    justify-content: center;
  }
}
