/* CSS Variables */
:root {
  --primary: #000000;
  --primary-foreground: #FFFFFF;
  --secondary: #8b5cf6;
  --secondary-foreground: #FFFFFF;
  --accent: #16a34a;
  --accent-foreground: #111827;
  --background: #FFFFFF;
  --foreground: #111827;
  --card: #FFFFFF;
  --card-foreground: #111827;
  --border: #E5E7EB;
  --input: #E5E7EB;
  --ring: #000000;
  --muted: #F3F4F6;
  --muted-foreground: #6B7280;
  --font-family: 'Inter', sans-serif;
  --radius: 1rem;
}

/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color 0.2s ease;
}

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

/* Utility Classes */
.hidden {
  display: none !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--muted-foreground); }
.text-center { text-align: center; }
.text-lg { font-size: 1.125rem; }
.text-sm { font-size: 0.875rem; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.mb-4 { margin-bottom: 1rem; }

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

/* Button Styles */
.btn-primary,
.btn-outline,
.btn-outline-white {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 1rem;
  border-bottom: 3px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}

.btn-primary:hover {
  background: var(--secondary);
  border-bottom: 3px solid var(--secondary);
  color: var(--secondary-foreground);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  border-bottom: 3px solid var(--secondary);
}

.btn-outline-white {
  background: transparent;
  color: var(--primary-foreground);
  border: 2px solid var(--primary-foreground);
  border-bottom: 3px solid var(--primary-foreground);
}

.btn-outline-white:hover {
  background: var(--primary-foreground);
  color: var(--primary);
  border-bottom: 3px solid var(--secondary);
}

/* Form Styles */
.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--input);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s ease;
  background: var(--background);
  color: var(--foreground);
}

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

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

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

/* Success Message */
.success-message {
  background: var(--muted);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}

.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.success-icon {
  width: 3rem;
  height: 3rem;
  color: var(--accent);
}

.success-message h3 {
  color: var(--accent);
  margin: 0;
}

.success-message p {
  margin: 0;
  color: var(--foreground);
}

/* Icon Styles */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: var(--muted);
  margin-bottom: 1rem;
}

.icon-md { width: 1.5rem; height: 1.5rem; }
.icon-lg { width: 2rem; height: 2rem; }
.service-icon-large { width: 3rem; height: 3rem; }
.avatar-large { width: 4rem; height: 4rem; }
.avatar-icon { width: 2rem; height: 2rem; }
.partner-icon { width: 1.5rem; height: 1.5rem; }
.feature-icon { width: 1rem; height: 1rem; }
.pricing-icon { width: 1rem; height: 1rem; }

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-img {
  height: 2.5rem;
  width: auto;
}

.tremandoli-top_mobile-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--primary);
}

.tremandoli-top_mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--background);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tremandoli-top_mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.tremandoli-top_mobile-menu-content a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  padding: 1rem;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.tremandoli-top_mobile-menu-content a:hover {
  border-bottom: 3px solid var(--primary);
  color: var(--secondary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #111;
  color: #fff;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  .4;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  .9;
}

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

@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1.125rem; }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* Sections */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.page-header {
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* Partner Logos */
.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.logo-item {
  .7;
  transition: opacity 0.2s ease;
}

.logo-item:hover {
  opacity: 1;
}

.partner-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  border-left: 4px solid var(--primary);
}

