/* CSS Custom Properties */
:root {
  --color-primary: #b87c4b; /* Rame moderno caldo, più luminoso */
  --color-primary-hover: #a6693d;
  --color-secondary: #deb887; /* Beige caldo, più raffinato */
  --color-accent: #b0b0b0; /* Grigio accentato neutro, meno spento */
  --color-white: #ffffff;
  
  --color-gray-50: #f9fafb;
  --color-gray-100: #f4f4f5;
  --color-gray-200: #e4e4e7;
  --color-gray-300: #d4d4d8;
  --color-gray-400: #a1a1aa;
  --color-gray-500: #71717a;
  --color-gray-600: #52525b;
  --color-gray-700: #3f3f46;
  --color-gray-800: #262626;
  --color-gray-900: #18181b;

  --color-black: #0a0a0a;
  --color-anthracite: #1e1e1e;
  --color-anthracite-light: #2c2c2c;

  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container-max-width: 1200px;
  --section-padding: 5rem 0;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  --transition: all 0.5s ease;
}

/* Reset e Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--color-white);
  background: linear-gradient(to bottom, var(--color-anthracite), var(--color-anthracite-light), #1a1a1a);
  min-height: 100vh;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

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

h2 {
  color: var(--color-primary);
}

p {
  margin-bottom: 1rem;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background:#161616;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-gray-800);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.logo-img {
  height: 80px;
  filter: brightness(0) invert(1);
}

.logo-text {
  display: none;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--color-gray-400);
  margin: 0;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--color-gray-300);
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--color-secondary);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-white);
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--color-gray-200);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background: var(--color-gray-900);
  border-color: var(--color-gray-500);
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Sections */
.section {
  background: var(--color-anthracite);
  position: relative;
  padding: var(--section-padding);
}

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-content-policy {
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section-title-white {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-black);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--color-gray-100);
  margin-bottom: 2rem;
}

.section-subtitle-white {
  font-size: 1.25rem;
  color: var(--color-gray-800);
  margin-bottom: 2rem;
}

.section-text {
  font-size: 1.125rem;
  color: var(--color-gray-400);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.section-text-white {
  font-size: 1.125rem;
  color: var(--color-gray-800);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.section-text-titolo-white {
  font-size: 1.125rem;
  color: var(--color-gray-800);
  margin-bottom: 0.3rem;
  line-height: 1.7;
}

/* Hero Section */
.hero {
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color:#000;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: url("images/hooded-figure.jpeg") center / cover no-repeat;
  opacity: 1;
  z-index: 1;
  mask: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0) 100%);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-block;
  background: rgba(204, 204, 204, 0.171);
  color: va(--color-gray-300);
  border: 1px solid rgba(168, 168, 168, 0.171);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  color: var(--color-gray-300);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--color-white);
  font-weight: 600;
  margin-bottom: 3rem;
}

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

/* Highlight */
.highlight {
  color: var(--color-accent);
}

/* Mission Card */
.mission-card {
  background: rgba(34,34,34,0.85);
  border: 1px solid var(--color-gray-700);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin-top: 3rem;
}

