@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Default Light Theme (Warm Alabaster, Soft Linen & Elegant Bronze-Gold) */
  --bg-primary: #fdfcfb;
  --bg-secondary: #f6f4f0;
  --bg-tertiary: #edeae4;
  --accent-gold: #aa8137;
  --accent-gold-hover: #916c27;
  --accent-gold-rgb: 170, 129, 55;
  --text-primary: #292824;
  --text-secondary: #5a5750;
  --text-muted: #8a857b;
  --text-headings: #1c1a17;
  --border-color: rgba(170, 129, 55, 0.16);
  --glass-bg: rgba(253, 252, 251, 0.8);
  --glass-border: rgba(0, 0, 0, 0.05);
  --shadow-subtle: 0 10px 35px rgba(41, 40, 36, 0.04);
  --hero-overlay: linear-gradient(to bottom, rgba(41, 40, 36, 0.15), rgba(41, 40, 36, 0.35));
  --page-header-overlay: linear-gradient(to bottom, rgba(41, 40, 36, 0.25), rgba(41, 40, 36, 0.5));
  --btn-secondary-color: #292824;
  --btn-secondary-border: rgba(41, 40, 36, 0.25);
  --btn-secondary-hover-bg: rgba(41, 40, 36, 0.04);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1200px;
}

/* Dark Theme Variables */
html[data-theme="dark"] {
  --bg-primary: #0a0a0c;
  --bg-secondary: #121216;
  --bg-tertiary: #191921;
  --accent-gold: #c5a059;
  --accent-gold-hover: #dfbc77;
  --accent-gold-rgb: 197, 160, 89;
  --text-primary: #f8f9fa;
  --text-secondary: #b9bec6;
  --text-muted: #737883;
  --text-headings: #ffffff;
  --border-color: rgba(197, 160, 89, 0.15);
  --glass-bg: rgba(18, 18, 22, 0.82);
  --glass-border: rgba(255, 255, 255, 0.05);
  --shadow-subtle: 0 10px 40px rgba(0, 0, 0, 0.5);
  --hero-overlay: linear-gradient(to bottom, rgba(10, 10, 12, 0.45), rgba(10, 10, 12, 0.75));
  --page-header-overlay: linear-gradient(to bottom, rgba(10, 10, 12, 0.45), rgba(10, 10, 12, 0.75));
  --btn-secondary-color: #ffffff;
  --btn-secondary-border: rgba(255, 255, 255, 0.2);
  --btn-secondary-hover-bg: rgba(255, 255, 255, 0.05);
}

/* Base resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 50% -20%, rgba(var(--accent-gold-rgb), 0.06) 0%, transparent 60%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-gold-rgb), 0.25);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: var(--text-headings);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition-smooth);
}

h2:hover::after {
  width: 100%;
}

h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--accent-gold-hover);
}

/* Layout elements */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* 24H Emergency Banner / Floating Badge */
.emergency-hud {
  background: linear-gradient(135deg, #7c1a1a 0%, #4a0d0d 100%);
  color: #ffffff;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.emergency-hud a {
  color: #ffffff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.emergency-hud a:hover {
  background: #ffffff;
  color: #4a0d0d;
}

/* Header & Navigation */
header.site-header {
  background-color: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 41px; /* accounts for emergency-hud */
  z-index: 999;
  padding: 0.8rem 0;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* Logo Toggling between themes */
.logo-dark {
  display: none;
}
.logo-light {
  display: block;
}

html[data-theme="dark"] .logo-light {
  display: none;
}
html[data-theme="dark"] .logo-dark {
  display: block;
}

.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-headings);
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.logo-subtitle {
  display: block;
  font-size: 0.75rem;
  font-family: 'Outfit', sans-serif;
  color: var(--accent-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-headings);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: var(--transition-smooth);
  margin-left: auto;
  margin-right: 1.5rem;
}

.theme-toggle-btn:hover {
  background-color: var(--bg-secondary);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: scale(1.05);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-gold);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-headings);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Mobile Hamburger Menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-headings);
  margin-bottom: 5px;
  transition: var(--transition-smooth);
}

.nav-toggle span:last-child {
  margin-bottom: 0;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 6rem 0;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hero-overlay);
  z-index: 1;
  transition: background var(--transition-smooth);
}

/* Glassmorphic Container for Hero text (solved text legibility and image contrast) */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 4rem 3rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.hero-tagline {
  font-family: 'Outfit', sans-serif;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: rgba(var(--accent-gold-rgb), 0.08);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--bg-primary);
  border: 1px solid var(--accent-gold);
  box-shadow: 0 4px 15px rgba(var(--accent-gold-rgb), 0.15);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-gold-rgb), 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--btn-secondary-color);
  border: 1px solid var(--btn-secondary-border);
}

