/* ==========================================================================
   COSTANZO NINO - ONE-PAGE SCROLL DESIGN SYSTEM (SITO2026V2)
   Modern Dark Luxury Aesthetic: Obsidian & Brass / Brushed Gold
   ========================================================================== */

:root {
  --primary: #0b0c0e;
  --primary-surface: #12141a;
  --primary-card: rgba(18, 20, 26, 0.78);

  /* Gold / Brass Accent Palette */
  --gold: #d4af37;
  --gold-light: #e6ca65;
  --gold-dark: #997819;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #997819 100%);
  --gold-glow: rgba(212, 175, 55, 0.25);

  /* Texts */
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.28);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 14px 40px rgba(0, 0, 0, 0.8);

  --header-height: 74px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Smooth Scrolling */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  background-color: var(--primary);
}

body.onepage-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--primary);
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ==========================================================================
   STICKY GLASSMORPHIC HEADER & NAVIGATION
   ========================================================================== */
header.dark-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(11, 12, 14, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-icon.dark-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gold-gradient);
  color: #0b0c0e;
  border: 1px solid var(--gold-light);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
  box-shadow: 0 3px 12px var(--gold-glow);
  flex-shrink: 0;
}

.logo-text .logo-title-dark {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  line-height: 1.15;
}

.logo-text .logo-sub-dark {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.4px;
}

.nav-links.dark-nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.dark-nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.4rem 0;
  position: relative;
  transition: var(--transition);
}

.dark-nav-links a:hover,
.dark-nav-links a.active {
  color: var(--gold);
}

.dark-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}

.dark-nav-links a:hover::after,
.dark-nav-links a.active::after {
  width: 100%;
}

.dark-mobile-toggle {
  display: none;
  background: #181a1f;
  border: 1px solid var(--border-subtle);
  color: var(--gold);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
}

/* ==========================================================================
   ONE-PAGE CONTAINER & SECTIONS
   ========================================================================== */
.onepage-main {
  flex: 1;
  width: 100%;
  position: relative;
  background-image:
    radial-gradient(circle at 70% 10%, rgba(30, 35, 48, 0.16) 0%, rgba(11, 12, 14, 0.75) 85%),
    linear-gradient(to bottom, rgba(11, 12, 14, 0.46) 0%, rgba(11, 12, 14, 0.69) 100%),
    url('metal_craftsmanship.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.page-section {
  width: 100%;
  padding: 5rem 0;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.page-section:last-of-type {
  border-bottom: none;
}

.section-hero {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.section-about {
  background: rgba(14, 16, 22, 0.45);
}

.section-container,
.exclusive-home-wrapper {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Headings for Sections */
.inner-page-header,
.exclusive-hero-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 3rem auto;
}

.inner-tagline,
.exclusive-tagline {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.inner-page-title,
.exclusive-main-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.6rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.inner-page-subtitle,
.exclusive-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.6;
}

/* ==========================================================================
   HERO / BANNER STYLES
   ========================================================================== */
.exclusive-horizontal-frame {
  width: 100%;
  height: 380px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  margin-top: 2rem;
}

.exclusive-horizontal-frame .frame-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.exclusive-horizontal-frame .frame-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.exclusive-horizontal-frame:hover .frame-image {
  transform: scale(1.03);
}

.exclusive-horizontal-frame .frame-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 14, 0.15) 0%, rgba(11, 12, 14, 0.65) 100%);
  pointer-events: none;
}

.exclusive-horizontal-frame .frame-badge {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  background: rgba(11, 12, 14, 0.85);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.4rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 30px;
  backdrop-filter: blur(8px);
  text-transform: uppercase;
}

/* ==========================================================================
   CHI SIAMO & FEATURES SECTION
   ========================================================================== */
.exclusive-bottom-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.75rem;
  align-items: stretch;
}

.exclusive-card {
  background: var(--primary-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2rem 2.25rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

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

.exclusive-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.exclusive-card-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.exclusive-card-content p:last-child {
  margin-bottom: 0;
}

.exclusive-card-content strong {
  color: #ffffff;
  font-weight: 600;
}

.exclusive-cta-wrapper {
  margin-top: 1.5rem;
}

/* Right Features Column */
.exclusive-features-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
}

.exclusive-feature-card {
  background: var(--primary-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex: 1;
  transition: var(--transition);
}

.exclusive-feature-card:hover {
  border-color: var(--border-gold);
  transform: translateX(6px);
  background: rgba(22, 25, 33, 0.88);
}

.feature-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  padding-top: 0.15rem;
}

.feature-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.feature-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Buttons */
.btn-exclusive {
  display: inline-block;
  background: var(--gold-gradient);
  color: #0b0c0e;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.75rem 1.6rem;
  border-radius: 7px;
  transition: var(--transition);
  box-shadow: 0 4px 18px var(--gold-glow);
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn-exclusive:hover {
  background: linear-gradient(135deg, #e6ca65 0%, #b38e24 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.4);
  color: #000000;
}

.btn-inline {
  align-self: flex-start;
  margin-top: 1rem;
  padding: 0.65rem 1.3rem;
  font-size: 0.8rem;
}

/* ==========================================================================
   CARDS GRIDS (SERVIZI, PRODOTTI, CONTATTI)
   ========================================================================== */
.inner-cards-grid {
  display: grid;
  gap: 1.5rem;
}

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

.dark-card {
  background: var(--primary-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.85rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
}

.dark-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.dark-card-icon {
  width: 58px;
  height: 58px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px;
}

.service-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dark-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.dark-card-body p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.full-width-dark {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

.full-width-dark .dark-card-body {
  flex: 1;
}

.full-width-dark .btn-exclusive {
  flex-shrink: 0;
  margin-top: 0;
}

/* ==========================================================================
   CONTACT CARD & MAP
   ========================================================================== */
.contact-dark-card {
  gap: 0;
  justify-content: flex-start;
}

.contact-info-row,
.contact-directions {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-info-row:last-of-type {
  border-bottom: none;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.contact-link {
  color: var(--gold);
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.contact-directions {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

.dark-map-wrapper {
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
  flex: 1;
  min-height: 280px;
}

.dark-map-iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
  border: 0;
}

.dark-map-cta {
  margin-top: 1rem;
}

.dark-map-cta .btn-exclusive {
  width: 100%;
  display: block;
  text-align: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.dark-footer {
  background: #07080a;
  border-top: 1px solid var(--border-subtle);
  padding: 2.25rem 0;
  color: var(--text-muted);
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-info strong {
  color: #ffffff;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

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

/* ==========================================================================
   FLOATING BACK-TO-TOP BUTTON
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--gold-gradient);
  color: #0b0c0e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: linear-gradient(135deg, #e6ca65 0%, #b38e24 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px var(--gold-glow);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 960px) {
  .exclusive-bottom-grid {
    grid-template-columns: 1fr;
  }

  .grid-2-dark {
    grid-template-columns: 1fr;
  }

  .full-width-dark {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .full-width-dark .btn-exclusive {
    align-self: flex-start;
  }

  .exclusive-horizontal-frame {
    height: 280px;
  }

  .inner-page-title,
  .exclusive-main-title {
    font-size: 1.75rem;
  }

  .page-section {
    padding: 3.5rem 0;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .dark-mobile-toggle {
    display: block;
  }

  .nav-links.dark-nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(11, 12, 14, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-gold);
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  }

  .nav-links.dark-nav-links.active {
    display: flex;
  }

  .dark-nav-links li {
    width: 100%;
  }

  .dark-nav-links a {
    display: block;
    width: 100%;
    font-size: 1rem;
    padding: 0.5rem 0;
  }
}