/* ========================================
   CALOR TECH - Modern Minimalist Design
   Inspired by supersilk.ch aesthetic
   ======================================== */

/* CSS Variables for easy theming */
:root {
  /* Colors - Premium Palette */
  --color-primary: #0a0a0a;
  /* Rich, deep black */
  --color-primary-light: #2d2d2d;
  /* Lighter black for hover states */
  --color-secondary: #ffffff;
  --color-accent: #d90429;
  /* Vibrant professional red */
  --color-accent-dark: #b00220;
  /* Darker shade for interactions */
  --color-accent-blue: #003f88;
  /* Deep corporate blue */
  --color-text: #2c2c2c;
  /* Softer contrast for body text */
  --color-text-light: #666666;
  --color-background: #ffffff;
  --color-background-alt: #f4f5f7;
  /* Very subtle cool gray for sections */
  --color-border: #e2e4e8;
  --color-surface: #ffffff;

  /* Typography - Editorial Feel */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Fluid Typography */
  --fs-hero: clamp(3rem, 6vw, 5.5rem);
  --fs-h1: clamp(2.5rem, 5vw, 4rem);
  --fs-h2: clamp(2rem, 4vw, 3rem);
  --fs-h3: clamp(1.5rem, 3vw, 2.25rem);
  --fs-body: clamp(1.05rem, 1.5vw, 1.15rem);
  --fs-small: 0.95rem;

  /* Spacing - "Breathable" Layout */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1.25rem;
  --spacing-md: 2.5rem;
  --spacing-lg: 5rem;
  --spacing-xl: 8rem;
  --spacing-2xl: 10rem;

  /* Layout */
  --max-width: 1440px;
  /* Wider container for modern screens */
  --max-width-text: 800px;
  --header-height: 90px;
  --border-radius-sm: 8px;
  --border-radius: 16px;
  --border-radius-lg: 24px;

  /* Transitions */
  --transition-fast: 0.2s ease-out;
  --transition-normal: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);

  /* Shadows - Premium Depth */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 32px 64px rgba(0, 0, 0, 0.12);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: 1px solid rgba(255, 255, 255, 0.3);
  --glass-blur: blur(20px);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  line-height: 1.8;
  /* Increased for editorial readability */
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
  letter-spacing: -0.03em;
  /* Tighter tracking for headings */
}

h1 {
  font-size: var(--fs-h1);
  letter-spacing: -0.04em;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

/* ========================================
   UTILITY CLASSES
   ======================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  width: 100%;
}

.container-text {
  max-width: var(--max-width-text);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-dark {
  background-color: var(--color-primary);
  color: var(--color-secondary);
  position: relative;
  overflow: hidden;
}

.section-light {
  background-color: var(--color-background-alt);
  position: relative;
}

/* Add subtle pattern to light sections if desired, or keep clean */

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

.text-accent {
  color: var(--color-accent);
}

.mt-1 {
  margin-top: var(--spacing-sm);
}

.mt-2 {
  margin-top: var(--spacing-md);
}

.mt-3 {
  margin-top: var(--spacing-lg);
}

.mb-1 {
  margin-bottom: var(--spacing-sm);
}

.mb-2 {
  margin-bottom: var(--spacing-md);
}

.mb-3 {
  margin-bottom: var(--spacing-lg);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.85);
  /* Slightly more transparent */
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 1000;
  transition: all var(--transition-normal);
  border-bottom: 1px solid rgba(0, 0, 0, 0);
  /* Transparent initially */
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  /* Subtle border on scroll */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.5rem;
  /* Slightly larger */
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--color-primary);
}

.logo-img {
  height: 54px;
  width: auto;
  border-radius: 50%;
  /* Rounded logo if applicable, or keep square */
  transition: transform var(--transition-fast);
}

.logo:hover .logo-img {
  transform: rotate(-5deg);
  /* Playful micro-interaction */
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-menu {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
  align-items: center;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  /* Removing padding to underline text exactly */
  position: relative;
  color: var(--color-primary);
  opacity: 0.8;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-normal);
  transform: translateX(-50%);
}

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