.btn-secondary:hover {
  background-color: var(--btn-secondary-hover-bg);
  border-color: var(--text-headings);
  transform: translateY(-2px);
}

/* Generic Section styling */
section.py-section {
  padding: 6rem 0;
  position: relative;
  transition: background-color 0.4s ease;
}

.section-header {
  max-width: 700px;
  margin-bottom: 4rem;
}

.section-subtitle {
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  display: block;
}

/* Geographical badges container */
.geo-badges-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2.5rem;
}

.geo-badge {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.geo-badge:hover {
  background-color: var(--accent-gold);
  color: var(--bg-primary);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(var(--accent-gold-rgb), 0.25);
}

/* Info Cards / Grid layouts */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.info-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--accent-gold-rgb), 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .info-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.info-card:hover::before {
  opacity: 1;
}

.info-card-icon {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.info-card-title {
  margin-bottom: 1rem;
}

.info-card p {
  margin-bottom: 0;
}

.info-card-link {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
}

.info-card-link::after {
  content: '→';
  transition: var(--transition-smooth);
}

.info-card-link:hover::after {
  transform: translateX(5px);
}

/* Glassmorphism Blocks */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-subtle);
  border-radius: 12px;
  padding: 3.5rem;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

/* Feature grid for Azienda & Services */
.row-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.row-feature:last-child {
  margin-bottom: 0;
}

.row-feature.reverse {
  direction: rtl;
}

.row-feature.reverse > * {
  direction: ltr;
}

.feature-img-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--glass-border);
}

.feature-img-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, transparent 55%);
}

.feature-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.feature-img-wrapper:hover .feature-img {
  transform: scale(1.05);
}

/* Service Detail List */
.service-items {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.service-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}

.service-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: var(--accent-gold);
  line-height: 1;
  font-weight: 300;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

/* Quote/Highlight */
.block-highlight {
  border-left: 2px solid var(--accent-gold);
  padding-left: 2rem;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-secondary);
  margin: 2.5rem 0;
  line-height: 1.8;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 240px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(253, 253, 253, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition-smooth);
  backdrop-filter: blur(3px);
}

html[data-theme="dark"] .gallery-overlay {
  background: rgba(10, 10, 12, 0.85);
}

