:root {
  --white-color:                  #ffffff;
  --primary-color:                #007614;
  --secondary-color:              #028b47;
  --section-bg-color:             #ffffff;
  --custom-btn-bg-color:          #80d099;
  --custom-btn-bg-hover-color:    #007614;
  --dark-color:                   #007614;
  --p-color:                      #007614;
  --border-color:                 #60db89;
  --link-hover-color:             #007614;

  --body-font-family:             'Open Sans', sans-serif;
  --title-font-family:            'Montserrat', sans-serif;

  --h1-font-size:                 58px;
  --h2-font-size:                 46px;
  --h3-font-size:                 32px;
  --h4-font-size:                 28px;
  --h5-font-size:                 24px;
  --h6-font-size:                 22px;
  --p-font-size:                  20px;
  --menu-font-size:               14px;
  --btn-font-size:                18px;
  --copyright-font-size:          16px;

  --border-radius-large:          100px;
  --border-radius-medium:         20px;
  --border-radius-small:          10px;

  --font-weight-normal:           400;
  --font-weight-medium:           500;
  --font-weight-semibold:         600;
  --font-weight-bold:             700;
}

body {
  background-color: var(--white-color);
  font-family: var(--body-font-family); 
}


/* ANIMAZIONI BASE */

/* Posizione iniziale invisibile */
.scroll-reveal {
  opacity: 0;
  transform: translateX(0); /* fallback */
}

/* Slide da sinistra */
.scroll-reveal.visible.slide-in-left {
  animation: slideInLeftFull 1s ease-out forwards;
}

/* Slide da destra */
.scroll-reveal.visible.slide-in-right {
  animation: slideInRightFull 1s ease-out forwards;
}

