/* DEFAULT CSS */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
	box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
    background-color: var(--colore2) !important;
}
ol, ul {
	list-style: none;
}

a{
    color: inherit !important;
}

blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

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

body::-webkit-scrollbar {
    display: none;
  }

/* CUSTOM DEFAULT CSS */
:root {
    --font: "Inter Tight", sans-serif;
    --font-titoli: "degular-variable",sans-serif;
    --bianco: #fff;
    --colore1: #0161FE; /*blu*/
    --colore2: #F7F6F2; /*grigio chiaro*/
    --nero: #0A0A0A;
}



h1,h2,h3 {
    font-family: var(--font-titoli);
}   

p {
    font-family: var(--font);
}

#blu-title {
    color: var(--colore1) !important;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}


/*CSS PAGE*/

.logo-menu {
    padding: 2em;
    margin-left: 2em;
}
.logo-menu img{
    width: 20em;
    max-width: 100%;
}

.header-title {
    min-height: 400px;
    height: 70vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}
.header-title h1{
    font-size: clamp(2.5rem, 8vw, 7rem); /* Evita testi troppo grandi/piccoli */
    font-weight: 600;
    text-align: center;
    line-height: 0.9;
    color: var(--nero);
}

#blu-title {
    color: var(--colore1);
}

.bottone-pieno {
    background-color: var(--colore1);
    color: var(--bianco) !important;
    padding: 10px 2em;
    border-radius: 10em;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    white-space: nowrap;
    border: 2px solid var(--colore1);
}
.bottone-vuoto {
    border: 2px solid var(--colore1);
    color: var(--colore1) !important;
    padding: 10px 2em;
    border-radius: 10em;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    white-space: nowrap;
}


.bottone-vuoto:hover {
    background-color: var(--colore1);
    color: var(--bianco) !important;
}

.bottone-pieno:hover {
    background-color: var(--bianco);
    color: var(--colore1) !important;
    border: 2px solid var(--colore1);
}

.header-bottoni {
    background-color: var(--bianco);
    min-height: 4em;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 390px;
    padding: 0.5em;
    justify-content: center;
    position: fixed !important;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    border-radius: 20em;
    gap: 0.5em;
    flex-wrap: wrap;
}

/* Media queries per schermi di diverse altezze */
@media screen and (max-height: 700px) {
    .header-title {
        height: auto;
        min-height: 300px;
    }
    
    .header-bottoni {
        flex-direction: column;
        border-radius: 2em;
        padding: 1em;
    }
}

/* Per dispositivi mobili.service-card h3 */
@media screen and (max-width: 768px) {
    .logo-menu {
        padding: 1em;
        margin-left: 0;
        text-align: center;
    }
    
    .header-bottoni {
        flex-direction: column;
        width: 90%;
        border-radius: 2em;
        padding: 1em;
    }
    
    .bottone-pieno, .bottone-vuoto {
        width: 100%;
        text-align: center;
        margin: 0em 0;
    }
}

.box-cosa-facciamo h1{
    text-align: center;
    font-size: clamp(2.5rem, 8vw, 5rem); /* Evita testi troppo grandi/piccoli */
    font-weight: 600;
}
/* Padding responsive per box-cosa-facciamo */
.box-cosa-facciamo {
    /* Usa clamp per definire un range di valori dal minimo al massimo */
    padding-left: clamp(1rem, 12vw, 14em);
    padding-right: clamp(1rem, 12vw, 14em);
}

/* Media queries per schermi più piccoli */
@media screen and (max-width: 1200px) {
    .box-cosa-facciamo {
        padding-left: 8%;
        padding-right: 8%;
    }
}

@media screen and (max-width: 768px) {
    .box-cosa-facciamo {
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media screen and (max-width: 480px) {
    .box-cosa-facciamo {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
.paghesolution-article-title{
    display: flex ;
    justify-content: left;
    align-items: center;
    padding-top: 0em;
    color: rgb(0, 0, 0, 1);
    font-size: 28px;
}

.box-cosa-facciamo h3 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 5em;
    color: rgb(0, 0, 0, 0.5);
}

/* Stile per il box servizi */
.service-box {
    padding: 2rem 0;
    margin: 2rem 0;
}

.service-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 2.4rem;
    height: 100%;
    position: relative;
    border: 2px solid var(--colore1);
}

.card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 6vh;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--nero);
    line-height: 1;
    padding-right: 1em;
}