.gallery-overlay-title {
  color: var(--text-headings);
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.gallery-overlay-desc {
  color: var(--accent-gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

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

/* Why Us cards / Google Ads optimized */
.perche-reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.reason-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.reason-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
}

.reason-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(var(--accent-gold-rgb), 0.25);
  margin-bottom: 1rem;
  line-height: 1;
}

/* Contact Section & Form */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 4rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.contact-info-icon {
  font-size: 1.8rem;
  color: var(--accent-gold);
  line-height: 1;
  padding-top: 0.2rem;
}

.contact-info-detail h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--text-headings);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info-detail p, .contact-info-detail a {
  margin-bottom: 0;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.contact-info-detail a:hover {
  color: var(--accent-gold);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.form-control {
  background: rgba(var(--accent-gold-rgb), 0.02);
  border: 1px solid rgba(var(--accent-gold-rgb), 0.15);
  padding: 1rem;
  border-radius: 4px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

html[data-theme="dark"] .form-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(var(--accent-gold-rgb), 0.05);
  box-shadow: 0 0 10px rgba(var(--accent-gold-rgb), 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Provincial Coverage Badge / Box */
.coverage-box {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--accent-gold);
  padding: 3rem;
  border-radius: 8px;
  margin-top: 4rem;
  text-align: center;
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

.coverage-box::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(var(--accent-gold-rgb), 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.coverage-tag {
  color: var(--accent-gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  display: block;
  margin-bottom: 1rem;
}

.coverage-title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.coverage-desc {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Privacy / Cookie Popup Banner */
.privacy-banner {
  position: fixed;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--accent-gold);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="dark"] .privacy-banner {
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.4);
}

.privacy-banner.show {
  bottom: 2rem;
}

.privacy-banner-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
}

.privacy-banner-text a {
  text-decoration: underline;
  font-weight: 500;
}

.privacy-banner-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.privacy-banner-btn {
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.privacy-banner-btn-accept {
  background-color: var(--accent-gold);
  color: var(--bg-primary);
  border: 1px solid var(--accent-gold);
}

.privacy-banner-btn-accept:hover {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
}

/* Footer styling */
footer.site-footer {
  margin-top: auto;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 5rem 0 2rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: background-color 0.4s ease;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  font-size: 0.95rem;
  margin-top: 1rem;
  color: var(--text-muted);
}

.footer-col h4 {
  color: var(--text-headings);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-headings);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.4rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .emergency-hud {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
  }
  
  header.site-header {
    top: 76px; /* adjusts for two-line mobile HUD */
  }
  
  .theme-toggle-btn {
    margin-right: 1rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 135px; /* height of header + hud */
    left: -100%;
    width: 100%;
    height: calc(100vh - 135px);
    background-color: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    transition: var(--transition-smooth);
    z-index: 998;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .hero {
    min-height: 60vh;
    padding: 4rem 0;
  }
  
  .hero-title {
    font-size: 2.6rem;
  }
  
  .hero-content {
    padding: 2.5rem 1.5rem;
    border-radius: 8px;
    width: 95%;
  }

  .row-feature {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .row-feature.reverse {
    direction: ltr;
  }
  
  .feature-img {
    height: 300px;
  }
  
  .perche-reasons {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .coverage-box {
    padding: 2rem 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Animations (Scroll Driven) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fade-slide-up {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .info-card, .row-feature, .reason-card, .glass-panel, .gallery-item {
      animation: fade-slide-up auto cubic-bezier(0.16, 1, 0.3, 1) backwards;
      animation-timeline: view();
      animation-range: entry 10% entry 40%;
    }
  }
}

.js-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Inner Page Header Styles */
.page-header {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 0;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--page-header-overlay);
  z-index: 1;
  transition: var(--transition-smooth);
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* Glassmorphic Container for Inner Page Headers */
.page-header-content {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3rem;
  max-width: 780px;
  box-shadow: var(--shadow-subtle);
  display: inline-block;
  text-align: left;
}

/* Map Section styling for contatti.html */
.map-section {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.map-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hero-overlay);
  z-index: 1;
  transition: var(--transition-smooth);
}

.map-section .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  width: 100%;
}

.map-content {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2.5rem 3rem;
  max-width: 620px;
  box-shadow: var(--shadow-subtle);
  text-align: center;
}

.map-content h3 {
  margin-bottom: 1rem;
}

.map-content p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Lightbox Modal Styles */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 12, 0.95);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox-modal.show {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.show .lightbox-img {
  transform: scale(1);
}

.lightbox-caption {
  color: #ffffff;
  margin-top: 1.2rem;
  text-align: center;
}

.lightbox-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
  letter-spacing: 0.03em;
}

.lightbox-desc {
  font-size: 0.85rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Controls */
.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  line-height: 1;
  z-index: 3001;
}

.lightbox-close:hover {
  color: var(--accent-gold);
  transform: scale(1.1);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: var(--transition-smooth);
  z-index: 3001;
  user-select: none;
}

.lightbox-btn:hover {
  background-color: var(--accent-gold);
  color: var(--bg-primary);
  border-color: var(--accent-gold);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

/* Prevent body scrolling when lightbox is open */
body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .lightbox-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .lightbox-prev {
    left: 0.5rem;
  }
  .lightbox-next {
    right: 0.5rem;
  }
  .lightbox-close {
    top: 1rem;
    right: 1.5rem;
  }
}

/* Feature Video Frame */
.feature-video-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1rem 0;
}

.feature-video {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  border: 4px solid var(--accent-gold);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  background-color: #000000;
  object-fit: cover;
  display: block;
  outline: none;
  transition: var(--transition-smooth);
}

.feature-video:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(var(--accent-gold-rgb), 0.3);
}

/* Language Switcher Styling & Google Translate overriding */

.emergency-hud .lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.2rem 0.4rem;
  border-radius: 20px;
  margin-left: 1rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
}

.emergency-hud .lang-btn {
  background: none;
  border: 2px solid transparent;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.5;
  filter: grayscale(20%);
}

.emergency-hud .lang-btn:hover {
  opacity: 1;
  transform: scale(1.2);
  filter: grayscale(0%);
}

.emergency-hud .lang-btn.active {
  opacity: 1;
  border-color: #ffffff;
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
  filter: grayscale(0%);
}

@media (max-width: 768px) {
  .emergency-hud .lang-switcher {
    margin-left: 0;
    margin-top: 0.25rem;
  }
}

/* Google Translate Widget Override - Hide frame and tooltip */
body > .skiptranslate,
iframe.goog-te-banner-frame, 
.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

body {
  top: 0 !important;
  position: static !important;
}

.goog-tooltip, 
.goog-tooltip:hover, 
#goog-gt-tt, 
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box;
}

#google_translate_element {
  display: none !important;
}



