/********** Template CSS **********/
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/roboto/roboto-v47-latin-regular.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('/fonts/roboto/roboto-v47-latin-700.woff2') format('woff2');
    font-display: swap;
}

:root {
    --secondary: #D9CFC3;
    --secondary-button: #cfc3b3;
    --primary: #505459;
    --light: #EFF5F9;
    --dark: #1D2A4D;
    --originalPrimary: #ffffff;
    --originalSecondary: #354F8E;
    --hero-height: 50vh;
    --welcome-height: 50vh;
    /*btn hover:background-color:#36cee2;border-color:#2bcbe0*/
}

@media (min-width: 1400px) {
  :root {
    --hero-height: 60vh;
    --welcome-height: 40vh;
  }
}

.hero-spacer {
  height: var(--hero-height);
}

.loading-img {
    max-width: 250px;
}

.mt-6 {
    margin-top: 4rem !important;
}

.bg-secondary-light h2,
.bg-secondary-light h4,
.bg-secondary-light h5 {
    color: var(--primary);
}

/* Colori dei titoli per bg-primary */
.bg-primary h2,
.bg-primary h4,
.bg-primary h5 {
    color: var(--secondary);
}

.body {
    width: 100%;
}

html,
body {
    overflow-x: hidden;
}

html {
    background-color: ffffff;
    /* o un colore coerente con l’immagine */
}

body,
.hero-image-container {
    margin: 0;
    padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0)
             env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
    background: transparent;
}

.hero-image-container {
  position: fixed;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: -1;
  top: 0;
  height: var(--hero-height); /* 🔁 dinamico */
}

.hero-image-container picture,
.hero-image-fixed {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
}

.welcome-section {
  height: var(--welcome-height); /* 🔁 coerente */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}



.w-5 {
    width: 5% !important;
}

.w-10 {
    width: 10% !important;
}

.w-15 {
    width: 15% !important;
}

.w-20 {
    width: 20% !important;
}

.w-25 {
    width: 25% !important;
}

.w-30 {
    width: 30% !important;
}

.w-35 {
    width: 35% !important;
}

.w-40 {
    width: 40% !important;
}

.w-45 {
    width: 45% !important;
}

.w-50 {
    width: 50% !important;
}

.w-55 {
    width: 55% !important;
}

.w-60 {
    width: 60% !important;
}

.w-65 {
    width: 65% !important;
}

.w-70 {
    width: 70% !important;
}

.w-75 {
    width: 75% !important;
}

.w-80 {
    width: 80% !important;
}

.w-85 {
    width: 85% !important;
}

.w-90 {
    width: 90% !important;
}

.w-95 {
    width: 95% !important;
}

.mt-40 {
    margin-top: 40%;
}

.btn {
    font-weight: 700;
    transition: .5s;
}

.btn:hover {
    -webkit-box-shadow: 0 8px 6px -6px #555555;
    -moz-box-shadow: 0 8px 6px -6px #555555;
    box-shadow: 0 8px 6px -6px #555555;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

/*
.whatsapp-bottom {
    position: fixed;
    background-color: #156533;
    color:white;
    right: 30px;
    bottom: 30px;
    border-radius: 50% 50% 50% 50%;
    z-index: 99;
}

.whatsapp-bottom:hover {
    color:black;
}*/


.navbar-light .navbar-nav .nav-link {
    font-family: 'Roboto', sans-serif;
    position: relative;
    margin-left: 30px;
    padding: 30px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link:focus::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }
}

