/* ===== VARIABILI CSS GLOBALI ===== */
:root {
  /* Colori Brand */
  --primary-orange: #ee7d0d;
  --secondary-orange: #f68e26;
  --tertiary-orange: #f99d42;
  --accent-orange: #f7941d;

  /* Colori Neutri */
  --white: #ffffff;
  --black: #000000;
  --light-cream: #faf2ea;
  --light-gray: #f5f5f7;
  --gray: #68686e;

  /* Typography */
  --font-primary: "Cinzel", serif;
  --font-secondary: "Lato", sans-serif;

  /* Spaziature */
  --section-padding: 5rem 0;
  --container-padding: 1.5rem;

  /* Ombre e effetti */
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* ===== RESET E BASE ===== */
* {
  box-sizing: border-box;
}

.ff-cinzel {
  font-family: var(--font-primary) !important;
}
.ff-lato {
  font-family: var(--font-secondary) !important;
}

.f-size-18 {
  font-size: 18px !important;
}

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

/* ===== NAVIGATION ===== */
.navbar {
  padding-left: 2rem;
  box-shadow: var(--box-shadow);
  z-index: 1000;
  padding-bottom: 0;
  padding-top: 0;
}

.navbar-scrolled {
  padding-left: 2rem;
  transition: var(--transition);
}

.navbar-brand img {
  height: 65px;
  width: auto;
  padding: 6px;
}

.navbar-nav .nav-link {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 16px;
  color: var(--black) !important;
  transition: var(--transition);
  background-color: #faf2ea;
  margin: 0 2px;
  padding-inline: 3rem !important;
  border-radius: 0;
  height: 75px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-orange) !important;
  background-color: #faf2ea;
}

.dropdown-menu {
  border: none;
  box-shadow: var(--box-shadow);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-item img {
  width: 20px;
  height: auto;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: 1;
  will-change: transform;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    271deg,
    rgba(248, 189, 145, 0.4) -5.42%,
    rgba(238, 125, 13, 0.4) 78.83%
  );
  background-blend-mode: multiply;
  z-index: 2;
}
/* Filtro stile "moltiplica" Photoshop su overlay hero internal */
/* Collega direttamente all'elemento Figma: overlay hero internal */
.hero-overlay.internal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(238, 125, 13, 1);
  mix-blend-mode: multiply; /* Applica il blending "moltiplica" */
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--white);
  padding: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  width: 100%;
  text-align: left;
}

.hero-title {
  font-family: var(--font-primary);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.btn-hero {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}

.internal-hero {
  height: 500px;
  margin-top: 60px;
}
.internal-hero .hero-overlay {
  background: rgba(255, 255, 255, 0.75);
}

.internal-hero .hero-content {
  text-align: center;
  text-shadow: none;
}
.internal-hero .hero-content .hero-title {
  font-size: 5rem;
  color: #000000;
}

.btn-hero:hover {
  background: var(--white);
  color: var(--primary-orange);
  text-decoration: none;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: var(--font-primary);
  font-size: 3.125rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--black);
}

.section-title-center {
  font-family: var(--font-primary);
  font-size: 3.125rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 3rem;
  color: var(--primary-orange);
  text-align: center;
}

.section-title-start {
  font-family: var(--font-primary);
  font-size: 3.125rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--primary-orange);
  text-align: left;
}

.approach-title {
  color: var(--accent-orange);
}

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: var(--section-padding);
  background: var(--white);
}

.about-text {
  font-size: 1.125rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  text-align: justify;
}

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

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  padding: var(--section-padding);
  background: var(--white);
}

.service-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  cursor: pointer;
}

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

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

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  mix-blend-mode: multiply;
  transition: var(--transition);
}

.service-card.service-marchi {
    height: 100%;
    max-height: 430px;
    overflow: hidden;
}

.service-marchi .service-overlay {
  background: var(--primary-orange);
}

.service-brevetti .service-overlay {
  background: var(--secondary-orange);
}

.service-design .service-overlay {
  background: var(--tertiary-orange);
}

.service-diritto .service-overlay {
  background: var(--secondary-orange);
}

.service-monitoraggio .service-overlay {
  background: var(--tertiary-orange);
}

.service-legali .service-overlay {
  background: var(--primary-orange);
}

/* Valori Section Overlays */
.service-professionalita .service-overlay {
  background: var(--primary-orange);
}

.service-proattivita .service-overlay {
  background: var(--secondary-orange);
}

