

*{
font-family: 'Titillium Web', sans-serif !important;
font-size: 16px ;
line-height: 24px;
}

*[style] {
  font-family: 'Titillium Web', sans-serif !important;
}


.font-5{
    font-size: 40px;
    line-height: 48px;
}

.font-4{
    font-size: 32px;
    line-height: 40px;
}

.font-3{
    font-size: 24px;
    line-height: 32px;
}

.font-2{
    font-size: 20px;
    line-height: 24px;
}

.font-1{
     font-family: 'Titillium Web', sans-serif !important;
    font-size: 16px;
    line-height: 24px;
}

.color-black{
    color: black;
}

.bg-lightgray{
    background-color: #F2F7FC;
}

.img-fluid{
    width: 100%;
    height: auto;
}

a.more-link{
    color: #17324D;
    text-decoration: none;
}
a.more-link:hover{
    color: #000;
    text-decoration: underline;
}
a.more-link::after{
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('arrow-right.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 0 5px;
    margin-left: 5px;
}

.cta-gallery{
    background-color: #333333;
    color: white;
    padding: 12px;
    width: calc(25% - 10px);
    margin-right: 10px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    background-image: url('cta-gallery.svg');
    background-repeat: no-repeat;
    background-position: 6px center;
    padding-left: 50px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
}

.cta-simple{
    background-color: #333333;
    margin-top: 10px;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
}

@media(max-width: 992px){
    .cta-gallery{
    width: calc(50% - 10px) ;
    margin-right: 10px;
}
}

/*  Header Styles */
.bg-header{
    background-color: #2BD6D0;
}

.bg-header-dark {
    background-color: #0BCBC5;
}

.logo-wrapper img{
    width: 60px;
    height: auto;
}

/* Navigation Styles */

header .navbar .dropdown-toggle::after{
    vertical-align: 0.135em;
}

.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.navbar-collapse {
    flex-basis: auto;
}

/* Brand/Logo */
.navbar-brand {
    transition: transform 0.3s ease;
}
.navbar-brand img {
    width: 80px;
    height: auto;
}

.navbar-brand:hover {
    transform: scale(1.05);
}


@media screen and (max-width: 576px) {
    .logo-wrapper img{
        width: 40px;
    }
    .logo-wrapper .project-name {
        font-size: 1em;
    }
}


/* Navigation Links */
.navbar-nav .nav-link {
    color: #333;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff;
}

.navbar-nav .nav-link.active {
    color: #fff;
}

.navbar-nav .nav-item:first-child .nav-link {
  padding-left: 0;
  margin-left: 0;
}

/* Posizionamento dropdown menu centrato e scollegato dal trigger */
.main-nav-wrapper .dropdown-menu {
    position: fixed !important; /* fissa rispetto alla viewport */
    top: 171px !important;   /* poco sotto il nav */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 80vw !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    z-index: 1050 !important;
    padding: 1rem;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: none;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    pointer-events: none;

}
@media (max-width: 991px){
    .main-nav-wrapper .dropdown-menu{
        top: 250px !important; /* Adjust for mobile */
    }
}

@media (max-width: 768px){
    .main-nav-wrapper .dropdown-menu{
        top: 443px !important; /* Adjust for mobile */
    }
}

.main-nav-wrapper .dropdown-menu.show {
    max-height: 500px; /* sufficient for your content */
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px){
    .main-nav-wrapper .navbar-nav{
        display: flex;
        flex-direction: column !important;
    }
    
    .main-nav-wrapper .navbar-collapse{
        padding-left: 0 !important;
        box-shadow: none;
    }
}

.dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(0,123,255,0.1);
    color: #007bff;
    /* transform: translateX(5px); */
}

.dropdown-item.active {
    background-color: #007bff;
    color: white;
}

/* Multi-level Dropdowns */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

