@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

/* CSS Custom Properties - Industrial Teal & Steel palette */
:root {
  --background: hsl(210, 20%, 98%);
  --foreground: hsl(210, 30%, 15%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(210, 30%, 15%);
  --primary: hsl(195, 70%, 30%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(210, 15%, 92%);
  --secondary-foreground: hsl(210, 30%, 20%);
  --muted: hsl(210, 15%, 95%);
  --muted-foreground: hsl(210, 10%, 45%);
  --accent: hsl(195, 80%, 45%);
  --accent-foreground: hsl(0, 0%, 100%);
  --border: hsl(210, 20%, 88%);
  --steel: hsl(210, 15%, 60%);
  --steel-dark: hsl(210, 20%, 25%);
  --navy: hsl(210, 50%, 15%);
  --radius: 0.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

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

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

/* Container */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Top Bar */
.top-bar {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
}

.top-bar a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.top-bar a:hover {
  opacity: 0.8;
}

/* Header */
.header {
  background-color: var(--card);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  min-height: 84px;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  order: 1;
  flex-shrink: 0;
  position: fixed;
  left: 20px;
  z-index: 2;
}

.header-logo img {
  height: 3.9rem;
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
  align-items: center;
  order: 2;
  gap: 2.5rem;
  margin-left: auto;
  position: relative;
  z-index: 2;
}


.nav-link {
  color: var(--foreground);
  opacity: 0.8;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: color 0.2s, opacity 0.2s;
}

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

/* CTA Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--radius);
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--accent);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.header-cta {
  display: none;
  position: relative;
  z-index: 2;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: block;
  order: 2;
  margin-left: auto;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--foreground);
}

/* Mobile Navigation */
.nav-mobile {
  display: none;
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding-bottom: 1rem;
}

.nav-mobile.active {
  display: block;
}

.nav-mobile .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
}

.nav-mobile .nav-link {
  padding: 0.5rem 0;
}

.nav-mobile .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    hsla(195, 70%, 25%, 0.85) 0%,
    hsla(195, 60%, 30%, 0.5) 50%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 5rem 0;
  max-width: 48rem;
}

.hero h1 {
  font-size: 2.25rem;
  color: var(--primary-foreground);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-style: italic;
  color: var(--primary-foreground);
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-button-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary-foreground);
  color: var(--primary-foreground);
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.3s;
}

.cta-button-outline:hover {
  background-color: var(--primary-foreground);
  color: var(--primary);
}

/* Hero Badges */
.hero-badges {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.hero-badges img:first-child {
  height: 3rem;
}

.hero-badges .divider {
  width: 1px;
  height: 3rem;
  background-color: var(--border);
}

.hero-badges img:last-child {
  height: 3.5rem;
}

/* Section Base */
.section {
  padding: 5rem 0;
}

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

.section-title {
  font-size: 1.5rem;
  color: var(--foreground);
  margin-bottom: 1rem;
  text-align: center;
}

.section-divider {
  width: 6rem;
  height: 0.25rem;
  background-color: var(--accent);
  margin: 0 auto;
}

/* Services Section */
.services-section {
  position: relative;
  padding: 5rem 0;
}

.services-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.9);
}

.services-section .container {
  position: relative;
  z-index: 10;
}

.services-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background-color: var(--card);
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.service-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.service-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.service-card li::before {
  content: "•";
  color: var(--accent);
  font-weight: 700;
  margin-top: 0.125rem;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  transition: color 0.2s, gap 0.2s;
  margin-top: auto;
}

.service-card-link:hover {
  color: var(--accent);
  gap: 0.75rem;
}

/* Quality Sections */
.quality-section {
  padding: 5rem 0;
}