.service-creativita .service-overlay {
  background: var(--tertiary-orange);
}

/* Service Description Text */
.service-description {
  color: var(--white);
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 1rem;
  text-align: left;
}

.service-content {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
}

.service-content h3 {
  font-family: var(--font-primary);
  font-size: 2.1875rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

.service-link {
  color: var(--white);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.service-link:hover {
  color: var(--white);
  text-decoration: none;
  transform: translateX(5px);
}

.service-link img {
  width: 23px;
  height: 17px;
}

/* ===== APPROACH SECTION ===== */
.approach-section {
  padding: var(--section-padding);
  background: var(--white);
}

.approach-content {
  max-width: 1157px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.5;
}

.approach-content p {
  margin-bottom: 1.5rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  padding: 5rem 0;
  height: 600px;
  overflow: hidden;
}

.cta-section-title {
  padding: 2rem;
  background-color: var(--secondary-orange);
  font-size: 50px;
}

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

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-orange);
  opacity: 0.2;
  mix-blend-mode: multiply;
  z-index: 2;
}

.cta-content {
  position: relative;
  z-index: 3;
  color: var(--white);
}

.cta-content h2 {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

.cta-arrow {
  width: 43px;
  height: 32px;
  filter: brightness(0) invert(1);
}

/* ===== WHY CHOOSE SECTION ===== */
.why-choose-section {
  margin: 5rem 0rem;
  padding: 3rem;
  background: var(--light-cream);
}

.why-choose-section.internal .section-title {
  font-family: var(--font-secondary);
}

.why-choose-text {
  font-size: 1.125rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  text-align: justify;
}

.why-choose-text p {
  margin-bottom: 1.5rem;
}

.why-choose-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ===== BUTTONS ===== */
.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--black);
  color: var(--black);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}

.btn-outline-dark:hover {
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  border-color: var(--black);
}

/* ===== FOOTER ===== */
.footer-section {
  background: var(--primary-orange);
  color: var(--white);
  padding: 1.5rem 0 1.5rem;
}

.footer-container {
    padding: 0 4rem;
}

.footer-logo {
  position: relative;
}

.footer-logo img {
  max-height: 60px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
}

.footer-logo img:first-child {
  max-height: 70px;
}

.footer-logo img:last-child {
  max-height: 55px;
  opacity: 0.8;
}

.footer-info h5 {
  font-family: var(--font-secondary);
  font-weight: 900;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.footer-info p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-info a {
  color: var(--white);
  text-decoration: underline;
}

.footer-info a:hover {
  color: var(--light-gray);
  text-decoration: underline;
}

.footer-menu ul {
  margin: 0;
  padding: 0;
}

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

.footer-menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
  text-transform: uppercase;
}

.footer-menu a:hover {
  color: var(--light-gray);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.2);
  margin: 2rem 0 1rem;
}

.footer-locations,
.footer-copyright {
  font-size: 0.75rem;
  margin: 0;
  color: var(--light-gray);
}

/* ===== UTILITY CLASSES ===== */
.text-justify {
  text-align: justify;
}

.min-vh-100 {
  min-height: 100vh;
}

.h-100 {
  height: 100%;
}

/* ===== HOVER EFFECTS ===== */
@keyframes bounce-grow {
  0% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.3);
  }
  40% {
    transform: scale(1.2);
  }
  60% {
    transform: scale(1.3);
  }
}

/* Effetto bounce e rimane grande finché hover */
.service-card .service-bg {
  transition: transform 0.3s cubic-bezier(0.4, 2, 0.3, 1);
}

.service-card:hover .service-bg {
  animation: bounce-grow 0.5s forwards;
  transform: scale(1.3);
  will-change: transform;
}

/* Quando non hover, torna normale */
.service-card:not(:hover) .service-bg {
  animation: none;
  transform: scale(1);
}

.about-image:hover img,
.why-choose-image:hover img {
  transform: scale(1.05);
  transition: var(--transition);
}

/* ===== SCROLL BEHAVIOR ===== */
html {
  scroll-behavior: smooth;
}

/* ===== FOCUS STATES ===== */
.btn:focus {
  outline: 2px solid var(--primary-orange);
  outline-offset: 2px;
}