/* Mobile Menu Toggle - Refined */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle span {
  width: 32px;
  height: 2px;
  /* Thinner lines */
  background-color: var(--color-primary);
  transition: all var(--transition-normal);
  border-radius: 4px;
}

/* ========================================
   HERO SECTION
   ======================================== */

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: saturate(1.1) contrast(1.1);
  /* Enhance video quality */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 0;
  backdrop-filter: blur(2px);
  /* Cinematic feel */
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-secondary);
  max-width: 1000px;
  padding: 0 var(--spacing-md);
  animation: fadeInUp 1.4s var(--transition-slow);
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--color-secondary);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: var(--fs-h3);
  font-weight: 400;
  margin-bottom: var(--spacing-md);
  opacity: 0.9;
  letter-spacing: -0.01em;
}

.hero-description {
  font-size: var(--fs-body);
  max-width: 680px;
  margin: 0 auto var(--spacing-lg);
  opacity: 0.85;
  font-weight: 300;
  line-height: 1.8;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1em 2.8em;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 50px;
  /* Pill shape */
  cursor: pointer;
  transition: all var(--transition-normal);
  text-transform: none;
  /* Keep natural case */
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-secondary);
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--color-primary-light);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: rgba(0, 0, 0, 0.2);
}

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

.btn-secondary:hover {
  border-color: var(--color-primary);
  background-color: rgba(0, 0, 0, 0.03);
  transform: translateY(-2px);
}

.btn-secondary.btn-white:hover {
  background-color: var(--color-background-alt);
  border-color: var(--color-background-alt);
  color: var(--color-primary);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-secondary);
  border-color: var(--color-accent);
  box-shadow: 0 4px 15px rgba(217, 4, 41, 0.3);
}

.btn-accent:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(217, 4, 41, 0.4);
}

.btn-group {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: center;
}

/* ========================================
   SECTION NUMBERING
   ======================================== */

/* ========================================
   SECTION NUMBERING
   ======================================== */

.section-number {
  display: none;
}

.section-header {
  margin-bottom: var(--spacing-xl);
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-light);
  max-width: 650px;
  margin: 0 auto;
  font-weight: 400;
}

/* ========================================
   SERVICES GRID
   ======================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.service-card {
  padding: var(--spacing-lg) var(--spacing-md);
  background-color: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 0, 0, 0.08);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background-color: var(--color-background-alt);
  border-radius: 50%;
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
  background-color: var(--color-primary);
  color: var(--color-secondary);
  transform: scale(1.1);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

.service-description {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

/* ========================================
   IMAGE GALLERY
   ======================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-md);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

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

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-md);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  font-weight: 500;
  font-size: 1.1rem;
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.gallery-item:hover figcaption {
  transform: translateY(0);
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 1.2rem 1.5rem;
  font-size: 1rem;
  font-family: var(--font-primary);
  border: 1px solid var(--color-border);
  background-color: var(--color-background-alt);
  /* Light gray bg */
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
  color: var(--color-primary);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

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

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
  color: var(--color-secondary);
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-section p,
.footer-section a {
  color: inherit;
  line-height: 1.8;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: white;
  transform: translateX(4px);
  display: inline-block;
  /* allows transform */
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}


/* ========================================
   COOKIE BAR
   ======================================== */

.cookie-bar {
  position: fixed;
  bottom: var(--spacing-md);
  left: var(--spacing-md);
  right: var(--spacing-md);
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--color-secondary);
  padding: var(--spacing-md);
  z-index: 9999;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  transform: translateY(200%);
  transition: transform var(--transition-slow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-bar a {
  color: var(--color-secondary);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-bar a:hover {
  color: var(--color-accent);
}


.cookie-bar.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  flex-wrap: nowrap;
}

.cookie-text {
  flex-grow: 1;
}

.cookie-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .cookie-buttons {
    width: 100%;
  }
}


/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-55px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.9s ease;
}

