/* ============================================================
   NOVEXA — Design System Globale
   styles.css
   ============================================================ */


/* ---- Variabili ------------------------------------------- */

:root {
  /* Colori principali */
  --navy:         #080f1e;
  --navy-mid:     #1a3a6a;
  --navy-light:   #2D5AA0;
  --slate:        #2D3748;
  --grey:         #718096;
  --grey-light:   #A0AEC0;
  --border:       #E2E8F0;
  --bg-light:     #F7F6F3;
  --bg-white:     #FFFFFF;
  --accent:       #1a3a6a;
  --gold:         #B08D57;

  /* Tipografia */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-w:        1180px;
  --section-py:   120px;
  --header-h:     68px;

  /* Transizioni */
  --ease:         0.25s ease;
}


/* ---- 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(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--slate);
  background-color: var(--bg-white);
  animation: pageIn 0.4s ease both;
}

@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
}


/* ---- Contenitore ----------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 32px;
}


/* ---- Tipografia ------------------------------------------ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 1rem; }

p {
  color: var(--slate);
  max-width: 68ch;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--grey);
}


/* ---- Label di sezione ------------------------------------ */

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--grey);
  max-width: 58ch;
  margin-bottom: 48px;
}


/* ---- Bottoni --------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 13px 26px;
  border-radius: 3px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    background var(--ease),
    color var(--ease),
    border-color var(--ease),
    box-shadow var(--ease),
    transform var(--ease);
  text-decoration: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--bg-white);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--bg-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-white {
  background: var(--bg-white);
  color: var(--navy);
  border-color: var(--bg-white);
}

.btn-white:hover {
  background: var(--bg-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-outline-white {
  background: transparent;
  color: var(--bg-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--bg-white);
  transform: translateY(-1px);
}


/* ---- Header e Navigazione -------------------------------- */

.site-header {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - 80px);
  max-width: 1180px;
  height: var(--header-h);
  background: #F8F7F4;
  border-radius: 60px;
  border-bottom: none;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.07),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--ease);
}

.site-header.scrolled {
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* Container override — gestisce padding del pill */
.site-header .container {
  padding-inline: 40px;
  max-width: none;
  width: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* Immagine logo — dimensioni base */
.site-logo img {
  height: 40px;
  width: auto;
}

/* Header: logo a colori — PNG trasparente, dimensioni reali 1:1 */
.site-header .site-logo img {
  display: block;
  height: 52px;
  width: auto;
  filter: none;
}

/* Rimuove il testo ::after precedente */
.site-header .site-logo::after {
  content: none;
}

/* Navigazione desktop */
.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav .nav-list a {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--slate);
  transition: color var(--ease);
  white-space: nowrap;
}

.site-nav .nav-list a:hover,
.site-nav .nav-list a.active {
  color: var(--navy);
}

/* Chevron rimosso per pulizia elite boutique */

/* CTA Contatti — pill scuro */
.site-nav .nav-list .nav-cta {
  background: var(--navy);
  color: var(--bg-white);
  padding: 8px 22px;
  border-radius: 100px;
  font-weight: 600;
  border: none;
  transition: background var(--ease);
}

.site-nav .nav-list .nav-cta:hover {
  background: var(--navy-mid);
  color: var(--bg-white);
}

/* Search bar */
.nav-search {
  display: flex;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.nav-search input[type="search"] {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--slate);
  background: #ECEAE5;
  border: none;
  border-radius: 100px;
  padding: 9px 36px 9px 16px;
  width: 160px;
  outline: none;
  transition: width var(--ease), background var(--ease);
  -webkit-appearance: none;
}

.nav-search input[type="search"]:focus {
  width: 220px;
  background: #E5E2DC;
}

.nav-search input[type="search"]::placeholder {
  color: var(--grey-light);
}

.nav-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.nav-search svg {
  position: absolute;
  right: 12px;
  color: var(--grey);
  pointer-events: none;
}

/* Pulsante hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}


/* ---- Footer ---------------------------------------------- */

.site-footer {
  background: var(--navy);
  padding: 64px 0 36px;
}

.footer-positioning {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gold);
  text-align: center;
  padding-bottom: 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid rgba(176, 141, 87, 0.18);
  letter-spacing: 0.02em;
  max-width: 480px;
  margin-inline: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  max-width: 780px;
  margin-inline: auto;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.footer-brand .site-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
}

.footer-brand .site-logo img {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-brand > p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  max-width: none;
  line-height: 1.6;
}

.footer-col {
  text-align: center;
}

.footer-col-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  opacity: 0.7;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--ease);
}

.footer-col a:hover {
  color: var(--bg-white);
}

.footer-contact-line {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  max-width: none;
}

.footer-contact-line a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--ease);
}

.footer-contact-line a:hover {
  color: var(--bg-white);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.35);
  transition: color var(--ease);
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.6);
}


/* ---- Griglia -------------------------------------------- */

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

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}


/* ---- Card base ------------------------------------------- */

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 36px;
}

.card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-bottom: 12px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: 0.9rem;
  color: var(--grey);
  margin-bottom: 16px;
  max-width: none;
}

.card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color var(--ease);
}

.card-link:hover {
  color: var(--gold);
}


/* ---- Varianti sfondo ------------------------------------- */

/* ---- Fade-in animation ---------------------------------- */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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


/* ---- Responsive globale ---------------------------------- */

/* Nav collassa a 1024px */
@media (max-width: 1024px) {
  .site-nav {
    display: none;
    position: fixed;
    top: calc(24px + var(--header-h) + 12px);
    left: 16px;
    right: 16px;
    background: #F8F7F4;
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow:
      0 8px 40px rgba(0, 0, 0, 0.12),
      0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 199;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-search {
    display: none;
  }
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  :root {
    --section-py: 72px;
  }

  /* Pill ridotta su mobile */
  .site-header {
    width: calc(100% - 32px);
    border-radius: 40px;
    top: 16px;
  }

  .site-header .container {
    padding-inline: 20px;
  }

  /* Mobile nav sotto il pill ridotto */
  .site-nav {
    top: calc(16px + var(--header-h) + 10px);
    left: 12px;
    right: 12px;
  }

  .container {
    padding-inline: 20px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}