.language-selector .nav-link {
  background: none;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(80px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

/* ===== LOADING STATES ===== */
.loading {
  overflow: hidden;
}

.loading .hero-section {
  opacity: 0;
}

/* ===== NAVBAR ADDITIONAL STYLES ===== */
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: 2px solid var(--primary-orange);
}

/* ===== FORM STYLES ===== */
.is-invalid {
  border-color: #dc3545;
}

.is-valid {
  border-color: #198754;
}

/* ===== NOTIFICATION STYLES ===== */
.notification {
  box-shadow: var(--box-shadow);
}

/* ===== AZIENDA PAGE STYLES ===== */
/* Studio Description Section */
.studio-description {
  background: var(--white);
  padding: 120px 0 !important;
}

.studio-text {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.5;
  text-align: center;
}

.studio-text p {
  margin-bottom: 1.5rem;
}

/* Parallax Image Section */
.parallax-image-section {
  position: relative;
  height: 280px;
  overflow: hidden;
  margin: 3rem 0;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  will-change: transform;
}

.parallax-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.parallax-img.header {
  width: 100%;
  height: 100%;
}

/* Sezione parallasse specifica per .internal */

.parallax-image-section.internal {
  position: relative;
  height: 100vh; /* Altezza viewport completa */
  min-height: 400px; /* Altezza minima per dispositivi piccoli */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Container per l'immagine di background solo per .internal */
.parallax-image-section.internal .parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%; /* Più alta della sezione per l'effetto parallasse */
  z-index: -1;
  will-change: transform; /* Ottimizzazione per le performance */
}

/* Immagine parallasse solo per .internal */
.parallax-image-section.internal .parallax-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, 0, 0); /* Accelerazione hardware */
  transition: transform 0.1s ease-out;
}

/* Responsive solo per .internal */
@media (max-width: 768px) {
  .parallax-image-section.internal {
    height: 60vh;
    min-height: 300px;
  }

  /* Disabilita parallasse su mobile per le performance */
  .parallax-image-section.internal .parallax-bg {
    height: 100%;
    position: absolute;
  }

  .parallax-image-section.internal .parallax-img {
    transform: none !important;
  }
}

/* Storia Section */
.storia-section {
  background: var(--white);
}

.section-subtitle {
  font-family: var(--font-primary);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--primary-orange);
  margin-bottom: 1.5rem;
}

.storia-years {
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.1em;
}

.storia-text {
  font-size: 1.125rem;
  line-height: 1.5;
  text-align: justify;
}

.storia-text p {
  margin-bottom: 1.5rem;
}

.storia-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Valori Section - Simple Cards without background images */
.valori-section {
  background: var(--light-cream);
  padding: 5rem 0;
}

.valori-title {
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
}

.valori-subtitle {
  font-family: var(--font-secondary);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--accent-orange);
  margin-bottom: 3rem;
}

.valori-description {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.5;
  margin-bottom: 3rem;
}

/* Simple Valore Cards - NO background images */
.valore-card-simple {
  background: var(--white);
  border-radius: 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  overflow: hidden;
}

.valore-card-simple:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.valore-header-simple {
  background: var(--primary-orange);
  color: var(--white);
  padding: 2rem 1.5rem;
  text-align: center;
}

.valore-header-simple h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.valore-content-simple {
  flex: 1;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
}

.valore-content-simple p {
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
  margin: 0;
}

/* Alternate colors for valori headers */
.valore-card-simple:nth-child(1) .valore-header-simple {
  background: var(--primary-orange);
}

.valore-card-simple:nth-child(2) .valore-header-simple {
  background: var(--secondary-orange);
}

.valore-card-simple:nth-child(3) .valore-header-simple {
  background: var(--tertiary-orange);
}

/* Partner Section */
.partner-section {
  background: var(--white);
}

.partner-text {
  font-size: 2.5rem;
  line-height: 1;
  text-align: justify;
  margin-bottom: 2rem;
  font-weight: 300;
}

.partner-text p {
  margin-bottom: 1.5rem;
}

.partner-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ===== SKIP TO CONTENT ===== */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-orange);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 4px;
}

.skip-to-content:focus {
  top: 6px;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== FOCUS IMPROVEMENTS ===== */
.service-card {
  cursor: pointer;
}

.service-card:focus {
  outline: 3px solid var(--primary-orange);
  outline-offset: 2px;
}

/* ===== BETTER CONTRAST ===== */
.hero-content {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.hero-content.internal {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
  top: 30%;
  color: #ffffff;
  font-weight: bolder;
}

.cta-content {
}

.studio-description .section-title-center {
  color: #000000;
}

.parallax-image-section.internal {
  height: 500px;
}

/* ===== ATTIVITÀ PAGE STYLES ===== */
/* Attività Section */
.attivita-section {
  background: var(--white);
  padding: 5rem 0;
}

.section-subtitle-center {
  font-family: var(--font-secondary);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--black);
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle-start {
  font-family: var(--font-secondary);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--accent-orange);
  text-align: left;
  text-transform: uppercase;
}

.section-subtitle-balck {
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 400;
  color: var(--black);
  text-align: left;
}

/* Attività Cards Grid */
.attivita-card {
  position: relative;
  height: 400px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

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

.attivita-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.attivita-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(238, 125, 13, 0.8) 100%
  );
  z-index: 2;
  transition: var(--transition);
}