.service-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.3;
    flex-grow: 1;
    font-weight: 500;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto; /* Posiziona il footer in basso */
}

.img-container {
    max-width: 45%;
    height: auto;
    text-align: right;
}

.service-img {
    height: auto;
    margin-bottom: 1em;
    margin-top: 1em;
}
#color2-btn {
    background-color: var(--colore1);
    color: var(--bianco) !important;
}
#color2-btn:hover {
    background-color: var(--colore2);
    color: var(--colore1) !important;
}

.btn-more {
    display: inline-block;
    padding: 0.5rem 1.4rem;
    background-color: var(--bianco);
    color: var(--colore1) !important;
    border: 2px solid var(--colore1);
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-more:hover {
    background-color: var(--colore1); /* Versione più scura del blu */
    color: white !important;
}

/* Responsive per tablet e mobile */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 2.7rem;
        white-space: normal; /* Permette il wrapping dei titoli su mobile */
    }
    
    .card-footer {
        align-items: end;
    }
    
    .img-container {
        max-width: 100%;
        margin-top: 1rem;
        text-align: center;
    }
    
    .btn-more {
        margin-bottom: 1rem;
    }
}


/* CSS specifico per iPad e tablet in orientamento verticale */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .service-card h3 {
        font-size: 2.5vh; /* Dimensione ridotta rispetto ai 6vh originali */
        white-space: normal; /* Permette il wrapping dei titoli */
        padding-right: 0; /* Rimuove il padding a destra */
        margin-bottom: 1rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-more {
        font-size: 0.8rem;
        padding: 0.25rem 0.7rem;
        margin-right: 10px;
    }
    
    .box-1-padding {
        padding: 1.5rem !important; /* Ripristina il padding standard */
    }
    
    .box-1-padding p {
        padding-right: 0 !important; /* Rimuove il padding speciale */
    }
    
    .img-container {
        max-width: 60%; /* Aumenta la dimensione dell'immagine */
    }
    
    /* Migliora la disposizione degli elementi nel footer */
    .card-footer {
        align-items: flex-end;
    }
}

/* Specificatamente per iPad Air (820x1180) */
@media only screen and (min-width: 810px) and (max-width: 830px) and (min-height: 1160px) and (max-height: 1200px) and (orientation: portrait) {
    .service-card h3 {
        font-size: 2.8vh;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .img-container {
        max-width: 85%; /* Immagini molto più grandi per iPad Air */
    }
    
    .btn-more {
        font-size: 0.7rem; /* Bottone ancora più piccolo */
        padding: 0.2rem 0.5rem;
        margin-right: 0.5rem;
    }
    
    .card-footer {
        margin-top: 1rem;
        justify-content: space-between;
        align-items: flex-end;
        flex-direction: row; /* Assicura layout orizzontale */
    }
}

/* Fix aggiuntivo per iPad Pro */
@media only screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: portrait) {
    .service-card h3 {
        font-size: 3vh;
    }
    
    .service-card p {
        font-size: 1rem;
    }
    
    .img-container {
        max-width: 55%; /* Immagini più grandi anche su iPad Pro */
    }
    
    .btn-more {
        font-size: 0.85rem; /* Bottone più piccolo */
        padding: 0.3rem 0.8rem;
    }
}

.box-bianco {
    background-color: var(--bianco);
    padding-bottom: 8em;
}

.box-chisiamo img {
    width: 100%;
    max-width: 100%;
    height: auto;
}
.box-chisiamo p {
    font-weight: 500;
    font-size: 2.4vh;
    padding-left: 5em;
    padding-right: 5em;
}

.box-chisiamo {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin-top: 4em !important;
}

.box-cosa-facciamo h1 {
    line-height: 1;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 600;
    line-height: 1;
}

.box-scelta {
    display: flex !important;
    align-items: center;
    justify-content: left;
}