/* Hamburger menu personalizzato */
.navbar-toggler {
    /* border: 1px solid rgba(0,0,0,0.9); */
    padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255,255,255,0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Language Selector */
.lang-selector .dropdown-toggle {
    text-transform: uppercase;
}

.lang-selector .dropdown-menu {
    min-width: 100px;
}
.lang-wrapper .dropdown-toggle.btn, .lang-wrapper a{
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
}
.lang-wrapper .btn:focus,
.lang-wrapper .btn:active,
.lang-wrapper .btn.show,
.lang-wrapper .btn:first-child:active {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.lang-wrapper ul{
    display: none;
}

.lang-wrapper .dropdown-menu{
    border: 0;
    padding: 0;
}

.lang-wrapper .dropdown-menu li .dropdown-item:hover{
    transform: translateX(0) !important;
}



nav .search button{
    background-color: #17324D;
    aspect-ratio: 1;
    width: 50px;
    height: 50px;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    overflow: hidden;
    flex-shrink: 0; /* evita ridimensionamento */
}

nav .search input{
    background: transparent;
    border: 0;
    width: 0px;
    transition: width .3s ease;
    padding-right: 3rem !important;
}

nav .search label{
    color: black !important;
    cursor: pointer;
}

nav .search input:focus{
    background: transparent;
    border: 0;
    border-bottom: 1px solid white;
    border-radius: 0;
    box-shadow: none;
    width: 180px;
    margin-right: 60px;
}




/* Dropdown Menu Styles */
.dropdown-menu[data-bs-popper] {
    top: calc(100% + 6px);
    left: 0;
    margin-top: var(--bs-dropdown-spacer);
    border-radius: 0;
    border: none;
    /* min-width: 50vw; */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 0 !important;
}

.dropdown-item.active {
    background-color: transparent;
    color: black;
    text-decoration: underline;
}

.dropdown-item{
     font-weight: 400;
    font-size: 18px;
    line-height: 28px;
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
    .navbar>.container{
        justify-content: flex-end;
    }
    .navbar-collapse {
        padding: 1rem;
        padding-left: 10px !important;
        /* box-shadow: 0 4px 6px rgba(0,0,0,0.1); */
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem 0.75rem 0;
        margin: 0.25rem 0;
    }
    
    .dropdown-menu {
        box-shadow: none;
        padding: 0 1rem 0 0;
        margin: 0;
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
    }
    
    .dropdown-submenu .dropdown-menu {
        left: 0;
        margin-left: 1rem;
    }

    nav .search button{
        width: 40px;
        height: 40px;
    }
}

/* Navbar Toggle Button */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

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

/* Responsive Width Classes per navbar + cerca */
@media (min-width: 992px) {
  .w-100-lg-auto {
    width: auto !important;
  }
}

/* Animation for Dropdown */
/* .dropdown-menu {
    animation: fadeIn 0.3s ease;
} */

/* @keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} */

/* Footer */
footer{
    background-color: #2BD6D0;
    /* margin-top: 2em; */
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
}
footer .bottom-dark{
    background-color: #0BCBC5;
}

.footer-logo {
    max-width: 230px;
    height: auto;
}

.footer-partners, .footer-stakeholders, .footer-socials {
  white-space: nowrap;
}

footer ul.navbar-nav {
    display: flex;
    flex-direction: row;
}

footer ul.navbar-nav .nav-link {
    color: #000;
    background-color: transparent;
    text-decoration: none;
    padding: 0 1em;
}

footer ul.navbar-nav a.nav-link, .footer-bottom-bar div{
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
}
/* Accordion */

.accordion-body {

}
.accordion-item {
    border: none;
    border-bottom: 1px solid #5C6F82;
}
.accordion-button {
  background: white;
  border: none;
  padding: 1rem;
  width: 100%;
  text-align: left;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.accordion-content {
  display: none;
  padding: 1rem;
  border-top: 1px solid #eee;
}
.accordion-button::after {
  content: "+";
  font-weight: normal;
  background-image: none;
}
/* .accordion-button.active::after {
  content: "−";
} */
 .accordion-button:not(.collapsed) {
    background-color: transparent;
}
.accordion-button:not(.collapsed)::after {
    background-image: none;
    transform: none;

    content: "−";
}

.form-check{
    position: relative;
    margin-bottom: 0.125rem;
}
.form-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.form-check label {
    padding-left: 7px;
    cursor: pointer;
    display: inline-block;
    font-weight: 500;
}
.form-check-label::after {
    content: "";
    left: 0;
    position: absolute;
    transition: 0.2s ease-out;
    z-index: 1;
    border-style: solid;
    border-width: 2px;
    border-color: #000;
    background-color: rgba(0, 0, 0, 0);

    border-radius: 4px;
    height: 20px;
    width: 20px;
    margin: 3px 7px 6px 0
}

.form-check [type=checkbox]:checked + label::after {
    border-color: #000;
    background-color: #000;
}

.form-check [type=checkbox]:checked + label::before{
    content: "";
    left: 0;
    position: absolute;
    transition: 0.2s ease-out;
    z-index: 3;
    top: 6px;
    left: 1px;
    width: 8px;
    height: 13px;
    border-style: solid;
    border-width: 2px;
    border-color: rgba(0, 0, 0, 0) #fff #fff rgba(0, 0, 0, 0);
    transform: rotate(40deg);
    backface-visibility: hidden;
    transform-origin: 100% 100%;
    opacity: 0.8;
}


/* pagination */
.pagination ul{
    display: flex;
    justify-content: end;
    margin: 1em 0;
    padding: 0;
    list-style: none;
}
.pagination ul li {
    margin: 0 0.5em;
}

.pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    min-width: 2.5rem;
    border-radius: 4px;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    color: hsl(210, 17%, 44%);
    background-color: rgba(0, 0, 255, 0);
}

.pagination .page-item .page-link[aria-current] {
    border: 1px solid #06c;
    color: #06c;
    pointer-events: none;
}

.icon-chevron-left {
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23555'%3E%3Cpath d='M14.6 17.2 9 11.6 14.6 6l.8.7-4.9 4.9 4.9 4.9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 24px 24px;
  display: inline-block;
}

.icon-chevron-right {
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23555'%3E%3Cpath d='m9.8 17.2-.8-.7 4.9-4.9L9 6.7l.8-.7 5.6 5.6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 24px 24px;
  display: inline-block;
}

/* form checkbox */
.form-check input {
    margin-right: 0.5em;
}



/* Chips Styles */
.chips-container { 
    margin: 7px 0 6px 0;
}

.chip-link { 
    text-decoration: none;
    display: inline-block;
    margin-right: 7px;
    margin-bottom: 7px;
}

.chip-link:hover .chip {
    background: #007bff;
    color: white;
}

.chip { 
    display: inline-block; 
    background: #17324D; 
    color: #fff; 
    padding: 2px 14px; 
    border-radius: 4px; 
    font-size: 12px; 
    transition: all 0.2s ease;
    cursor: pointer;
}

.chip-no-link {
    background: #f8f9fa;
    color: #6c757d;
    cursor: default;
    margin: 2px;
}

.chip-no-link:hover {
    background: #f8f9fa;
    color: #6c757d;
    transform: none;
    box-shadow: none;
}

.glossario-tooltip{
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
}


/* Pagina archivio */
.search-wrapper #searchInputText{
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid gray;
    padding-left: 30px;
    background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M14 13.3L19.9 19.1L19.1 19.9L13.3 14C11.8225 15.2676 9.94654 15.9755 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C15.9755 9.94654 15.2676 11.8225 14 13.3ZM1 8C1 11.866 4.13401 15 8 15C9.85652 15 11.637 14.2625 12.9497 12.9497C14.2625 11.637 15 9.85652 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8Z" fill="%2317324D"/></svg>');
    background-size: 18px;
    background-repeat: no-repeat;
    background-position: left 50%;
}

.search-wrapper .btn-primary{
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.accordion-button::after{
    content: '';
    width: 25px;
    height: 25px;
    background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 10.625H10.625V20H9.375V10.625H0V9.375H9.375V0H10.625V9.375H20V10.625Z" fill="%23003366"/></svg>');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}

.accordion-button:not(.collapsed)::after{
    content: '';
    width: 25px;
    height: 25px;
    background-image: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="UTF-8"%3F><svg id="b" data-name="Livello 2" xmlns="http://www.w3.org/2000/svg" width="20" height="1.25" viewBox="0 0 20 1.25"><g id="c" data-name="Livello 1"><rect width="20" height="1.25" style="fill: %23036;"/></g></svg>');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat; 
}

.accordion-item:last-of-type{
    border-radius: 0 !important;
}

.tiles-wrapper{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0;
}

.page-404 main{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}


/* Sidebar */

#sidebar-nav{
    border-top: 1px solid lightgray;
    margin-top: 14px;
}

.nav-pills .nav-link{
    border-left: 3px solid white;
    padding-top: 14px;
    padding-top: 14px;

}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link{
    background: white;
    color: black;
    border-radius: 0;
    border-left: 3px solid lightgray;
    display: block;
    width: 100%;
}

@media(max-width: 768px) {
    .navbar-brand{
        border: 1px solid gray;
        width: 100%;
        display: block;
        padding: 12px 20px 12px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .navbar-brand:hover{
        transform: scale(1);
    }
    .navbar-brand[aria-expanded=true]::after{
        content: '';
        display: block;
        width: 18px;
        height: 18px;

        background-image: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="UTF-8"%3F><svg id="b" data-name="Livello 2" xmlns="http://www.w3.org/2000/svg" width="20" height="1.25" viewBox="0 0 20 1.25"><g id="c" data-name="Livello 1"><rect width="20" height="1.25" style="fill: %23036;"/></g></svg>');

        background-size: contain;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .navbar-brand[aria-expanded=false]::after{
        content: '';
        display: block;
        width: 18px;
        height: 18px;

        background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 10.625H10.625V20H9.375V10.625H0V9.375H9.375V0H10.625V9.375H20V10.625Z" fill="%23003366"/></svg>');

        background-size: contain;
        background-position: center center;
        background-repeat: no-repeat;
    }
}

.page-home .img-wrapper{
    position: relative;
}

.page-home .btn-open-lightbox-media{
    position: absolute;
    bottom: 2rem;
    left: 2rem;
}


.tile2{
    margin-bottom: 25px;
    padding-right: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: rgba(50, 50, 51, 0.2) 0px 7px 20px 0px;
    display:flex;
}
.tile2 .img-wrapper{
    width:40%;
    background-color: #eee;
}
.tile2 .img-wrapper img{
    width:100%;
    height: 100%;
    object-fit: cover;
}
.tile2 .text-wrapper{
    padding: 20px;
    width: 60%;
}
.tile2 .text p {
    display: -webkit-box;
    -webkit-line-clamp: 5; /* numero di righe */
    -webkit-box-orient: vertical;
    max-height: calc(1.5em * 5); /* opzionale: per sicurezza */
    position: relative;
}

.tile2 .text p button {
    position: absolute;
    top: 0px;
    left: 0px;
    background-color: white;
    min-width: 130px;
}

.tile2 .text p button:hover {
    color: white;
    background-color: var(--bs-btn-hover-bg);
}

.tile2 .weblink{
    display: inline-block;
    color: #333; 
    margin: 5px 0;
}

.leggi-tutto a{
        color: #17324D !important;
}

@media(max-width: 992px){
    .tile2{
        flex-direction: column;
        padding: 0;
    }
    .tile2 .text-wrapper{
        padding: 20px;
        width: 100%;
    }
    .tile2 .img-wrapper{
        width:100%;
    }
}



.carousel-card .edita-cms.btn-open-lightbox-media {
    position: relative;
    top: -60px;
    left: 0;
    
}


/** video homepage **/

.video-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: rgb(11, 203, 197);
  margin-top: 5vh;
}

.video-wrapper {
  width: 100%;
  max-width: 990px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-frame {
  width: 100%;
  background: rgb(11, 203, 197);
  padding: 0;
  overflow: hidden;
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e9e9e9;
}



/** Selettori lingue **/

html[lang="en"] .langita {
  display: none;
}

html[lang="it"] .langeng {
  display: none;
}

/** card homepage **/

.home-card {
  display: block;
  text-decoration: none;
  background: #fff;
  overflow: hidden;
}
/* GRID dentro bootstrap */
.home-button {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* immagine */
.home-card img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* fascia turchese */
.home-card__label {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 60px;
  padding: 14px 18px;
  background: #19b7b5;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  box-sizing: border-box;
}



/* responsive */
@media (max-width: 1100px) {
  .col-12 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .col-12 {
    grid-template-columns: 1fr;
  }

  .home-card img {
    height: 220px;
  }
}

/** CARD target **/

/* distanza dalla sezione sopra */
.target-section {
  margin-top: 60px;
}

/* evita effetto "attaccato" */
.target-cards {
  margin-top: 20px;
}

/* card */
.target-card {
  background: #e9e6e6;
  padding: 40px 36px;
  height: 100%;
}

.target-card b {

    font-size: 28px;
}

/* cerchio */
.target-icon {
  width: 110px;
  height: 110px;
  background: #19b7b5;
  border-radius: 50%;
  margin-bottom: 24px;
}

/** CALL for action **/

.heroHome{
 height: 50vh;
  background-image: url("https://adu.unibo.it/pack/webmedia/homepage2.20260326120007.CMSmediamedia.png?s=2");
 background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
.call{
  min-height: 50vh;
  background-image: url("https://adu.unibo.it/pack/webmedia/calltoacti.20260326134226.CMSmediamedia.png?s=6");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}