/* Animazioni */
@keyframes slideInLeftFull {
  0% {
    transform: translateX(-100vw);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRightFull {
  0% {
    transform: translateX(100vw);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* BASE */
.navbar {
  position: sticky; /* evita plugin JS su mobile */
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0;               /* niente margin per evitare salti */
  padding: 10px 0;
  border-radius: 0 0 30px 30px; /* uniforme */
  background: linear-gradient(90deg, #bde2bb 0%, #00ad07 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  overflow: hidden;

  will-change: transform, opacity;  /* più fluido */
  transform: translateZ(0);         /* GPU hint */
}

/* CONTENITORE */
.container-navbar{
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

/* LOGO: altezza fissa, nessuna transizione di altezza */
.navbar-brand img{
  height: 64px;
  max-width: 100%;
}

/* STICKY (desktop): solo piccole variazioni, NO gradient/height diversi */
@media (min-width: 992px){
  .sticky-wrapper.is-sticky .navbar{
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
    opacity: .98;                 /* niente cambi bruschi di bg */
  }
}

/* MOBILE */
@media (max-width: 991px){
  .navbar{
    border-radius: 0 0 24px 24px;
    background: linear-gradient(15deg, #ace4b9 0%, #17bb32 100%) !important; /* una sola versione */
  }

  /* Collassa/espandi senza cambiare padding/height della navbar */
  .navbar-collapse{
    width: 100%;
    background: transparent !important;
    padding: 12px 0;
  }

  .navbar-nav{
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding-left: 0;
  }
}


.navbar.slide-down {
  animation: slideDown 0.8s ease-out forwards;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* CLASSI DI UTILITÀ */
.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-left {
  opacity: 0;
  animation: fadeInLeft 0.1s ease forwards;
}

.animate-fade-in-right {
  opacity: 0;
  animation: fadeInRight 0.1s ease forwards;
}
/*---------------------------------------
  TYPOGRAPHY               
-----------------------------------------*/

h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--title-font-family); 
  font-weight: var(--font-weight-semibold);
}

h1 {
  font-size: var(--h1-font-size);
  font-weight: var(--font-weight-bold);
}

h2 {
  font-size: var(--h2-font-size);
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: var(--h3-font-size);
}

h4 {
  font-size: var(--h4-font-size);
}

h5 {
  font-size: var(--h5-font-size);
}

h6 {
  color: var(--primary-color);
  font-size: var(--h6-font-size);
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
}

ul li {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
}

a, 
button {
  touch-action: manipulation;
  transition: all 0.3s;
}

a {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
}

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

b,
strong {
  font-weight: var(--font-weight-bold);
}


/*---------------------------------------
  SECTION               
-----------------------------------------*/
/* Elementi nascosti all'inizio */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Classe attivata quando l'elemento entra nello schermo */
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}

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

.section-overlay {
  background-image: linear-gradient(15deg, #aafdb0 0%, #29802c 100%);
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  opacity: 85%;
}

.section-overlay + .container {
  position: relative;
}

.tab-content {
  background-color: var(--white-color);
  border-radius: var(--border-radius-medium);
}

.nav-tabs {
  border-bottom: 1px solid #ecf3f2;
  margin-bottom: 40px;
  justify-content: center;
}

.nav-tabs .nav-link {
  border-radius: 0;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  color: var(--p-color);
  font-family: var(--title-font-family);
  font-size: var(--btn-font-size);
  font-weight: var(--font-weight-medium);
  padding: 15px 25px;
  transition: all 0.3s;
}

.nav-tabs .nav-link:first-child {
  margin-right: 20px;
}

.nav-tabs .nav-item.show .nav-link, 
.nav-tabs .nav-link.active,
.nav-tabs .nav-link:focus, 
.nav-tabs .nav-link:hover {
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
}


/*---------------------------------------
  CUSTOM ICON COLOR               
-----------------------------------------*/
.custom-icon {
  color: var(--secondary-color);
}


/*---------------------------------------
  CUSTOM BUTTON               
-----------------------------------------*/
.custom-btn {
  background: var(--custom-btn-bg-color);
  border: 2px solid transparent;
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--btn-font-size);
  font-weight: var(--font-weight-semibold);
  line-height: normal;
  transition: all 0.3s;
  padding: 10px 20px;
}

.custom-btn:hover {
  background: var(--custom-btn-bg-hover-color);
  color: var(--white-color);
}

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

.custom-border-btn:hover {
  background: var(--custom-btn-bg-color);
  border-color: transparent;
  color: var(--white-color);
}

.custom-btn-bg-white {
  border-color: var(--white-color);
  color: var(--white-color);
}


/*---------------------------------------
  SITE HEADER              
-----------------------------------------*/
.site-header {
background-image: linear-gradient(15deg, #1a237e 0%, #b39ddb 100%);
  padding-top: 150px;
  padding-bottom: 80px;
}

.site-header .container {
  height: 100%;
}

.breadcrumb-item+.breadcrumb-item::before,
.breadcrumb-item a:hover,
.breadcrumb-item.active {
  color: var(--white-color);
}

.site-header .custom-icon {
  color: var(--white-color);
  font-size: var(--h4-font-size);
}

.site-header .custom-icon:hover {
  color: var(--secondary-color);
}

/*---------------------------------------
  NAVIGATION              
-----------------------------------------*/
#section_4 {
  padding-bottom: 120px;
  padding-top: 120px;
}

.sticky-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
}

.px-lg-4 {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.navbar-brand img {
  height: 95px;
  max-width: 100%;
  transition: all 0.3s ease;
}

.navbar-brand span {
  font-family: var(--title-font-family);
}



/* === LOGO === */
.navbar-brand img {
  height: 100px;
  max-width: 100%;
}


/* Logo */
.navbar-brand {
  margin-right: 2rem;
}


/* Logo */
.navbar-brand img {
  height: 60px;
}

/* Menu */
.navbar-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 0 auto;
  padding-left: 0;
}

.navbar-nav .nav-link {
  color: #fff;
  font-weight: 600;
}

.navbar-nav .nav-link.active {
  color: #003800;
  border-bottom: 2px solid #003800;
}

/* Social */
.social-wrapper {
  display: flex;
  gap: 1rem;
}

.social-wrapper i {
  color: white;
}

/* Effetto hover */
.social-wrapper a:hover {
  transform: translateY(-4px) scale(1.2);
  background-color: rgba(255, 255, 255, 0);
  color: #ffffff;
}

@media (max-width: 576px) {
  #pdfContainer {
    height: 650px !important; /* più lungo da telefono */
  }


/* Card */
.card .text-muted { color:#6c757d !important; }

/* Modal base */
.pdf-modal {
  position: fixed; inset: 0; display: none;
  background: rgba(0,0,0,.45); z-index: 1050;
  padding: clamp(12px, 3vw, 28px);
}
.pdf-modal[aria-hidden="false"] { display: block; }

.pdf-modal__dialog{
  background:#fff; border-radius: 1rem; box-shadow: 0 10px 40px rgba(0,0,0,.2);
  max-width: 1100px; margin: 0 auto; display:flex; flex-direction:column;
  height: min(86vh, 900px); overflow: hidden;
}
.pdf-modal__header{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 16px; border-bottom:1px solid #eee;
}

/* forza il bottone a NON essere full-width */
#ctaPdf { margin-left:auto; margin-right:auto; }

/* Toolbar + frame */
.pdf-toolbar{
  display:flex; align-items:center; gap:.5rem;
  padding:10px; background:#f8f9fa; border-bottom:1px solid #eee;
}
.pdf-frame-wrap{ flex:1 1 auto; min-height: 400px; }
#pFrame{ width:100%; height:100%; border:0; background:#fff; }

@media (max-width: 575.98px){
  .pdf-modal__dialog{ height: 88vh; }
  .pdf-frame-wrap{ min-height: 320px; }
}

  /* Mostra toggler */
  .navbar-toggler {
    display: block !important;
    border: none;
    padding: 0.5rem;
  }

  /* Hamburger a 3 linee custom */
  .navbar-toggler-icon {
    background-color: transparent !important;
    position: relative;
    width: 30px;
    height: 2px;
    margin: 0.5rem auto;
  }
  .navbar-toggler-icon::before,
  .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #fff;
  }
  .navbar-toggler-icon::before {
    top: -8px;
  }
  .navbar-toggler-icon::after {
    top: 8px;
  }

  .navbar-collapse.show {
    display: block;
  }

  .navbar-nav .nav-link {
    color: #ffffff !important;
    font-size: 1.1rem;
  }
  .navbar-nav .nav-link.active,
  .navbar-nav .nav-link:hover {
    color: #00771e !important;
  }

  /* Nasconde i social quando il menu è aperto */
  .social-wrapper {
    display: none;
  }

    main {
    padding-top: 90px;
  }

  /* Se hai sezioni che hanno padding-top negativo o positioning,
     assicurati che inizino sotto la navbar */
  .hero-section,
  .featured-section {
    margin-top: 0 !important;
  }
}

/* Card Punti Forza: più larga */
.featured-section .custom-block {
  max-width: 98% !important;
  margin: 0 auto;
}

.featured-section .custom-block .point {
  padding-left: 15px;
  border-left: 3px solid #007614;
  margin-bottom: 20px;
}

.navbar .social-icon-link {
  color: white;
  background-color: transparent !important;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.navbar .social-icon-link:hover {
  transform: scale(1.2);
  background-color: transparent !important; /* ← questo elimina il verde */
}

.navbar-nav .nav-link.active, 
.navbar-nav .nav-link:hover {
  color: #007614;
}

.navbar .dropdown-menu {
  background: var(--white-color);
  box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
  border: 0;
  display: inherit;
  opacity: 0;
  min-width: 9rem;
  margin-top: 20px;
  padding: 13px 0 10px 0;
  transition: all 0.3s;
  pointer-events: none;
}

.navbar .dropdown-menu::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 15px solid var(--white-color);
  position: absolute;
  top: -10px;
  left: 10px;
}

.navbar .dropdown-item {
  display: inline-block;
  color: var(--p-bg-color);
  font-family: var(--title-font-family); 
  font-size: var(--menu-font-size);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.navbar .dropdown-item.active, 
.navbar .dropdown-item:active,
.navbar .dropdown-item:focus, 
.navbar .dropdown-item:hover {
  background: transparent;
  color: var(--primary-color);
}

.navbar .dropdown-toggle::after {
  content: "\f282";
  display: inline-block;
  font-family: bootstrap-icons !important;
  font-size: var(--copyright-font-size);
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: -.125em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  left: 2px;
  border: 0;
}

.navbar-icon {
  background: var(--white-color);
  border-radius: var(--border-radius-large);
  display: inline-block;
  font-size: var(--h5-font-size);
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  transition: all 0.3s ease;
}

.navbar-icon:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

.navbar-toggler {
  display: none;
  border: none;
  background: transparent;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transition: top 300ms 50ms ease, -webkit-transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease, -webkit-transform 300ms 350ms ease;
  top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before {
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transform: rotate(-45deg);
}

.navbar-toggler .navbar-toggler-icon {
  background: var(--white-color);
  transition: background 10ms 300ms ease;
  display: block;
  width: 30px;
  height: 2px;
  position: relative;
}

.navbar-toggler .navbar-toggler-icon:before,
.navbar-toggler .navbar-toggler-icon:after {
  transition: top 300ms 350ms ease, -webkit-transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease, -webkit-transform 300ms 50ms ease;
  position: absolute;
  right: 0;
  left: 0;
  background: var(--white-color);
  width: 30px;
  height: 2px;
  content: '';
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  width: 24px;
  height: 2px;
  background-color: white;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.navbar-toggler-icon {
  width: 24px;
  height: 2px;
  background-color: white;
  position: relative;
  display: block;
}


/*---------------------------------------
  HERO        
-----------------------------------------*/
.hero-section {
  background-image: linear-gradient(15deg, #ffffff 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
  padding-top: 160px;
  padding-bottom: 160px;
}

.hero-section .input-group {
  background-color: var(--white-color);
  border-radius: var(--border-radius-large);
  padding: 10px 15px;
}

.hero-section .input-group-text {
  background-color: transparent;
  border: 0;
}

.hero-section input[type="search"] {
  border: 0;
  box-shadow: none;
  margin-bottom: 0;
  padding-left: 0;
}

.hero-section button[type="submit"] {
  background-color: var(--primary-color);
  border: 0;
  border-radius: var(--border-radius-large) !important;
  color: var(--white-color);
  max-width: 150px;
}



/*---------------------------------------
  TOPICS              
-----------------------------------------*/

.product-card {
  background: #ffffff;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}
.product-icon {
  font-size: 3rem;
  color: #17bb32;
}
.products-section {
  background-color: #f9fbfc;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.products-section h2 {
  font-size: 2.5rem;
  letter-spacing: 1px;
}
.products-section p {
  color: #4f5d6e;
  font-size: 1.1rem;
}
.btn-outline-success {
  border-width: 2px;
  padding: 0.5rem 1.5rem;
}

  @media (max-width: 576px) {
    #flipContainer { height: 700px !important; } /* più lungo da telefono */
  }

.card-title {
  color: #198754; /* verde */
  font-weight: 600;
}

.card-text {
  font-size: 0.95rem;
}
.card-shadow{

    box-shadow: 0 2px 28px rgba(0, 0, 0, 0.1);
}

.featured-section {
  background-color: var(--secondary-color);
  border-radius: 0 0 100px 100px;
  padding-bottom: 100px;
}

/* Card Punti Forza che sbuca dal verde senza collisione */
.featured-section .row {
  position: relative;
  margin-bottom: -50px !important; /* elimina margine extra */
  bottom: 40px !important;        /* annulla offset verticale */
}

.custom-block {
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
  padding: 30px;
  transition: all 0.3s ease;
  height: 100%;
  min-height: 420px; /* prima era più bassa */
}

.custom-block:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 2px 32px rgba(0, 0, 0, 0.3); /* ombra più forte */
}

.block-shadow{
  box-shadow: 0 2px 28px rgba(0, 0, 0, 0.2);
}

.custom-block-image {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-top: 35px;
  transition: all 0.3s ease;
  height: 100%;
}

.custom-block .rounded-pill {
  border-radius: 5px !important;
  display: flex;
  justify-content: center;
  text-align: center;
  width: 30px;
  height: 30px;
  line-height: 20px;
}

/* Card Punti Forza più larga */
.custom-block-overlay {
  max-width: 98%; /* era 85%, ora quasi tutta la larghezza */
}

/* Stile punti elenco con linea laterale */
.custom-block-overlay .point {
  padding-left: 15px; /* spazio tra linea e testo */
  border-left: 3px solid #007614; /* linea verde a sinistra */
  margin-bottom: 20px;
}

.custom-block-overlay > a {
  height: 100%;
}

.custom-block-overlay .custom-block-image {
  border-radius: var(--border-radius-medium);
  display: block;
  height: 100%;
  margin-top: 0;
}

.custom-block-overlay-text {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  padding: 30px;
}

.custom-block.bg-white.block-shadow {
  height: auto; 
  min-height: unset;
}

/* Sezione Partner sopra i loghi */
.partner-section {
  margin-top: 40px;
  margin-bottom: 20px;
}
.partner-section h4 {
  color: white !important;
  padding: 0;
  margin: 0 0 15px 0; /* spaziatura minima */
}

/* Testo e titoli in verde anche su hover */
.custom-block.bg-white.block-shadow:hover h5,
.custom-block.bg-white.block-shadow:hover p {
  color: #007614 !important;
}

.punti-forza-card {
  margin-bottom: 20px; /* meno margine inferiore */
  padding: 30px; /* meno padding generale */
}

@media (max-width: 991px) {
  .punti-forza-card {
    max-width: 95%; /* per mobile */
    padding: 20px;
    margin-bottom: 100px !important; /* molto più spazio */
  }
}

.logo-rotator-horizontal {
  position: relative;
  height: 180px;
  overflow: hidden;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 2px 28px rgba(0, 0, 0, 0.1);
  margin-top: 0px !important; /* prima 30px */
  max-width: 700px;
  margin: 0 auto;
  margin-top: 0px !important; 
}

.logo-rotator-horizontal {
  margin-top: 0 !important; /* elimina margini che separavano troppo */
  padding-top: 0 !important;
}


.logo-rotator-horizontal img {
  max-height: 140px;
  width: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.logo-rotator-horizontal img.show {
  opacity: 1;
}

@media (max-width: 768px) {
@media (max-width: 768px) {
  .logo-rotator-horizontal {
    max-width:550px;
  }
}
  .logo-rotator-horizontal img {
    max-height: 100px;
  }
}

.social-share {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 2;
  padding: 20px 35px;
}

/* --- ROTATORE LOGHI CHI SIAMO --- */
.logo-rotator {
  position: relative;
  width: 100%;
  padding-top: 90%; /* prima era 110% → ridotto per meno altezza */
  margin-top: 60px; /* prima era 35px → abbassa gli sponsor */
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.rot-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  z-index: 0;
  transition: opacity .6s ease;
}

.rot-logo.show {
  opacity: 1;
  z-index: 1;
}

/* Mobile */
@media (max-width: 576px) {
  .logo-rotator { padding-top: 70%; }
}

.logo-rotator .custom-block-image,
.logo-rotator img {
  height: 100% !important;
  width: 100% !important;
}

@media (max-width: 992px) {
  .featured-section .row {
    bottom: 0;
    margin-bottom: 0;
  }
}

.social-share .bi-bookmark {
  color: var(--white-color);
  font-size: var(--h5-font-size);
}

.social-share .bi-bookmark:hover {
  color: var(--secondary-color);
}

.bg-design {
  background-color: #00B0FF;
}

.bg-graphic {
  background-color: #00BFA6;
}

.bg-advertising {
  background-color: #F50057;
}

.bg-finance {
  background-color: #536DFE;
}

.bg-music {
  background-color: #F9A826;
}

.bg-education {
  background-color: #00BFA6;
}


/*---------------------------------------
  TOPICS               
-----------------------------------------*/

.our-portfolio {
  padding-top: 120px;
  margin-top: 0px;
}

.our-portfolio .section-heading h2 {
  text-align: center;
  margin: 0px 90px 0px 90px;
  margin-bottom: 120px;
  position: relative;
  z-index: 1;
}

.our-portfolio .item {
  position: relative;
}

.our-portfolio .item:hover .hidden-content {
  top: -100px;
  opacity: 1;
  visibility: visible;
}

.our-portfolio .item:hover .showed-content {
  top: 90px;
}

.our-portfolio .hidden-content {
  background: rgb(255,77,30);
  background: linear-gradient(105deg, rgba(255,77,30,1) 0%, rgba(255,44,109,1) 100%);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  opacity: 0;
  top: 0;
  visibility: hidden;
  position: absolute;
  z-index: 2;
  transition: all 0.5s;
}

.our-portfolio .hidden-content:after {
  width: 20px;
  height: 20px;
  position: absolute;
  background: rgb(255,77,30);
  content: '';
  left: 50%;
  bottom: -8px;
  margin-left: -5px;
  transform: rotate(45deg);
  background: linear-gradient(105deg, rgba(255,52,69,1) 0%, rgba(255,51,78,1) 100%);
  z-index: -1;
}

.our-portfolio .hidden-content h4 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.our-portfolio .hidden-content p {
  color: #fff;
}

.our-portfolio .showed-content {
  top: 0px;
  position: relative;
  z-index: 3;
  background-color: #fff;
  text-align: center;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
  transition: all 0.5s;
}

.our-portfolio .showed-content img {
  max-width: 100px;
}

.topics-detail-block {
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
}

.topics-detail-block-image {
  display: block;
  border-radius: var(--border-radius-medium);
}

blockquote {
  background-color: var(--section-bg-color);
  border-radius: var(--border-radius-small);
  font-family: var(--title-font-family);
  font-size: var(--h4-font-size);
  font-weight: var(--font-weight-bold);
  display: inline-block;
  text-align: center;
  margin: 30px;
  padding: 40px;
}

.topics-listing-page .site-header {
  padding-bottom: 65px;
}

.custom-block-topics-listing-info {
  margin: 30px 20px 20px 30px;
}

.custom-block-topics-listing {
  height: inherit;
}

.custom-block-topics-listing .custom-block-image {
  width: 200px;
}


/*---------------------------------------
  PAGINATION              
-----------------------------------------*/
.pagination {
  margin-top: 40px;
}

.page-link {
  border: 0;
  border-radius: var(--border-radius-small);
  color: var(--p-color);
  font-family: var(--title-font-family);
  margin: 0 5px;
  padding: 10px 20px;
}

.page-link:hover,
.page-item:first-child .page-link:hover,
.page-item:last-child .page-link:hover {
  background-color: var(--secondary-color);
  color: var(--white-color);
}

.page-item:first-child .page-link {
  margin-right: 10px;
}

.page-item:first-child .page-link,
.page-item:last-child .page-link {
  background-color: var(--section-bg-color);
  border-radius: var(--border-radius-small);
}

.active>.page-link, .page-link.active {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}


/*---------------------------------------
  TIMELINE              
-----------------------------------------*/
.timeline-section {
  background-image: url('../images/colleagues-working-cozy-office-medium-shot.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
}

.timeline-container .vertical-scrollable-timeline {
  list-style-type: none;
  position: relative;
  padding-left: 0;
}

.timeline-container .vertical-scrollable-timeline .list-progress {
  width: 8px;
  height: 87%;
  background-color: var(--primary-color);
  position: absolute;
  left: 52px;
  top: 0;
  overflow: hidden;
}

.timeline-container .vertical-scrollable-timeline .list-progress .inner {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  background-color: var(--secondary-color);
  width: 100%;
}

.timeline-container .vertical-scrollable-timeline li {
  position: relative;
  padding: 20px 0px 65px 145px;
}

.timeline-container .vertical-scrollable-timeline li:last-child {
  padding-bottom: 0;
}

.timeline-container .vertical-scrollable-timeline li p {
  line-height: 40px;
}

.timeline-container .vertical-scrollable-timeline li p:last-child {
  margin-bottom: 0;
}

.timeline-container .vertical-scrollable-timeline li .icon-holder {
  position: absolute;
  left: 0;
  top: 0;
  width: 104px;
  height: 104px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--secondary-color);
  border-radius: 50%;
  z-index: 1;
  transition: 0.4s all;
}

.timeline-container .vertical-scrollable-timeline li .icon-holder::before {
  content: "";
  width: 80px;
  height: 80px;
  border: 4px solid #fff;
  position: absolute;
  background-color: var(--secondary-color);
  border-radius: 50%;
  z-index: -1;
  transition: 0.4s all;
}

.timeline-container .vertical-scrollable-timeline li .icon-holder i {
  font-size: 25px;
  color: var(--white-color);
}

.timeline-container .vertical-scrollable-timeline li::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 8px;
  background-color: transparent;
  left: 52px;
  z-index: 0;
}

.timeline-container .vertical-scrollable-timeline li.active .icon-holder {
  background-color: var(--primary-color);
}

.timeline-container .vertical-scrollable-timeline li.active .icon-holder::before {
  background-color: var(--primary-color);
}


/*---------------------------------------
  FAQs              
-----------------------------------------*/
.faq-section .accordion-item {
  border: 0;
}

.faq-section .accordion-button {
  font-size: var(--h6-font-size);
  font-weight: var(--font-weight-semibold);
}

.faq-section .accordion-item:first-of-type .accordion-button {
  border-radius: var(--border-radius-large);
}

.faq-section .accordion-button:not(.collapsed) {
  border-radius: var(--border-radius-large);
  box-shadow: none;
  color: var(--primary-color);
}

.faq-section .accordion-body {
  color: var(--p-color);
  font-size: var(--btn-font-size);
  line-height: 40px;
}

/*---------------------------------------
  NEWSLETTER               
-----------------------------------------*/
.newsletter-image {
  border-radius: var(--border-radius-medium);
}


/*---------------------------------------
  CONTACT               
-----------------------------------------*/
.google-map {
  border-radius: var(--border-radius-medium);
}

.contact-form .form-floating>textarea {
  border-radius: var(--border-radius-medium);
  height: 150px;
}


/*---------------------------------------
  SUBSCRIBE FORM               
-----------------------------------------*/
.subscribe-form-wrap {
  padding: 50px;
}

.subscribe-form {
  width: 95%;
}


/*---------------------------------------
  CUSTOM FORM               
-----------------------------------------*/
.custom-form .form-control {
  border-radius: var(--border-radius-large);
  color: var(--p-color);
  margin-bottom: 24px;
  padding-top: 13px;
  padding-bottom: 13px;
  padding-left: 20px;
  outline: none;
}

.form-floating>label {
  padding-left: 20px;
}

.custom-form button[type="submit"] {
  background: var(--custom-btn-bg-color);
  border: none;
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-family: var(--title-font-family);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-semibold);
  transition: all 0.3s;
  margin-bottom: 0;
}

.btn-news-animated {
  position: relative;
  display: inline-block;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: 600;
  color: #fff; /* ← mantiene il testo bianco */
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.btn-news-animated:hover {
  transform: scale(1.05);
  color: #fff; /* ← forzato anche in hover */
}

.btn-news-animated span {
  position: relative;
  z-index: 2;
  color: #fff; /* ← ancora per sicurezza */
}

.btn-news-animated::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-25deg);
  transition: left 0.4s ease;
  z-index: 1;
}

.btn-news-animated:hover::before {
  left: 125%;
}

.btn-collab-animated {
  position: relative;
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #fff; /* ← mantiene il testo bianco */
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.btn-collab-animated:hover {
  transform: scale(1.05);
  color: #fff; /* ← forzato anche in hover */
}

.btn-collab-animated span {
  position: relative;
  z-index: 2;
  color: #fff; /* ← ancora per sicurezza */
}

.btn-collab-animated::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-25deg);
  transition: left 0.4s ease;
  z-index: 1;
}

.btn-collab-animated:hover::before {
  left: 125%;
}


.custom-form button[type="submit"]:hover,
.custom-form button[type="submit"]:focus {
  background: var(--custom-btn-bg-hover-color);
  border-color: transparent;
}

.contact-section h2 {
  margin-bottom: 100px;
}
/*---------------------------------------
  SITE FOOTER              
-----------------------------------------*/
.site-footer {
  border-bottom: 10px solid var(--secondary-color);
  position: relative;
  background-color: #009844; /* o qualsiasi verde del tuo brand */
  color: white;
}

.site-footer *,
.site-footer a,
.site-footer p,
.site-footer h4,
.site-footer h6 {
  color: white !important;
}

.site-footer-title {
  color: var(--primary-color); 
}

.site-footer .dropdown-menu {
  padding: 0;
}

.site-footer .dropdown-item {
  color: var(--p-color);
  font-size: var(--menu-font-size);
  font-weight: var(--font-weight-medium);
  padding: 4px 18px;
}

.site-footer .dropdown-item:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.site-footer .dropdown-menu li:first-child .dropdown-item {
  padding-top: 10px;
}

.site-footer .dropdown-menu li:last-child .dropdown-item {
  padding-bottom: 12px;
}

.site-footer .dropdown-toggle {
  background-color: var(--secondary-color);
  border-color: var(--white-color);
}

.site-footer .dropdown-toggle:hover {
  background-color: var(--primary-color);
  border-color: transparent;
}

.site-footer-links {
  padding-left: 0;
}

.site-footer-link-item {
  display: block;
  list-style: none;
  line-height: normal;
}

.site-footer-link {
  color: var(--secondary-color);
  font-size: var(--copyright-font-size);
  font-weight: var(--font-weight-medium);
  line-height: normal;
}

.iscriz {
  font-size: 0.875rem;  /* Esempio: 0.875rem corrisponde a font-size piccolo */
  line-height: 1.5;
}

.copyright-text {
  font-size: var(--copyright-font-size);
}

/* Assicura che l'immagine del logo sia un elemento di blocco */
footer img.img-fluid {
  display: block;
}

.site-footer {
  margin-bottom: 0;
  padding-bottom: 0;
  background-color: #009844; /* sfondo principale del footer */
}

.footer-bar-bottom {
  background-color: #005b2c;  /* verde più scuro */
  width: 100%;
  height: 60px;
  margin: 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bar-bottom small {
  color: white;
  font-size: 0.9rem;
}

.footer-social .social-icon-link {
  color: white;
  background-color: transparent !important;
  border-radius: 0 !important;
  padding: 0;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.footer-social .social-icon-link:hover {
  transform: scale(1.2);
}

/* desktop/tablet */
.map-embed{
  --bs-aspect-ratio: 75%;   /* ~4:3 */
}

/* mobile */
@media (max-width:576px){
  .map-embed{
    --bs-aspect-ratio: 45%; /* più bassa (scegli tu: 45%=~9:4, 56%=16:9) */
  }
}


/*---------------------------------------
  SOCIAL ICON               
-----------------------------------------*/
.social-icon {
  margin: 0;
  padding: 0;
}

.social-icon-item {
  list-style: none;
  display: inline-block;
  vertical-align: top;
}

.social-icon-link {
  color: white;
  transition: transform 0.3s ease, filter 0.3s ease;
  font-size: 1.4rem;
}
.social-icon-link:hover {
  background: var(--primary-color);
  color: var(--white-color);
}


/*---------------------------------------
  RESPONSIVE STYLES               
-----------------------------------------*/
@media screen and (max-width: 991px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 32px;
  }

  h4 {
    font-size: 28px;
  }

  h5 {
    font-size: 20px;
  }

  h6 {
    font-size: 18px;
  }

  .section-padding {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .navbar-nav .dropdown-menu {
    position: relative;
    left: 10px;
    opacity: 1;
    pointer-events: auto;
    max-width: 155px;
    margin-top: 10px;
    margin-bottom: 15px;
  }

  .navbar-expand-lg .navbar-nav {
    padding-bottom: 10px;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    padding: 0;
  }

  .nav-tabs .nav-link:first-child {
    margin-right: 5px;
  }

  .nav-tabs .nav-link {
    font-size: var(--copyright-font-size);
    padding: 10px;
  }

  .featured-section {
    border-radius: 0 0 80px 80px;
    padding-bottom: 40px !important;
  }

  .custom-block-topics-listing .custom-block-image {
    width: auto;
  }

  .custom-block-topics-listing > .d-flex,
  .custom-block-topics-listing-info,
  .custom-block-topics-listing a {
    flex-direction: column;
  }

  .timeline-container .vertical-scrollable-timeline .list-progress {
    height: 75%;
  }

  .timeline-container .vertical-scrollable-timeline li {
    padding-left: 135px;
  }

  .subscribe-form-wrap {
    padding-top: 30px;
    padding-bottom: 0;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 26px;
  }

  h4 {
    font-size: 22px;
  }

  h5 {
    font-size: 20px;
  }
}