.quality-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.quality-content h2 {
  font-size: 1.5rem;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.quality-divider {
  width: 6rem;
  height: 0.25rem;
  background-color: var(--accent);
  margin-bottom: 2rem;
}

.quality-content p {
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.quality-content strong {
  color: var(--foreground);
}

.quality-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.quality-image-compact {
  display: flex;
  justify-content: center;
}

.quality-image-compact img {
  width: 100%;
  max-width: 420px;
  object-fit: cover;
}

/* Financing Section */
.financing-section {
  padding: 4rem 0;
  background-color: var(--secondary);
  text-align: center;
}

.financing-section h2 {
  font-size: 1.25rem;
  color: var(--foreground);
  margin-bottom: 2rem;
}

.financing-logos {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.financing-section h3 {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.financing-section h4 {
  font-size: 1.25rem;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.financing-section p {
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.8;
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background-color: var(--steel-dark);
  color: var(--primary-foreground);
}

.contact-section .section-title {
  color: var(--primary-foreground);
}

.contact-section .section-divider {
  margin-bottom: 3rem;
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

.contact-intro {
  font-size: 1.125rem;
  color: var(--primary-foreground);
  opacity: 0.8;
  line-height: 1.8;
  margin-bottom: 2rem;
}

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

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

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
}

.contact-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
  color: var(--primary-foreground);
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}

.contact-item a:hover {
  opacity: 1;
  color: var(--accent);
}

.contact-item .small {
  font-size: 0.875rem;
  opacity: 0.5;
  margin-top: 0.25rem;
}

/* Contact Info Cards (Contatti page) */
.contact-info-grid {
  display: grid;
  gap: 1.5rem;
}

.contact-info-card {
  background-color: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
}

.contact-info-card h3 {
  font-size: 1rem;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.contact-info-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.contact-info-item a {
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.contact-info-item a:hover {
  color: var(--primary);
}

/* Map Section */
.map-section {
  height: 400px;
  background-color: var(--secondary);
}

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

/* CTA Section */
.cta-section {
  position: relative;
  padding: 8rem 0;
}

.cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-attachment: fixed;
}

.cta-section .container {
  position: relative;
  z-index: 10;
}

.cta-box {
  max-width: 28rem;
  background-color: rgba(23, 78, 90, 0.95);
  backdrop-filter: blur(4px);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.cta-box p {
  font-size: 1.125rem;
  color: var(--primary-foreground);
  text-align: center;
  margin-bottom: 1.5rem;
}

.cta-box .cta-button-outline {
  width: 100%;
  justify-content: center;
}

/* Footer */
.footer {
  background-color: var(--navy);
  color: var(--primary-foreground);
  padding: 2rem 0;
}

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

.footer-logo img {
  height: 3rem;
}

.footer-copyright {
  color: var(--primary-foreground);
  opacity: 0.6;
  font-size: 0.875rem;
}

.footer-copyright p {
  margin-bottom: 0.25rem;
}

.footer-privacy button {
  background: none;
  border: none;
  color: var(--primary-foreground);
  opacity: 0.6;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.2s, opacity 0.2s;
}

.footer-privacy button:hover {
  opacity: 1;
  color: var(--accent);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background-color: var(--card);
  border-radius: var(--radius);
  max-width: 56rem;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.modal-close svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--muted-foreground);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.modal-body h3 {
  font-size: 1rem;
  color: var(--foreground);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal-body h4 {
  font-size: 0.875rem;
  color: var(--foreground);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.modal-body p {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.modal-body ul {
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
}

.modal-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* SVG Icons */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Animations */
.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (min-width: 640px) {
  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
    .financing-logos {
        max-width: 20rem;
        margin: 0 auto 2.5rem;
    }
       
}

@media (min-width: 768px) {
    
  
        
    
  .header .container {
    min-height: 100px;
    gap: 2rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .header-logo img {
    height: 4.75rem;
  }

  .nav-desktop {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.875rem;
  }
  
  .section-title {
    font-size: 1.875rem;
  }
  
  .quality-content h2 {
    font-size: 1.875rem;
  }
  
  .footer .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  
  .footer-copyright {
    text-align: left;
  }
  
  .footer-privacy {
    display: flex;
    justify-content: flex-end;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.75rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .quality-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quality-image-compact {
    justify-content: flex-end;
  }

  .quality-image-compact img {
    width: 60%;
    max-width: 360px;
  }
  
  .quality-grid.reverse .quality-image {
    order: -1;
  }
  
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .quality-content h2 {
    font-size: 1.875rem;
  }
  
  .cta-section {
    padding: 10rem 0;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-auto {
  margin-top: auto;
}

/* Form Styles */
.form-card {
  background-color: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
}

.form-card h3 {
  font-size: 1.25rem;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--foreground);
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 78, 90, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted-foreground);
}

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

.form-submit {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-foreground);
  background-color: var(--primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.form-submit:hover {
  background-color: var(--accent);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.form-message.success {
  background-color: hsl(142, 76%, 95%);
  color: hsl(142, 76%, 30%);
  border: 1px solid hsl(142, 76%, 80%);
}

.form-message.error {
  background-color: hsl(0, 76%, 95%);
  color: hsl(0, 76%, 30%);
  border: 1px solid hsl(0, 76%, 80%);
}

.form-message.hidden {
  display: none;
}

/* Dark contact form (for homepage) */
.contact-form-dark {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form-dark h3 {
  font-size: 1.25rem;
  color: var(--primary-foreground);
  margin-bottom: 1.5rem;
}

.contact-form-dark .form-label {
  color: var(--primary-foreground);
}

.contact-form-dark .form-input,
.contact-form-dark .form-textarea {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--primary-foreground);
}

.contact-form-dark .form-input::placeholder,
.contact-form-dark .form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.contact-form-dark .form-input:focus,
.contact-form-dark .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.contact-form-dark .form-submit {
  background-color: var(--accent);
}

.contact-form-dark .form-submit:hover {
  background-color: hsl(195, 80%, 35%);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