.mission-title {
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.mission-text {
  font-size: 1.125rem;
  color: var(--color-gray-100);
  font-style: italic;
  margin: 0;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: rgba(38, 38, 38, 0.2);
  border: 1px solid var(--color-gray-700);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  background: rgba(38, 38, 38, 0.8);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-icon i,
.target-icon i,
.email-icon i {
  font-size: 3rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.target-icon i {
  font-size: 2rem;
  color: var(--color-secondary);
}

.email-icon i {
  font-size: 1.5rem;
  color: var(--color-accent);
}

.service-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--color-gray-400);
  font-size: 0.875rem;
  margin: 0;
}

/* Method Steps */
.method-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.method-step {
  background: rgba(38, 38, 38, 0.8);
  border: 1px solid var(--color-gray-700);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  min-width: 80px;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.step-desc {
  color: var(--color-gray-300);
  line-height: 1.6;
  margin: 0;
}

/* Outreach Grid */
.outreach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.outreach-phase {
  background: rgba(34,34,34,0.85);
  border: 1px solid var(--color-gray-700);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
}

.phase-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.phase-title {
  color: var(--color-gray-100);
  font-weight: 600;
  margin: 0;
}

.outreach-features {
  text-align: center;
  color: var(--color-gray-300);
}

.outreach-features p {
  margin-bottom: 0.5rem;
}

.outreach-features-white {
  text-align: center;
  color: var(--color-gray-900);
}

/* Target Grid */
.target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.target-card {
  background: rgba(38, 38, 38, 0.2);
  border: 1px solid var(--color-gray-700);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.target-card:hover {
  background: rgba(38, 38, 38, 0.8);
}

.target-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.target-title {
  color: var(--color-white);
  font-weight: 600;
  margin: 0;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: rgba(38, 38, 38, 0.5);
  border: 1px solid var(--color-gray-700);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
}

.stars {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.stars i {
  color: #ffd700;
  margin-right: 0.25rem;
  font-size: 1.25rem;
}

.testimonial-text {
  color: var(--color-gray-300);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.testimonial-text::before {
  content: '"';
}

.testimonial-text::after {
  content: '"';
}

.author-name {
  color: var(--color-white);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.author-role {
  color: var(--color-accent);
  font-size: 0.875rem;
  margin: 0;
}

/* Contact */
.contact-card {
  background: rgba(48, 48, 48, 0.99);
  border: 1px solid var(--color-gray-700);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.email-text {
  font-size: 1.25rem;
  color: var(--color-white);
}

.contact-company {
  color: var(--color-gray-400);
  margin-bottom: 2rem;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Footer */
.footer {
  background: var(--color-gray-900);
  border-top: 1px solid var(--color-gray-800);
  padding: 3rem 0;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 80px;
  filter: brightness(0) invert(1);
}

.footer-logo-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

.footer-logo-subtitle {
  font-size: 0.75rem;
  color: var(--color-gray-400);
  margin: 0;
}

.footer-title {
  color: var(--color-white);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  color: var(--color-gray-400);
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--color-secondary);
}

.footer-contact {
  color: var(--color-gray-400);
  font-size: 0.875rem;
}

.footer-contact p {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--color-gray-800);
  padding-top: 2rem;
  text-align: center;
  color: var(--color-gray-400);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-gray-900);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid var(--color-gray-800);
  }

  .nav-open {
    display: flex;
  }

  .mobile-menu-toggle {
    display: flex;
  }

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

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

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .method-step {
    flex-direction: column;
    text-align: center;
  }

  .step-number {
    min-width: auto;
  }

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

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

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

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

  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero {
    padding: 3rem 0;
  }

  .service-card,
  .method-step,
  .testimonial-card,
  .target-card,
  .outreach-phase,
  .contact-card,
  .mission-card {
    padding: 1.5rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card,
.method-step,
.testimonial-card,
.target-card,
.outreach-phase {
  animation: fadeInUp 0.6s ease-out;
}

/* Animazione gradiente */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Stile base per h1 con gradiente animato */
.animated-gradient-text {
  background: linear-gradient(270deg, #ffffff, #d0d0d0, #a0a0a0, #737373, #a0a0a0, #d0d0d0, #ffffff);
  background-size: 600% 600%;
  animation: gradient-shift 8s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.animated-text-container {
  padding: 0px;
  margin: 0;
  text-align: center;
}

/* Smooth scrolling fallback */
html {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus,
.footer-link:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .header,
  .footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .section-alt {
    background: none;
  }
}

#chi-siamo {
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

#chi-siamo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("images/white-bg.jpg") center / cover no-repeat;
  opacity: 0.5;
  z-index: 1;
}

#chi-siamo .container {
  position: relative;
  z-index: 2;
}


#piano {
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

#piano::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("images/white-abstract.jpg") center / cover no-repeat;
  opacity: 0.3;
  z-index: 1;
}

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

#testimonianze {
  background: var(--color-anthracite-light);
  position: relative;
  overflow: hidden;
}

#testimonianze::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: url("images/lifestyle-scene.jpeg") center / cover no-repeat;
  opacity: 0.12;
  z-index: 1;
  mask: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0) 100%);
}

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

#servizi {
  background: var(--color-anthracite);
  position: relative;
  overflow: hidden;
}

#servizi::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url("images/stone-bg.png") center / cover no-repeat;
  opacity: 0.4;
  z-index: 1;
  mask: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0) 100%);
}

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

#metodo {
  background: var(--color-anthracite);
  position: relative;
  overflow: hidden;
}

#metodo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 70%;
  height: 100%;
  background: url("images/img-stone.jpg") center / cover no-repeat;
  opacity: 0.1;
  z-index: 1;
  mask: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0) 100%);
}

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

#pubblico {
  background: var(--color-anthracite);
  position: relative;
  overflow: hidden;
}

#pubblico::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url("images/bg-snake.jpg") center / cover no-repeat;
  opacity: 0.1;
  z-index: 1;
  mask: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 10%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 10%, rgba(0, 0, 0, 0) 100%);
}

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

#contatti {
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

#contatti::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("images/white-abstract.jpg") center / cover no-repeat;
  opacity: 0.3;
  z-index: 1;
}

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