.partner-badge span {
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

/* FAQ Preview */
.faq-preview {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.faq-item {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  border-left: 4px solid var(--primary);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.faq-question h3 {
  margin: 0;
}

.faq-answer {
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Testimonials */
.testimonials {
  background: var(--muted);
}

.testimonial-large {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-large blockquote {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.testimonial-large blockquote p {
  margin: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.author-avatar {
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-info {
  text-align: left;
}

.author-info cite {
  font-style: normal;
  font-weight: 600;
  display: block;
}

.author-info span {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Team Preview */
.team-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-member {
  text-align: center;
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  border-left: 4px solid var(--primary);
}

.member-avatar {
  width: 4rem;
  height: 4rem;
  background: var(--muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
}

.team-member h3 {
  margin-bottom: 0.5rem;
}

.team-member p {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
}

.member-bio {
  font-size: 0.875rem;
  line-height: 1.5;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: var(--background);
}

.cta-card {
  background: var(--card);
  padding: 3rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* Services Page */
.service-detail {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.service-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  background: var(--muted);
  border-radius: var(--radius);
  color: var(--primary);
}

.service-info h2 {
  margin-bottom: 1rem;
}

.service-info p {
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.service-features {
  list-style: none;
  margin-bottom: 2rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.service-features .feature-icon {
  color: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .service-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
}

/* Pricing */
.pricing-section {
  padding: 5rem 0;
  background: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  border-left: 4px solid var(--primary);
  text-align: center;
}

.pricing-card.featured {
  border-left: 4px solid var(--secondary);
  transform: scale(1.05);
}

.pricing-header {
  margin-bottom: 2rem;
}

.pricing-header h3 {
  margin-bottom: 0.5rem;
}

.pricing-header p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.pricing-features ul {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.pricing-features .pricing-icon {
  color: var(--accent);
  flex-shrink: 0;
}

/* About Page */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.value-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  border-left: 4px solid var(--primary);
}

.value-card h3 {
  margin-bottom: 1rem;
}

.value-card p {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.member-role {
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 1rem !important;
}

.member-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.expertise-tag {
  background: var(--muted);
  color: var(--foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.achievements {
  margin-top: 3rem;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.achievement-item {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  border-left: 4px solid var(--primary);
  text-align: center;
}

.achievement-item h3 {
  margin-bottom: 1rem;
}

.achievement-item p {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Contact Page */
.contact-section {
  padding: 5rem 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tremandoli-top_contact-form-wrapper h2 {
  margin-bottom: 1rem;
}

.tremandoli-top_contact-form-wrapper > p {
  margin-bottom: 2rem;
  color: var(--muted-foreground);
}

.contact-info-wrapper h2 {
  margin-bottom: 1rem;
}

.contact-info-wrapper > p {
  margin-bottom: 2rem;
  color: var(--muted-foreground);
}

.contact-info-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

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

.contact-info-item .icon-box {
  margin-bottom: 0;
  flex-shrink: 0;
}

.contact-details h3 {
  margin-bottom: 0.5rem;
}

.contact-details p {
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
}

.contact-details a {
  color: var(--primary);
  text-decoration: underline;
}

.contact-note {
  font-size: 0.875rem;
  font-style: italic;
}

.company-details {
  background: var(--muted);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.company-details h3 {
  margin-bottom: 1rem;
}

.company-details .company-info p {
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.response-time {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

.response-time .icon-box {
  margin-bottom: 0;
  flex-shrink: 0;
}

.response-time h3 {
  margin-bottom: 0.5rem;
}

.response-time p {
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Legal Pages */
.legal-content {
  padding: 3rem 0;
}

.legal-document {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.legal-document h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.legal-document h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}

.legal-document ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.legal-document li {
  margin-bottom: 0.5rem;
}

.legal-document a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-table {
  overflow-x: auto;
  margin: 2rem 0;
}

.cookie-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cookie-table th,
.cookie-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cookie-table th {
  background: var(--muted);
  font-weight: 600;
  color: var(--foreground);
}

.cookie-table td {
  color: var(--muted-foreground);
}

/* Footer */
.footer {
  background: #111827;
  color: #f9fafb;
  padding: 3rem 0 1rem;
}

.footer a {
  color: #d1d5db;
}

.footer a:hover {
  color: #ffffff;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h3,
.footer-column h4 {
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.company-info p {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.legal-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.legal-links a {
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-legal {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Cookie Banner & Modal */
.tremandoli-top_cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  z-index: 10000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.tremandoli-top_cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.tremandoli-top_cookie-banner-text {
  flex: 1;
}

.tremandoli-top_cookie-banner-text p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.tremandoli-top_cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tremandoli-top_cookie-banner-actions button {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

.tremandoli-top_cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.tremandoli-top_cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.tremandoli-top_cookie-modal-content {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.cookie-toggles {
  margin-bottom: 2rem;
}

.tremandoli-top_cookie-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.tremandoli-top_cookie-toggle-row:last-child {
  border-bottom: none;
}

.tremandoli-top_cookie-toggle-row input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

.tremandoli-top_cookie-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .tremandoli-top_cookie-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .tremandoli-top_cookie-banner-actions {
    justify-content: center;
  }
  
  .tremandoli-top_cookie-modal-actions {
    flex-direction: column;
  }
}

/* Animation Classes */
.animate-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Apply animation to specific card elements only */
.faq-item,
.team-member,
.value-card,
.achievement-item,
.pricing-card,
.service-card,
.partner-badge {
  
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.faq-item.animate-in,
.team-member.animate-in,
.value-card.animate-in,
.achievement-item.animate-in,
.pricing-card.animate-in,
.service-card.animate-in,
.partner-badge.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  .section { padding: 3rem 0; }
  .page-header { padding: 2rem 0; }
  
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  
  .cta-card { padding: 2rem; }
  
  .tremandoli-top_cookie-modal-content { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 0.75rem; }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  
  .section { padding: 2rem 0; }
  .page-header { padding: 1.5rem 0; }
  
  .hero-title { font-size: 1.75rem; }
  .hero-content { padding: 1rem; }
  
  .cta-card { padding: 1.5rem; }
  
  .btn-primary,
  .btn-outline,
  .btn-outline-white {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

/* === BASELINE SAFETY CSS (injected by engine) === */

/* Ensure .hidden works consistently even with ID-specific overrides */
.hidden { display: none !important; }

/* Prevent content overflow breaking layout */
img, video, iframe { max-width: 100%; height: auto; }
* { box-sizing: border-box; }

/* Ensure container has responsive padding */
.container { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }

/* Prevent flex/grid children from overflowing */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive grid fallbacks */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Ensure forms don't break layout */
.form-input, input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  max-width: 100%;
}

/* Success message styling */
.success-message {
  margin-top: 1rem;
  padding: 1rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 0.5rem;
  color: #065f46;
  text-align: center;
}

/* Stacking context for hero sections — prevents z-index:-1 children from going behind the page */
.hero, .hero-section, .page-header, .cta, .cta-section { isolation: isolate; position: relative; }

/* Desktop nav injected by engine — show on desktop, hide on mobile */
.nav-menu { display: flex; align-items: center; gap: 1.5rem; }
.nav-menu .nav-link { text-decoration: none; color: var(--foreground, #1f2937); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-menu .nav-link:hover { color: var(--primary, #2563eb); }
@media (max-width: 768px) {
  .nav-menu { display: none !important; }
}

/* Fixed header body padding safety */
body { min-height: 100vh; }

/* Prevent long words breaking layout */
h1, h2, h3, h4, p, li, td, th { overflow-wrap: break-word; word-wrap: break-word; }

/* === END BASELINE SAFETY CSS === */

/* Cookie banner visibility rules */
#tremandoli-top_cookie-banner.hidden, #cookie-consent-banner.hidden { display: none !important; }
#tremandoli-top_cookie-banner:not(.hidden), #cookie-consent-banner:not(.hidden) { display: block !important; }
#tremandoli-top_cookie-modal.hidden { display: none !important; }
.hidden { display: none !important; }