.attivita-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  z-index: 3;
  color: var(--white);
  transform: translateY(0);
  transition: var(--transition);
}

.attivita-content h3 {
  font-family: var(--font-primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.attivita-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.btn-attivita {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.btn-attivita:hover {
  background: var(--white);
  color: var(--primary-orange);
  text-decoration: none;
}

/* Attività Card Hover Effects */
.attivita-card:hover .attivita-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(238, 125, 13, 0.9) 100%
  );
}

.attivita-card:hover .attivita-content {
  transform: translateY(-10px);
}

.attivita-card:hover .attivita-content p,
.attivita-card:hover .btn-attivita {
  opacity: 1;
  transform: translateY(0);
}

.attivita-card:hover .attivita-img {
  transform: scale(1.05);
}

/* Alternate overlay colors for variety */
.attivita-card:nth-child(1) .attivita-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(238, 125, 13, 0.8) 100%
  );
}

.attivita-card:nth-child(2) .attivita-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(246, 142, 38, 0.8) 100%
  );
}

.attivita-card:nth-child(3) .attivita-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(249, 157, 66, 0.8) 100%
  );
}

.attivita-card:nth-child(4) .attivita-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(247, 148, 29, 0.8) 100%
  );
}

.attivita-card:nth-child(5) .attivita-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(246, 142, 38, 0.8) 100%
  );
}

.attivita-card:nth-child(6) .attivita-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(238, 125, 13, 0.8) 100%
  );
}

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

.cta-text {
  font-size: 1.125rem;
  line-height: 1.5;
  text-align: center;
}

.cta-text-strong {
  font-size: 1.25rem;
  line-height: 1.6;
  text-align: center;
}

/* ===== CONTATTI PAGE STYLES ===== */
/* Contact Hero Section */
.contact-hero {
  height: 300px;
  background: linear-gradient(135deg, var(--light-cream) 0%, var(--white) 100%);
  margin-top: 50px;
}

.contact-hero-content {
  text-align: center;
}

.contact-hero-title {
  font-size: 4rem;
  color: var(--black);
  text-shadow: none;
  margin-bottom: 0;
}

/* Contact Main Section */
.contact-main-section {
  background: var(--white);
  padding: 3rem 0;
}

.contact-main-title {
  color: var(--black);
  font-size: 2.5rem;
}

.contact-intro-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.5;
  text-align: center;
  color: var(--black);
}

/* Contact Intro Description */
.contact-intro-description {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.5;
  text-align: center;
  color: var(--black);
}

.contact-intro-description p {
  margin-bottom: 1.5rem;
}

/* Contact Info Section */
.contact-info-section {
  background: var(--white);
  padding: 0;
}

/* Contact Form */
.contact-form-wrapper {
  padding: 4rem 3rem;
  background: var(--light-cream);
  height: 100%;
  min-height: 600px;
}

.contact-form-title {
  font-family: var(--font-primary);
  font-size: 1.75rem;
  color: var(--primary-orange);
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 600px;
}

.contact-input,
.contact-textarea {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 0;
  padding: 0.75rem 1rem;
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  color: var(--black);
  transition: var(--transition);
}

.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 0.2rem rgba(238, 125, 13, 0.1);
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: #999;
}

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

.contact-privacy {
  font-size: 0.875rem;
  color: #666;
}

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

.contact-privacy a:hover {
  color: var(--secondary-orange);
}