.box-scelta h3{
    color: rgb(0, 0, 0, 0.5) !important;
}
.box-scelta h1{
    text-align: left;
    font-size: clamp(2.5rem, 8vw, 4rem); /* Evita testi troppo grandi/piccoli */
    font-weight: 600;
    line-height: 0.9;
}
.box-scelta p{
    font-weight: 500;
    font-size: 2.5vh;
    padding-top: 2em;
    padding-right: 5em;
}

.perche-sceglierci img{
    max-height: 10em;
    padding-bottom: 1em;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;

}


.card-body h5{
    font-size: 2.5vh;
}

.testimonianze {
    background-color: #ffffff;
}

.testimonianze h3 {
    color: rgba(0, 0, 0, 0.5) !important;
}

.testimonianze h1 {
    text-align: center;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    padding-inline: 4em;
}

.testimonianze .card {
    border-radius: 10px;
    height: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.testimonianze .bg-primary {
    background-color: var(--colore1) !important;
    border-radius: 30px;
}

.testimonianze .bg-dark {
    background-color:  rgb(0, 0, 0, 0.75) !important;
    border-radius: 30px;
}

.testimonianze .bg-light {
    background-color: var(--colore2) !important;
    border-radius: 30px;
}

.testimonianze .card p {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.testimonianze .display-1 {
    font-size: 8rem;
    font-weight: 600 !important;
    line-height: 1;
    text-align: left;
    padding-bottom: 0.2em;
    padding-top: 0.2em;
}

.testimonianze .small {
    font-size: 0.875rem;
}

.testimonianze .fw-bold {
    font-weight: 600;
}

/* Per ottenere il colore di sfondo rosa come nell'immagine */
.testimonianze {
    background-color: #ffebee;
}

/* Footer styles */
.footer {
    color: var(--bianco);
    z-index: 1001;
    position: sticky;
  }
  
  .footer-top {
    background-color: var(--nero);
    padding: 80px 0 40px;
  }
  
  .footer-top h2 {
    margin-bottom: 5px;
    font-weight: 600;
    font-family: var(--font-titoli); 
    font-size: clamp(2.5rem, 8vw, 6rem);
    line-height: 1;
    }
  
  .footer-subtitle {
    margin-top: 20px;
  }
  
  .footer-info {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--bianco);
  }
  
    .footer-bottom {
        background-color: var(--nero);
        padding: 30px 0;
    }
      
  .footer-logo {
    max-width: 100%;
    margin-top: 2em;
  }
  
  .footer-copyright {
    font-size: 1rem;
  }
  
  .footer-copyright a {
    color: #ffffff;
    text-decoration: none;
  }
  
  .footer-copyright a:hover {
    text-decoration: underline;
  }
  
  .linkedin-link {
    margin-left: 20px;
    font-weight: 500;
  }
  
  @media (max-width: 768px) {
    .footer-top {
      padding: 50px 0 30px;
    }
    
    .footer-copyright, .footer-logo {
      text-align: left;
      margin: 10px auto;
    }
    
    .footer-info {
      text-align: left;
      margin-bottom: 1em;
    }
    
    .linkedin-link {
      display: block;
      margin: 10px 0 0;
    }
  }


  /*NEW 2025*/

  .lista-menu {
    display: flex;
    gap: 1em;
    justify-content: right;
    align-items: center;
  }
  .lista-menu a{
    list-style: none;
    text-decoration: none;
    padding: 0.3em 0.8em 0.3em 0.8em;
    border-radius: 10em;
  }
  .lista-menu a:hover{
    background: white;
    background-size: 1em 1em;
  }

  .header {
    margin-top: 2em;
  }

  /* Desktop Menu - Visible on Desktop */
  @media only screen and (min-width: 992px) {
    .desktop-menu {
      display: flex !important;
    }

    .hamburger-menu {
      display: none !important;
    }

    .mobile-menu-overlay {
      display: none !important;
    }
  }

  #team-paghe {
    margin-top: 2em;
    margin-left: 5em;
    display: inline-block;
        padding: 10px 1.5em;
  }



  .servizi-space-top {
        padding-top: 2em;
    }

    .servizi-cont p{
        font-weight: 400;
        font-size: 20px;
        line-height: 1.4;
    }