.fade-in-up {
  animation: fadeInUp 0.9s ease;
}

.slide-in-left {
  animation: slideInLeft 0.9s ease;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 968px) {
  :root {
    --header-height: 70px;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 5rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-background);
    flex-direction: column;
    padding: var(--spacing-xl) var(--spacing-md);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    opacity: 0;
    transition: all var(--transition-normal);
    pointer-events: none;
    justify-content: center;
    gap: var(--spacing-lg);
  }

  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    font-size: var(--fs-h3);
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  :root {
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .gallery,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .cookie-bar {
    left: var(--spacing-sm);
    right: var(--spacing-sm);
    bottom: var(--spacing-sm);
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   GALLERY GRID
   ======================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin: 0;
  background: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.gallery-item figcaption {
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--fs-body);
  font-weight: 600;
  text-align: center;
  color: var(--color-primary);
  background: white;
}

@media (max-width: 968px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .gallery-item img {
    height: 240px;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 300px;
  }
}

/* ========================================
   LOGO ACCENT COLORS
   ======================================== */

.logo-accent-blue,
.hero-title .logo-accent-blue,
.logo-text-main .logo-accent-blue {
  color: #003f88 !important;
  color: var(--color-accent-blue) !important;
}

/* ========================================
   PAGE HERO SECTIONS
   ======================================== */

.page-hero {
  padding-top: calc(var(--header-height) + var(--spacing-xl));
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.page-hero-title {
  font-size: var(--fs-hero);
}

.page-hero-subtitle {
  font-size: var(--fs-h3);
  max-width: 700px;
  margin: 0 auto;
}

/* ========================================
   TWO COLUMN LAYOUTS
   ======================================== */

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.two-col-grid-start {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

@media (max-width: 968px) {

  .two-col-grid,
  .two-col-grid-start {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

/* ========================================
   CONTENT BLOCKS
   ======================================== */

.content-block {
  max-width: 700px;
}

.content-block-lg {
  font-size: 1.125rem;
  line-height: 1.8;
  text-align: center;
}

.content-block-center {
  text-align: center;
  margin-top: var(--spacing-md);
}

/* ========================================
   STICKY ELEMENTS
   ======================================== */

.sticky-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--spacing-md));
}

/* ========================================
   IMAGE STYLES
   ======================================== */

.img-rounded {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.img-card {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.img-contain {
  object-fit: contain;
  background-color: #fff;
  /* Ensure white background for logos */
  padding: 10px;
}

/* ========================================
   INFO BOXES
   ======================================== */

.info-box {
  padding: var(--spacing-md);
  background-color: var(--color-background-dark);
  border-left: 4px solid var(--color-accent);
  margin: var(--spacing-md) 0;
}

.info-box-light {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--color-background-dark);
  border-radius: 8px;
}

.info-box-caption {
  font-size: 0.875rem;
  color: var(--color-text-light);
  text-align: center;
  margin-bottom: var(--spacing-md);
}

/* ========================================
   LISTS WITH CHECKMARKS
   ======================================== */

.checklist {
  list-style: none;
  padding: 0;
  margin-bottom: var(--spacing-lg);
}

.checklist-item {
  padding: var(--spacing-sm) 0;
  padding-left: 2rem;
  position: relative;
  font-size: var(--fs-body);
  line-height: 1.8;
}

.checklist-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

.product-feature-list {
  list-style: none;
  padding: 0;
  margin-top: var(--spacing-sm);
  font-size: 0.9rem;
}

.product-feature-list li {
  padding: 0.25rem 0;
}

/* ========================================
   CERTIFICATION CARDS (chi-sono.html)
   ======================================== */

.certification-card {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.certification-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 0, 0, 0.08);
}

.certification-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(233, 84, 32, 0.1) 0%, rgba(233, 84, 32, 0.05) 100%);
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  /* Subtle ring */
}

.certification-icon-blue {
  background: linear-gradient(135deg, rgba(41, 128, 185, 0.15) 0%, rgba(41, 128, 185, 0.08) 100%);
  color: var(--color-accent-blue);
}