.btn-contact {
  background: var(--primary-orange);
  color: var(--white);
  border: none;
  padding: 0.875rem 2.5rem;
  border-radius: 50px;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-contact:hover {
  background: var(--secondary-orange);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(238, 125, 13, 0.3);
}

/* Contact Details */
.contact-details-wrapper {
  padding: 4rem 3rem;
  background: var(--white);
  height: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.contact-details-content {
  width: 100%;
  max-width: 500px;
}

.contact-details-title {
  font-family: var(--font-primary);
  font-size: 1.75rem;
  color: var(--primary-orange);
  margin-bottom: 2rem;
}

.contact-detail-item {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.contact-detail-item:last-child {
  border-bottom: none;
}

.contact-detail-item h4 {
  font-family: var(--font-secondary);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.contact-detail-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  margin: 0;
}

.contact-detail-item a {
  color: var(--black);
  text-decoration: none;
  transition: var(--transition);
}

/* Sede Legale Section - Figma Style */
.sede-legale-section {
  background: var(--white);
  padding: 5rem 0;

  
}

.sede-info {
  padding-right: 2rem;
}

.sede-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  color: var(--primary-orange);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.sede-city {
  font-family: var(--font-primary);
  font-size: 2rem;
  color: var(--primary-orange);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.sede-details p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.sede-address {
  font-weight: 400;
}

.sede-phone {
  font-weight: 400;
}

.sede-email a {
  color: var(--black);
  text-decoration: none;
}

.sede-email a:hover {
  color: var(--primary-orange);
  text-decoration: underline;
}

.sede-pec {
  font-size: 0.875rem;
  color: #666;
}

.sede-map-container {
  height: 400px;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.sede-map-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: var(--light-gray);
  border-radius: 10px;
  text-align: center;
  padding: 2rem;
}

.sede-map-fallback p {
  font-size: 1.125rem;
  color: var(--black);
  margin-bottom: 1.5rem;
}

/* Sedi Operative Section - Figma Style */
.sedi-operative-section {
  background: var(--white);
  padding: 5rem 0;
  
}

.sedi-operative-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  color: var(--primary-orange);
  margin-bottom: 4rem;
  text-transform: uppercase;
}

.sedi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 0;
  overflow: hidden;
}

.sede-card {
  background: var(--white);
  padding: 4rem 5.5rem;
  border: 4px solid var(--primary-orange);
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.sede-card:nth-child(1) {
  margin-right: -2px;
  margin-bottom: -2px;
}
.sede-card:nth-child(2) {
  margin-left: -2px;
  margin-bottom: -2px;
}
.sede-card:nth-child(3) {
  margin-right: -2px;
  margin-top: -2px;
}
.sede-card:nth-child(4) {
  margin-left: -2px;
  margin-top: -2px;
}
.sede-card:nth-child(5) {
  margin-right: -2px;
  margin-top: -4px;
}
.sede-card:nth-child(6) {
  margin-left: -2px;
  margin-top: -4px;
}

.sede-card-title {
  font-family: var(--font-primary);
  font-size: 2rem;
  color: var(--primary-orange);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-weight: 600;
}

.sede-subtitle {
  font-size: 0.875rem;
  color: var(--primary-orange);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-weight: 400;
}

.sede-card-content {
  flex: 1;
}

.sede-card-content p {
  font-size: 16px;
  line-height: 1.4;
  color: var(--black);
  margin-bottom: 0.25rem;
}

.sede-card-content a {
  color: var(--black);
  text-decoration: none;
}

.sede-card-content a:hover {
  color: var(--primary-orange);
  text-decoration: underline;
}

/* Flag Icons in Language Selector */
.flag-icon {
  width: 20px;
  height: 15px;
  margin-right: 0.5rem;
  object-fit: cover;
  border-radius: 2px;
}

.language-selector .dropdown-menu {
  min-width: 100px;
}

.language-selector .dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.language-selector .dropdown-item:hover {
  background-color: var(--light-cream);
}

/* Map Fallback Styles */
.sede-map-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #f5f5f5;
  padding: 2rem;
  border-radius: 10px;
}

.sede-map-fallback p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
  text-align: center;
}

.sede-map-fallback .btn {
  margin-top: 1rem;
}

/* Form Validation Styles */
.contact-form .was-validated .form-control:valid {
  border-color: #28a745;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.contact-form .was-validated .form-control:invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control:focus {
  border-color: transparent !important;
  box-shadow: none !important;
}

.contact-form-container .contact-form-figma input.form-control,
.contact-form-container .contact-form-figma textarea.form-control {
  background-color: var(--light-cream) !important;
  border-radius: 0;
  border: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
  background-color: var(--light-cream) !important;
-webkit-box-shadow: 0 0 0 1000px var(--light-cream) inset !important;
}

.contact-form-container .contact-form-figma textarea.form-control {
  height: auto;
}

.form-floating > label {
  color: #777;
}

.contact-form-container {
  /* Per browser moderni */
  input::placeholder,
  textarea::placeholder {
    color: var(--gray) !important; /* il colore che vuoi tu */
    opacity: 1; /* Firefox imposta spesso opacità di default */
  }

  /* Per supporto più vecchio / vendor specifico */
  input::-webkit-input-placeholder {
    /* Chrome, Safari, Opera */
    color: var(--gray) !important;
  }
  input:-moz-placeholder {
    /* Firefox 4-18 */
    color: var(--gray) !important;
    opacity: 1;
  }
  input::-moz-placeholder {
    /* Firefox 19+ */
    color: var(--gray) !important;
    opacity: 1;
  }
  input:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: var(--gray) !important;
  }
}

