/* Local Font Face Definitions */

/* Outfit Font Definitions */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/outfit-latin-300-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/outfit-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/outfit-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/outfit-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/outfit-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/outfit-latin-800-normal.woff2') format('woff2');
}

/* Inter Font Definitions */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/inter-latin-300-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-latin-700-normal.woff2') format('woff2');
}

/* Reset & CSS Variables */
:root {
  /* Color Palette */
  --primary-color: #008080; /* Teal/Verde Petrolio */
  --primary-light: #00a8a8;
  --primary-dark: #005a5a;
  --primary-gradient: linear-gradient(135deg, #008080 0%, #004d4d 100%);
  --accent-color: #e0f2f1; /* Light Teal Tint */
  --text-dark: #1e293b; /* Dark Slate for high contrast reading */
  --text-muted: #64748b; /* Slate Gray */
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-dark: #0f172a;
  --border-color: #e2e8f0;
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout Constants */
  --header-height: 80px;
  --max-width: 1200px;
  --border-radius: 12px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

/* Teal underline for titles as requested by PDF design */
h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* For centered section titles */
.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

p {
  margin-bottom: 1rem;
}

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

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.section {
  padding: 100px 0;
}

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

/* Button & CTA styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(0, 128, 128, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 128, 128, 0.4);
}

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

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--bg-white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25d366;
  color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(241, 245, 249, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all var(--transition-normal);
}

header.scrolled {
  height: 70px;
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
}

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

.logo img {
  height: 50px;
  width: auto;
}

header.scrolled .logo img {
  height: 44px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-fast);
}

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

.nav-phone {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}

.nav-phone:hover {
  color: var(--primary-dark);
}

/* Mobile Toggle */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all var(--transition-normal);
  background-color: var(--text-dark);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  color: var(--bg-white);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(0, 128, 128, 0.4) 100%);
  z-index: 1;
}

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

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

.hero-tag {
  display: inline-block;
  background-color: rgba(224, 242, 241, 0.15);
  color: var(--accent-color);
  padding: 6px 16px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--bg-white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-phone-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--bg-white);
  padding: 10px 16px;
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  transition: all var(--transition-fast);
}

.hero-phone-cta:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Services / Features Section */
.section-subtitle {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-desc {
  max-width: 650px;
  margin: 0 auto 60px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Contacts Section */
.contacts-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-card {
  background-color: var(--bg-white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-text h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-item-text p, .contact-item-text a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 100%;
  min-height: 350px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

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

/* Contact Form */
.contact-form-card {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: var(--bg-light);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(0, 128, 128, 0.1);
}

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

.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

.form-privacy input[type="checkbox"] {
  margin-top: 4px;
  accent-color: var(--primary-color);
}

.form-privacy label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-privacy label a {
  color: var(--primary-color);
  text-decoration: underline;
}

.form-privacy label a:hover {
  color: var(--primary-dark);
}

/* Success modal popup / status feedback */
.form-status {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: none;
  font-weight: 500;
}

.form-status.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  display: block;
}

.form-status.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

/* Footer styling */
footer {
  background-color: var(--bg-dark);
  color: #94a3b8;
  padding: 60px 0 30px;
  border-top: 4px solid var(--primary-color);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 50px;
  width: auto;
  margin-bottom: 20px;
  filter: invert(1);
  mix-blend-mode: screen;
}

.footer-company-desc {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-title {
  color: var(--bg-white);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-contacts-list {
  list-style: none;
}

.footer-contacts-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-contacts-list li i {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* WhatsApp mobile-only constraint */
.whatsapp-only-mobile {
  display: none !important;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--bg-dark);
  color: var(--bg-white);
  padding: 12px 24px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Cookie Banner & Modals Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 2100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-content {
  background-color: var(--bg-white);
  margin: 60px auto;
  padding: 40px;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 800px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalFadeIn 0.3s ease;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.modal-content-small {
  max-width: 500px;
}

.modal-body {
  overflow-y: auto;
  padding-right: 8px;
}

.close-modal {
  position: absolute;
  right: 24px;
  top: 20px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
  z-index: 10;
}

.close-modal:hover {
  color: var(--text-dark);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
  z-index: 1900;
  padding: 24px 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cookie-text h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--text-dark);
  font-weight: 700;
}

.cookie-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-recall-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1800;
  background-color: var(--bg-white);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 10px 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.cookie-recall-btn:hover {
  background-color: var(--primary-color);
  color: var(--bg-white);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Switch toggles */
.pref-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.pref-info h4 {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.pref-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

input:disabled + .slider {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Custom placeholder inside the maps container when marketing cookies are rejected */
.map-blocked-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 30px;
  background-color: var(--bg-light);
  color: var(--text-muted);
  text-align: center;
}

.map-blocked-placeholder i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.map-blocked-placeholder p {
  font-size: 0.9rem;
  margin-bottom: 16px;
  max-width: 320px;
}

/* Responsive adjustments for cookie banner */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cookie-actions {
    width: 100%;
    justify-content: space-between;
  }
  .cookie-actions .btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 0.85rem;
  }
}

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

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  
  .section {
    padding: 60px 0;
  }

  header.scrolled {
    height: 70px;
  }

  /* Hamburger Menu Toggle */
  .hamburger {
    display: block;
    z-index: 1001;
  }

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

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

  .hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-normal);
    z-index: 999;
    gap: 24px;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-phone {
    margin-top: 10px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-desc {
    font-size: 1.05rem;
  }

  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .contact-item.whatsapp-only-mobile {
    display: flex !important;
  }
}
