/* GENERALE */
html{
  font-size: 16px; 
  line-height: 1.2;
}
body {
    /* background-color: #acd6e380; */
    font-family: "Montserrat", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
span {
    font-family: "Montserrat", sans-serif;
}

.hidden {
    display: none !important;
}

/* HEADER */
header,
#main-navbar {
    background-color: white;
    top: 0;
    box-shadow: 0 -1px 10px -4px #000000;
}

#main-navbar nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    max-height: 70px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* HAMBURGER */
#hamburger {
    background: none;
    border: none;
    cursor: pointer;
    text-align: center;
}

#hamburger span {
    display: block;
    width: 32px;
    height: 5px;
    background-color: #3a7d22;
    margin-bottom: 5px;
    border-radius: 20px;
    transition: 0.4s;
}

body.menu-active #hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(-45deg);
}

body.menu-active #hamburger span:nth-child(3) {
    transform: translateY(-11px) rotate(45deg);
}

body.menu-active #hamburger span:nth-child(2) {
    width: 0;
}

/* FASCIA IN ALTO */
#fascia_inTop {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgb(58 125 34) 35%);
    padding: 1rem 0;
}

#fascia_inTop h6 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

#fascia_inTop_alta a,
#fascia_inTop_alta p {
    font-size: 12px;
}

#fascia_inTop_alta a {
    border-radius: 14px 14px 0 0;
    transition: 0.3s;
    text-decoration: none;
}

/* MENU LATERALE */
.blocco-menu-inhome {
    padding: 20px 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.blocco-menu-inhome li.nav-item {
    list-style: none;
    padding: 8px 0;
}

.blocco-menu-inhome li.nav-item.active a,
.blocco-menu-inhome li.nav-item a:hover {
    color: white !important;
    text-decoration: underline;
}

/* MENU DESKTOP */
#menuDesktop a {
    text-shadow: 0 2px 4px rgba(61, 100, 154, 0.54);
}

.nav-link {
    font-size: 13px;
}

.navbar-nav li:not(:last-child) {
    border-right: solid 1px white;
}

/* SOCIAL */

.icona-social {
    margin-block: auto;
}

.icona-social img {
    height: 24px;
    transition: transform 0.2s ease;
}

.icona-social img:hover {
    transform: scale(1.1);
}

/* GTRANSLATE */
.gtranslate_wrapper select {
    font-size: 12px;
    padding: 4px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.goog-logo-link,
.goog-te-gadget span {
    display: none !important;
}

/* SEARCH */
.containerRicerca {
    position: relative;
    width: 100%;
}

.search-bar {
    display: flex;
    align-items: center;
    height: 40px;
    width: 100%;
    background-color: transparent;
    position: relative;
}

.search-bar .research {
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 0;
}

.search-bar .research input {
    width: 100%;
    padding: 5px 10px 5px 35px;
    border: 1px solid #cecece;
    border-radius: 22px;
    background-color: transparent;
    font-size: max(0.875rem, min(2.43vw, 1rem));
}

.search-bar .research .fa-magnifying-glass {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
    pointer-events: none;
}

/* LIVE SEARCH LIST */
.live-search-list {
    display: none;
    position: absolute;
    top: 45px;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-shadow: 0 5px 12px -5px #000000;
    z-index: 999999;
    max-height: 350px;
    overflow-y: auto;
}

/* SCROLLBAR */
.live-search-list::-webkit-scrollbar {
    width: 5px;
}

.live-search-list::-webkit-scrollbar-thumb {
    background: rgba(90, 90, 90, 0.4);
}

/* TESTIMONIANZE */
.testimonianze-wrapper {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

#testimonianze-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
}

.card-testimonianza {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #003366;
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 48%;
}

.card-testimonianza:hover {
    transform: translateY(-4px);
}

.video-col,
.text-col {
    padding: 20px;
    flex: 1;
}

.video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background-color: #000;
}

.video-container iframe {
    width: 100%;
    height: 100%;
}

.caption {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
    font-style: italic;
    font-weight: bold;
}

/* ANIMAZIONE FADE-IN */
.card-testimonianza {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
}

.card-testimonianza:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

/* PULSANTE "CARICA DI PIÙ" */
#loadMoreBtn {
    padding: 12px 24px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 24px;
    background-color: #007bff;
    color: white;
    border: none;
    transition: background-color 0.3s ease;
}

#loadMoreBtn:hover {
    background-color: #0056b3;
}

/* BLOCCHI PULSANTI (ICON CARD) */
.blocco-pulsanti{
  row-gap: 25px;
}
.blocco-pulsanti a{
    display: block;
    height: 100%;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}
.blocco-pulsanti a > div{ height: 100%;}

.blocco-pulsanti a:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.blocco-pulsanti h6 {
    font-size: max(0.875rem, min(2.43vw, 1rem));
    line-height: 1.2;
    font-weight: 600;
    color: #003366;
    margin-bottom: 12px;
}

.blocco-pulsanti img {
    width: max(70px, min(12vw, 150px));
    transition: transform 0.2s ease;
}

.blocco-pulsanti img:hover {
    transform: scale(1.1);
}

/* STUDY PLAN */
.study-plan-container {
    border: 2px solid #004098;
    padding: 20px;
    display: grid;
    gap: 20px;
}

.semesters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: #003366;
}

.activities {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.activity {
    padding: 12px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    text-align: center;
}

.activity.compulsory {
    background-color: #2a9d8f;
}

.activity.optional {
    background-color: #f4a261;
}

.activity.traineeship {
    background-color: #e76f51;
}

.activity.internship {
    background-color: #264653;
}

.graduation {
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    margin-top: 15px;
}

.graduation img {
    width: 40px;
    margin-bottom: 5px;
}

/* FOOTER */
#footer_ul li {
    font-size: 12px;
}

#footer_ul li:first-child {
    font-size: 10px;
}

._content_div {
    color: #004098;
    line-height: 28px;
}

.breadcrumb {
    background-color: transparent;
}

.breadcrumb-item a {
    font-size: 12px;
    font-weight: bold;
    color: #004098;
}

.breadcrumb-item i {
    display: none;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    #main-navbar .container {
        flex-direction: column;
        align-items: center;
    }

    .logo img {
        max-height: 60px;
    }

    .testimonianze-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .card-testimonianza {
        width: 100%;
    }

    .video-col,
    .text-col {
        padding: 15px;
    }

    .semesters,
    .activities {
        grid-template-columns: 1fr 1fr;
    }

    #fascia_inTop h6 {
        font-size: 1rem !important;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .item h4 {
        font-size: 1.1rem;
    }

    .item p {
        font-size: 0.95rem;
    }
}

.card img {
    object-fit: cover;
    height: 120px;
}


#slider_home-slider .carousel-inner {
    height: 75vh;
}

.modal-content {
    position: relative;
    background-image: url(/media/bgmodal2.png);
    background-color: rgba(58, 125, 34, 0.95) !important;
    color: #fff !important;
    background-blend-mode: overlay;
}

.modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(58, 125, 34, 0.75);
    z-index: 0;
    border-radius: inherit;
}

.modal-content>* {
    position: relative;
    z-index: 1;
}

.modal-content {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.modal-content a {
    color: #ffe08a;
    font-weight: bold;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: none;
}