.certification-icon-orange {
  background: linear-gradient(135deg, rgba(233, 84, 32, 0.15) 0%, rgba(233, 84, 32, 0.08) 100%);
  color: var(--color-accent);
}

.certification-title {
  font-size: 1.35rem;
  /* Match service title */
  margin-bottom: var(--spacing-xs);
  font-weight: 700;
  color: var(--color-primary);
}

/* ========================================
   CERTIFICATION GRID
   ======================================== */

.certification-grid {
  /* Removed max-width constraint */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  /* Widen minimum width */
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

/* ========================================
   CONTACT CARDS
   ======================================== */

.contact-card-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.contact-card-icon {
  font-size: 2.5rem;
}

.contact-card-content h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--spacing-xs);
}

.contact-card-content a {
  font-size: var(--fs-body);
  color: var(--color-text);
}

.contact-card-content p {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  margin-top: var(--spacing-xs);
  margin-bottom: 0;
}

/* Border colors for contact cards */
.border-accent {
  border-left: 4px solid var(--color-accent);
}

.border-accent-blue {
  border-left: 4px solid var(--color-accent-blue);
}

.border-whatsapp {
  border-left: 4px solid #25D366;
}

.border-primary {
  border-left: 4px solid var(--color-primary);
}

/* Icon colors */
.icon-accent {
  color: var(--color-accent);
}

.icon-accent-blue {
  color: var(--color-accent-blue);
}

.icon-whatsapp {
  color: #25D366;
}

.icon-primary {
  color: var(--color-primary);
}

/* ========================================
   BENEFITS GRID (preventivo.html)
   ======================================== */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.benefit-item {
  text-align: center;
  padding: var(--spacing-md);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(233, 84, 32, 0.1) 0%, rgba(233, 84, 32, 0.05) 100%);
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
}

.benefit-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

.benefit-description {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ========================================
   FORM SECTIONS
   ======================================== */

.form-section {
  margin-bottom: var(--spacing-xl);
}

.form-section-header {
  font-size: var(--fs-h3);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--color-border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.form-row-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-md);
}

@media (max-width: 768px) {

  .form-row,
  .form-row-2-1 {
    grid-template-columns: 1fr;
  }
}

.form-privacy {
  display: flex;
  align-items: start;
  gap: var(--spacing-xs);
  cursor: pointer;
}

.form-privacy input {
  margin-top: 4px;
}

.form-privacy span {
  font-size: var(--fs-small);
  line-height: 1.6;
}

.form-radio-group {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.form-radio-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  cursor: pointer;
}

.form-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-sm);
}

.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  cursor: pointer;
}

.form-footer {
  border-top: 2px solid var(--color-border);
  padding-top: var(--spacing-md);
}

.form-submit-btn {
  width: 100%;
  font-size: var(--fs-h3);
  padding: 1.25rem;
}

.form-note {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  text-align: center;
  margin-top: var(--spacing-sm);
}

/* ========================================
   PROCESS STEPS (preventivo.html)
   ======================================== */

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.process-step {
  text-align: center;
}

.process-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto var(--spacing-md);
}

.process-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--spacing-sm);
}

.process-description {
  color: var(--color-text-light);
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-container {
  max-width: 900px;
  margin: 0 auto;
  margin-top: var(--spacing-xl);
}

.faq-item {
  margin-bottom: var(--spacing-md);
  cursor: pointer;
}

.faq-summary {
  font-size: var(--fs-h3);
  font-weight: 600;
  padding: var(--spacing-sm);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 1.5rem;
}

.faq-content {
  padding: var(--spacing-md);
  padding-top: 0;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ========================================
   PDF DOCUMENTATION (prodotti.html)
   ======================================== */

.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.no-results {
  display: none;
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--color-text-light);
}

.no-results h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--spacing-sm);
}

/* ========================================
   PDF CARDS
   ======================================== */

.pdf-category {
  margin-bottom: var(--spacing-2xl);
}