@media (max-width: 991.98px) {
    .user-is-tabbing .navbar-light .navbar-nav .nav-link:focus {
        margin-left: 40px;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-header {
    background: url(../img/sfondoAAA.jpg);
    background-size: cover;
}

.hero-section {
    height: 85vh;
    /* 100% dell'altezza del viewport */
    background-size: cover;
    background-position: right center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.contenitore {
    position: relative;
    background-color: var(--secondary);
    height: 300px;
}

.div-sotto {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.5;
    transition: opacity 0.6s ease;
}

.div-sopra {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    /* centro orizzontale */
    align-items: center;
    transition: opacity 0.3s ease-in-out;
    z-index: 2;
}

.tec-contenitore {
    position: relative;
    width: 100%;
    height: 300px;
    /* Altezza dell'immagine */
    background-size: cover;
    background-position: center;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.tec-div-sotto {
    position: absolute;
    bottom: 0;
    /* Posiziona il div nella parte inferiore */
    left: 0;
    width: 100%;
    transition: height 0.3s ease-in-out;
    height: 25%;
    /* Puoi cambiare questa altezza a seconda di quanto vuoi coprire della parte bassa dell'immagine */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    /* Gradiente che sfuma dall'opacità alla trasparenza */
}

.tec-contenitore.active .tec-div-sotto {
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.5));
    transition: height 0.3s ease-in-out;
}

.tec-contenitore.active .tec-title {
    height: 95%;
    transition: height 0.3s ease-in-out;
    /*top: 1px;
    transition: top 0.3s ease-in-out;*/
}

.servizi-contenitore {
    position: relative;
    width: 100%;
    height: 300px;
    /* Altezza dell'immagine */
    background-size: cover;
    background-position: center;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.servizi-div-sotto {
    position: absolute;
    bottom: 0;
    /* Posiziona il div nella parte inferiore */
    left: 0;
    width: 100%;
    height: 50%;
    /* Puoi cambiare questa altezza a seconda di quanto vuoi coprire della parte bassa dell'immagine */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    /* Gradiente che sfuma dall'opacità alla trasparenza */
}

.servizi-div-sotto-bigger {
    position: absolute;
    bottom: 0;
    /* Posiziona il div nella parte inferiore */
    left: 0;
    width: 100%;
    height: 70%;
    /* Puoi cambiare questa altezza a seconda di quanto vuoi coprire della parte bassa dell'immagine */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    /* Gradiente che sfuma dall'opacità alla trasparenza */
}

.contenitore:hover {
    background-color: transparent;
    transition: background-color 0.6s ease;
}

.contenitore:hover .div-sotto {
    opacity: 1;
}

.contenitore:hover .div-sopra {
    opacity: 0;
}

.tec-title {
    position: absolute;
    margin-top: 10px !important;
    color: white !important;
    transition: bottom 0.3s ease-in-out;
    transition: height 0.3s ease-in-out;
    text-align: center;
    /*top:250px;*/
    height: 20%;
    bottom: 0;
    left: 3%;
    right: 3%;
}

.tec-content {
    visibility: hidden;
    opacity: 0;
    font-size: 13px;
    max-height: 1px;
    /* Non occupa spazio verticale */
    overflow: hidden;
    /* Assicura che non ci siano contenuti visibili */
    transition:
        max-height 0.4s ease-in-out,
        opacity 0.1s ease-in-out;
    /* diventa visibile dopo 0.3s */
}

.tec-contenitore.active .tec-content {
    visibility: visible;
    opacity: 1;
    max-height: 1000px;
    transition:
        max-height 0.4s ease-in-out,
        opacity 0.8s ease-in-out;
}

.tec-content p {
    margin-bottom: 0.3rem !important;
}

/*
.tec-contenitore:hover .tec-content {
    visibility: visible;
    opacity: 1;
    height: 100%; /
    transition: height 0.3s ease-in-out; 
}*/

.serv-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    height: 300px;
    padding: 20px;
    border-radius: 10px;
}

.serv-title {
    position: absolute;
    margin-bottom: 10px;
    color: white;
    text-align: center;
    bottom: 0;
    left: 15%;
    right: 15%;
}

.serv-content {
    color: white;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Overlay */
.serv-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(80, 84, 89, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Testo visibile di default */
.serv-item h3,
.serv-item p {
    position: relative;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* All'hover: mostra overlay e nascondi testo */
.serv-item:hover::before {
    opacity: 1;
}

.serv-item:hover h3,
.serv-item:hover p {
    opacity: 0;
}

.service-item {
    position: relative;
    height: 350px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    transform: rotate(-14deg);
}

.service-item .service-icon i {
    transform: rotate(15deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}

.hidden-service {
    display: block;
}

.hidden-technology {
    display: block;
}

html {
    scroll-behavior: smooth;
}

.price-carousel::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    background: var(--primary);
    border-radius: 8px 8px 50% 50%;
    z-index: -1;
}

.price-carousel .owl-nav {
    margin-top: 35px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next {
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

@media (min-width: 576px) {
    .team-item .row {
        height: 350px;
    }
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-carousel .owl-nav {
    position: absolute;
    padding: 0 45px;
    width: 100%;
    height: 45px;
    top: calc(50% - 22.5px);
    left: 0;
    display: flex;
    justify-content: space-between;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.predef input::placeholder {
    color: #848E9F !important;
}

/* Modifica per la navbar */
.container-fluid.sticky-top {
    position: fixed !important;
    /* Impostare relative per evitare conflitti */
    z-index: 1030;
    /* Assicurati che il z-index sia abbastanza alto */
}

/*MODIFICHE CAROUSEL*/
.carousel-control-prev {
    width: auto !important;
}

.carousel-control-next {
    width: auto !important;
}

.carousel-button {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    ;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    /*background: var(--secondary-button);*/
    background: var(--primary);
    border-radius: 45px;
    font-size: 30px;
    transition: .5s;
    opacity: 1;
}

.carousel-indicators {
    margin-bottom: -1rem !important;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: var(--secondary);
}

/*FINE MIDIFICHE CAROUSEL*/

/*INIZIO FOOTER*/

.owl-item.d-none {
    display: none !important;
}

.display-google-map img {
    max-height: none;
    max-width: none !important;
    background: none !important;
}

a.wa:hover {
    color: #156533 !important;
    /* Sostituisci con il colore desiderato */
}

.centered-image {
    max-width: 300px;
    /* Imposta la larghezza massima desiderata */
    height: auto;
    /* Mantiene le proporzioni dell'immagine */
}

/*IFINE FOOTER*/

/*DETTAGLIO SERVIZI*/
.image-container {
    position: relative;
    width: 100%;
    height: 400px;
    /* Imposta l'altezza che desideri */
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Questo taglia e centra l'immagine */
    object-position: center;
    /* Assicura che l'immagine sia centrata */
}

/*FINE DETTAGLIO SERVIZI*/

.width-large {
    width: 100%;
}

.testo-chiaro {
    color: var(--secondary)
}

.testo-scuro {
    color: var(--primary)
}

.paragrafo {
    font-size: larger;
}

.btn-light-custom {
    background-color: var(--secondary-button) !important;
    color: white !important;
}

.btn-secondary-carousel {
    background-color: var(--secondary-button) !important;
    color: white !important;
    margin-left: auto;
}

.btn-secondary-carousel:hover {
    background-color: var(--primary) !important;
}

.text-secondary-darker {
    color: var(--secondary-button) !important;
}

.box-importante {
    background-color: var(--secondary);
    padding: 10px;
    border-radius: 15px;
}

.bg-secondary-light {
    background-color: #f7f4f2
}

/* Stile per la linguetta segnalibro WhatsApp */
.whatsapp-bookmark {
    position: fixed;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    right: 0;
    bottom: 30px;
    z-index: 99;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.whatsapp-bookmark.visibile {
    opacity: 1;
    pointer-events: auto;
}

/* Classe che viene aggiunta quando la linguetta deve essere visibile */
/*.whatsapp-bookmark.visible {
    transform: translateX(0);
}*/
/*
.bookmark-tab {
    background-color: #f0f0f0;
    width: 60px;
    height: 100px;
    border-radius: 10px 0 0 10px;
    box-shadow: -3px 3px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-bookmark:hover .bookmark-tab {
    width: 65px;
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.25);
}*/

.whatsapp-circle {
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

/* Indicatore per debuggare lo stato */
.scroll-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 100;
}

/*
  * {
  outline: 1px solid red;
}*/

.carousel-button.custom-prev,
.carousel-button.custom-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.carousel-button.custom-prev {
    left: -25px;
    /* Puoi regolare */
}

.carousel-button.custom-next {
    right: -25px;
    /* Puoi regolare */
}

/*effetti*/
.sezione-animata {
    position: relative;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

/* Flip */
.effetto-flip-in.nascosta {
    opacity: 0;
    transform: rotateX(90deg);
    transform-origin: top;
}

.effetto-flip-in.visibile {
    opacity: 1;
    transform: rotateX(0deg);
}

/* Zoom */
.effetto-zoom-in.nascosta {
    opacity: 0;
    transform: scale(0.9);
}

.effetto-zoom-in.visibile {
    opacity: 1;
    transform: scale(1);
}

/* Slide from left */
.effetto-slide-left.nascosta {
    opacity: 0;
    transform: translateX(-60px);
}

.effetto-slide-left.visibile {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from right */
.effetto-slide-right.nascosta {
    opacity: 0;
    transform: translateX(60px);
}

.effetto-slide-right.visibile {
    opacity: 1;
    transform: translateX(0);
}

/* Slide up */
.effetto-slide-up.nascosta {
    opacity: 0;
    transform: translateY(40px);
}

.effetto-slide-up.visibile {
    opacity: 1;
    transform: translateY(0);
}

/* Fade */
.effetto-fade-in.nascosta {
    opacity: 0;
}

.effetto-fade-in.visibile {
    opacity: 1;
}

.articoli-card {
    min-height: 600px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.lazy-bg {
    background-color: #f3f3f3;
    /* esempio colore neutro */
    background-size: cover;
    background-position: center;
}

.wrapper-ul {
    text-align: center;
}

.ul-centro {
    display: flex;
    justify-content: center;
}

.ul-centro ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.ul-centro ul li::before {
    content: "• ";
    color: var(--primary, #007bff);
    font-weight: bold;
}

.ul-centro ul li {
    margin: 0.4rem 0;
    font-size: 1rem;
}

.servizi-desc {
    font-size: 0.95rem;
    color: #f8f9fa;
    /* o un colore chiaro se sfondo scuro */
    margin-top: 0.5rem;
    line-height: 1.4;
    max-height: 4.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
    margin-left: 10px;
}

.card-service {
    position: absolute;
    text-align: center;
    bottom: 0;
}

.title-margin {
    margin-right: 5px;
    margin-left: 5px;
}

.team-contenitore {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.form-control,
.form-select {
    height: 55px;
}

select:invalid {
    color: black !important;
}

input::placeholder,
textarea::placeholder {
    color: black !important;
    opacity: 1 !important;
}

input.form-control,
textarea.form-control {
    color: black !important;
}

input.form-control::placeholder,
textarea.form-control::placeholder {
    color: black !important;
    opacity: 1;
}

.sezione-intro {
    font-weight: 700;
    font-size: 1.25rem;
}


.bgground {
    height: 30px;
    border-radius: 20px;
}

.breadcrumbs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}

.breadcrumbs li:first-child {
    font-size: 19px;
}

.breadcrumbs li {
    margin: 0;
    padding: 0;
    float: left;
    font-family: Helvetica Neue, sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 20px;
    color: #999;
}

.breadcrumb-container {
    height: 20px;
    margin-bottom: 1rem
}

.breadcrumbs li a {
    display: inline;
    margin-right: 8px;
    /*color: #ccc;*/
    text-decoration: none;
    font-weight: bold;
}

.breadcrumbs li a:hover {
    display: inline;
    margin-right: 8px;
    color: #ccc;
    text-decoration: none;
    font-weight: bold;
}


.breadcrumbs li+li::before {
    content: " › ";
    color: #555;
    margin-left: 4px;
    margin-right: 8px;
}

.breadcrumbs-ondark {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}

.breadcrumbs-ondark li {
    margin: 0;
    padding: 0;
    float: left;
    font-family: Helvetica Neue, sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 20px;
    color: #ede8e2;
}

.breadcrumbs-ondark li+li::before {
    content: " › ";
    color: #fff;
    margin-left: 4px;
    margin-right: 8px;
}

.breadcrumbs-ondark li a:hover {
    display: inline;
    margin-right: 8px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.breadcrumbs-ondark li a {
    display: inline;
    margin-right: 8px;
    color: var(--secondary-button);
    text-decoration: none;
    font-weight: bold;
}

.bg-custom {
    background-color: #e3dad2 !important;
}

.ai-tooltip {
    cursor: help;
    bottom: 5px;
    right: 0;
    position: absolute;
}

.mio-pulsante {
    background-image: url('/img/tecnologie/dettaglio-polisonnigrafo-mano-tb-medical-center.webp');
    background-size: cover;
    /* o contain */
    background-position: center;
    background-repeat: no-repeat;
}

.p-custom-small {
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
    bottom: 35px;
}

.tec-content p.responsive-text {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  max-height: 170px;
}

.tec-content.fade p.responsive-text {
  mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
}

.ai-info-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 12px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    /* opzionale per visibilità */
}

.ai-info-bar .ai-tooltip {
    margin-left: auto;
    cursor: pointer;
    padding-left: 12px;
    font-size: 20px;
}

.ai-text {
    font-size: 10px;
}

.ai-text.hidden {
    display: none;
}

.responsive-text {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    max-width: 100%;
    overflow-wrap: break-word;
    white-space: normal;
}


.ai-info-bar-detail {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 12px 12px;
    margin-top:-35px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    /* opzionale per visibilità */
}

.ai-tooltip-detail {
    cursor: help;
    bottom: 5px;
    right: 20px;
    position: absolute;
    color: white;
}

.ai-info-bar-detail .ai-tooltip-detail {
    margin-left: auto;
    cursor: pointer;
    padding-left: 12px;
    font-size: 20px;
}

.ai-text-detail {
    font-size: 12px;
    color: white;
    max-width: 80%;
    text-align: center;
}

.ai-text-detail.hidden {
    opacity: 0;
}

.copyright {
    max-width: 70%;
    margin: auto;
    margin-top: 5px;
}

.xsmall {
    font-size: 0.775em
}

.whatsapp-button {
    display: inline-block;
    width: 100%;
    height: 50px;
    background-color: #25D366;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
}

.mail-button {
    display: inline-block;
    width: 100%;
    height: 50px;
    background-color: #EA4335;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
}

.whatsapp-button img {
    height: 45px !important;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.mail-button img {
    height: 45px !important;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.pulsante-whatsapp {
    justify-content: center;
    align-content: center;
    color: white;
    font-weight: 700;
    height: 50px;
}


.whatsapp-icon {
    transition: transform 0.3s ease;
}

.whatsapp-button:hover .whatsapp-icon {
    transform: translateY(-50%) scale(1.15);
}

.mail-button:hover .whatsapp-icon {
    transform: translateY(-50%) scale(1.15);
}

.no-tel {
    -webkit-touch-callout: none;
    -webkit-user-select: text;
}

.no-tel span {
    pointer-events: none;
}

.tec-contenitore:hover {
    cursor: pointer;
}

.articoli-card:hover {
    cursor: pointer;
}

.title-collegamenti {
    margin-top: 0;
    font-size: 1.25rem;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #505459;
}

.title-orari{
    font-size: calc(1.275rem + .3vw);
    margin-top: 0;
    font-size: 1.25rem;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #505459;
}


.text-contatti{
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: .5rem;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #505459;
}

.svg-icon {
  display: inline-block;
  width: 1em;              /* scala con font-size */
  height: 1em;
  vertical-align: -0.125em; /* come FA */
  fill: currentColor;      /* eredita il colore dal testo */
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a:hover .svg-icon {
  transform: scale(1.1);
  transition: transform 0.2s ease-in-out;
}

.linkedin-icon {
    height: 1.5em;
}

.whatsapp-icon-svg{
    width: 40%;
}

.phone-icon {
    height: 2em;
    transform: rotate(290deg);
}

.mail-icon{
    height: 2em;
    transform: rotate(15deg);
}

.direction-icon {
    height: 2em;
    transform: rotate(15deg);
}

.star-icon{
    width: 1em!important;
     height: 1em!important;
}

.medico-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    position: relative;
    height: 100%;
    padding: 20px;
    transition: box-shadow 0.3s ease;
    border-radius: 12px;
}

.nome-medico {
    font-size: 26px;
    font-weight: 600;
    color: var(--primary) !important;
    margin-top: 20px;
    margin-bottom: 12px;
    font-family: "Roboto", sans-serif;
    line-height: 1.2;
}

.specializzazioni {
    flex-grow: 1; /* Spinge il fondatore in basso */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 12px;
}

.specializzazioni-text {
    font-size: 16px;
    color: var(--primary);
    font-style: italic;
    line-height: 1.4;
    opacity: 0.85;
}

.fondatore {
    color: #505459;
    background-color: var(--secondary);
    border-color: #505459;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    margin-left: auto;
}

.medico-card.no-fondatore .fondatore {
    display: none;
}

@media (max-width: 768px) {
    .medico-card {
        width: 90%;
        max-width: 340px;
    }
}

.no-tel-fix {
  pointer-events: none;
  user-select: text;
  text-decoration: none;
  color: inherit;
}

.avatar-initials {
  width: 120px;
  height: 120px;
  background-color: cadetblue;
  font-family: var(--bs-font-sans-serif);
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  user-select: none;
}