.text-orange-title {
  color: var(--primary-orange);
  font-size: 2rem;
  font-family: var(--font-primary);
}

.subtext-orange-title {
  color: var(--primary-orange);
  font-size: 1.5rem;
  font-weight: bold;
  font-family: var(--font-primary);
}

/* ===== BREVI SECTION ===== */
.brevetti-section {
  background-color: var(--light-cream);
  padding: var(--section-padding);
}

.brevetti-section .card {
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.brevetti-section .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.brevetti-section .card-title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-orange);
  margin-bottom: 1rem;
}

.brevetti-section .card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray);
}

li.nav-item.dropdown.show,
ul.dropdown-menu.show {
  background-color: var(--primary-orange);
  border-radius: 0;
}
ul.dropdown-menu {
  min-width: 97%;
  max-width: 100%;
}
ul.dropdown-menu.show li a {
  color: var(--light-cream);
  font-size: 15px !important;
  text-align: center;
}

.nav-item.dropdown.show .nav-link {
  background-color: var(--primary-orange);
  color: var(--light-cream) !important;
}

.nav-item .nav-link {
    text-transform: uppercase;
}

.dropdown-item {
  justify-content: center;
}

.language-selector {
  .nav-link {
    padding-inline: 1rem !important;
  }
  ul.dropdown-menu {
    min-width: 100%;
    max-width: 100%;
  }
}

.navbar-expand-lg .navbar-nav .dropdown-menu {
  padding: 0;
  background-color: var(--light-cream);
  li {
    background-color: var(--primary-orange);
    margin-top: 1px;
    padding: 8px 0;
    &:hover a {
      background-color: var(--primary-orange);
      color: var(--light-cream);
      opacity: 0.8;
    }
  }
}

.subtitle-black {
  color: #000000;
  text-transform: initial;
}

a {
  text-decoration: none;
}

.cta-section-title:hover {
  cursor: pointer;
  .cta-arrow {
    transform: translateX(5px);
    transition: all 0.3s ease;
  }
}

.firstorange {
  background-color: var(--primary-orange) !important;
}

.secondorange {
  background-color: #f68e26 !important;
}

.thirdorange {
  background-color: #f99d42 !important;
}

#attivita {
  .service-content {
    padding: 3rem 4vw;
  }
}

.lightoverlay {
  background: rgba(238, 125, 13, 0.3);
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.storia-content{
    padding: 0 20px;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: rgba(93, 71, 49, 0.3);
    color: #fff!important;
}

.accordion-header{
    border-bottom: solid 1px #ddd;
    .accordion-button{
        font-size: 20px;
    }
}

.titlefaq{
    font-family: var(--font-primary);
    margin-top: 40px;
    text-align: left;
    border-bottom: solid 2px var(--primary-orange);
}

.accordion-button{
    padding: 20px 0;
}

.accordion-button:not(.collapsed){
    background-color: #fff;
}
.accordion-button:focus{
    box-shadow: none;
}

a{
    color: var(--primary-orange);
}

.navbar-nav{
    .nav-link:hover {
        color:#fff!important;
        background-color: var(--primary-orange)!important;
    }    
}

.py-5{
    padding-right: 20px;
    padding-left: 20px;
}

.breadcrumb-area{
    margin-top: 100px;
}

.boximgnews{
    width: 100%;
    min-height: 20vw;
    background-size: cover;
    background-position: center center;
}

.boximgnews:hover{
transform: scale(1.02);
transition: transform 0.3s ease;
}

.boxnews{
    h2{
        color: #000;
    }
}

.schedanews{
    margin-bottom: 50px;
    .container{
        padding: 0;
    }
}

.bloccotesto{
    background-color: #faf2ea;
    padding: 20px;
    margin-bottom: 40px;
}