.pdf-category .section-header {
  margin-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--spacing-md);
  text-align: left;
}

.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.pdf-card {
  background: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.pdf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 0, 0, 0.08);
}

.pdf-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.pdf-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(217, 4, 41, 0.08);
  /* Soft red bg */
  color: var(--color-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.pdf-info {
  display: flex;
  flex-direction: column;
}

.pdf-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 4px;
}

.pdf-meta {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.pdf-download-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: var(--color-background-alt);
  color: var(--color-primary);
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.pdf-download-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-secondary);
}

.pdf-download-btn span {
  font-size: 1.1rem;
}



/* Search and filter */
.search-filter-container {
  margin: var(--spacing-xl) auto;
  max-width: 800px;
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.search-input {
  flex: 1;
  min-width: 250px;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: var(--fs-body);
}

.filter-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.filter-btn {
  padding: var(--spacing-xs) var(--spacing-md);
  background: white;
  border: 2px solid var(--color-border);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: var(--border-radius);
  font-size: var(--fs-body);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

@media (max-width: 768px) {
  .pdf-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   CTA SECTIONS
   ======================================== */

.cta-title {
  color: var(--color-secondary);
  font-size: var(--fs-h1);
}

.cta-description {
  font-size: var(--fs-h3);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn-white {
  color: white;
  border-color: white;
}

.btn-white:hover {
  background-color: white;
  color: var(--color-primary);
}

/* ========================================
   BRANDS SECTION
   ======================================== */

.brands-list {
  text-align: center;
  font-size: 1.125rem;
  max-width: 800px;
  margin: 0 auto;
}

.brands-list p {
  margin-bottom: var(--spacing-md);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Link utilities */
.link-underline {
  text-decoration: underline;
}

/* Margin utilities */
.mt-1 {
  margin-top: var(--spacing-sm);
}

.mt-2 {
  margin-top: var(--spacing-md);
}

.mt-3 {
  margin-top: var(--spacing-lg);
}

.mb-1 {
  margin-bottom: var(--spacing-sm);
}

.mb-2 {
  margin-bottom: var(--spacing-md);
}

.mb-3 {
  margin-bottom: var(--spacing-lg);
}

/* Text utilities */
.text-center {
  text-align: center;
}

.text-light {
  color: var(--color-text-light);
}

/* Link utilities */
.link-underline {
  text-decoration: underline;
}

.link-accent {
  color: var(--color-accent);
  text-decoration: underline;
}

/* List utilities */
.list-none {
  list-style: none;
  padding: 0;
}

/* Display utilities */
.d-none {
  display: none;
}

.flex {
  display: flex;
}

.flex-gap-sm {
  display: flex;
  gap: var(--spacing-sm);
}

.flex-gap-md {
  display: flex;
  gap: var(--spacing-md);
}

/* Page-specific utilities */
.page-hero-full {
  min-height: 100vh;
}

.content-card-centered {
  max-width: 800px;
  margin: 0 auto;
}

.body-text {
  font-size: var(--fs-body);
  line-height: 1.8;
}

.body-text-light {
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--color-text-light);
}

.small-text-light {
  font-size: var(--fs-small);
  color: var(--color-text-light);
}

.link-accent-plain {
  color: var(--color-accent);
}

/* ========================================
   FLOATING ACTION BUTTONS
   ======================================== */

.floating-buttons {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 9998;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
}

.floating-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.floating-btn-phone {
  background: linear-gradient(135deg, #2980b9 0%, #1a5280 100%);
  color: white;
}

.floating-btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #1ea952 100%);
  color: white;
}

.floating-btn-email {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
}

.floating-btn span {
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .floating-buttons {
    bottom: 20px;
    padding: 10px 15px;
    gap: 12px;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}

/* ========================================
   GOOGLE MAP
   ======================================== */

.map-container {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: var(--spacing-xl);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .map-container {
    height: 350px;
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

*:focus-visible {
  outline: 3px solid var(--color-accent-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}