@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Barlow:ital,wght@0,100;0,200;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {

    --static-background: #BFBFBF;
    --navbar-background: #02274c;

    --text--white: white;
    --text--black: black;

    --w-white: white;
    --w-black: black;
    --w-grey: #e9e9e9;
    --w-midnight: #222940;
    --w-blue: #0448d5;
    --w-orange: #fc6d49;
    --w-yellow: #FFC34A;
    --w-green: #26A646;
    --w-crimson: #f22e52;

}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Barlow Semi Condensed', sans-serif;
}

body::-webkit-scrollbar {
    width: 0;
    background-color: transparent;
}


* {
    margin: 0;
    padding: 0;
    font-family: 'Barlow Semi Condensed', sans-serif;
}

h1 {
    font-size: 42px;
}

h2 {
    font-size: 38px;
}

h3 {
    font-size: 36px;
}

h4 {
    font-size: 34px;
}

h5 {
    font-size: 32px;
}

h6 {
    font-size: 30px;
}

a,
p {
    font-size: 18px;
}

button,
a {
    text-decoration: none;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}

/* .css selection on browser */
::selection {
    color: var(--w-white);
    background-color: var(--w-blue);
}

/* end */

.iite-background {
    width: 100vw;
    height: auto;
}

.iite-icon {
    padding: 0 10px 0 10px;
}

.background-page {
    position: relative;
}

.translate {
    position: fixed;
    right: 50px;
    bottom: 50px;
    z-index: 999;
    transition: right 0.5s cubic-bezier(.77,.2,.32,1), left 0.5s cubic-bezier(.77,.2,.32,1), opacity 0.4s, transform 0.4s, box-shadow 0.3s;
    opacity: 1;
    transform: scale(1);
}

.translate:hover {
    transform: scale(1.07);
}

.container-translate {
    border-radius: 50%;
}

.container-translate>span {
    display: flex;
    width: 56px;
    height: 58px;
    color: #222940;
    font-size: 16px;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--w-white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.container-translate:hover>span {
    color: var(--w-white);
    background-color: var(--w-blue);
}

.container-translate.blue {
    color: white;
    background-color: #0448d5;
}

.lang-menu li.active {
    color: var(--w-blue);
    font-weight: bold;
}

.lang-switcher {
    position: absolute;
    bottom: 75px;
    left: -11px;
    background-color: white;
    border-radius: 16px;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.90);
    transition: all 0.3s ease;
}

.lang-switcher.show {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.lang-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lang-menu li {
    padding: 10px 15px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.4px;
    text-align: center;
    transition: background 0.3s;
    cursor: pointer;
}

.lang-menu li:hover {
    color: var(--w-blue);
}

.lang-feedback.show {
    opacity: 1;
}

.container-cookies {
    position: fixed;
    bottom: 50px;
    left: 50px;
    padding: 20px;
    max-width: 200px;
    width: auto;
    height: auto;
    background-color: var(--w-white);
    border-radius: 16px;
    box-sizing: unset;
    transition: opacity 0.4s ease, transform 0.8s cubic-bezier(.77,.2,.32,1);
    z-index: 9;
    opacity: 1;
    transform: translateX(0);
}

.container-cookies.hide {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-120%);
}

.container-cookies>h5 {
    font-size: 16px;
    font-weight: 600;
}

.container-cookies>p {
    margin-top: 10px;
    color: var(--w-black);
    font-size: 14px;
}

.container-cookies>a {
    display: inline-block;
    margin-top: 10px;
    color: #0448d5;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: all 0.2s ease;
}

.container-cookies>a:hover {
    font-size: 13px;
    color: #383838;
}

.btn-cookies-accept {
   display: inline-block;
   margin-top: 15px;
   padding: 10px 15px;
   width: 100%;
   height: auto;
   color: white;
   font-weight: 600;
   background-color: var(--w-blue);
   border-radius: 16px;
   transition: background 0.3s, transform 0.2s;
}

.btn-cookies-accept:hover {
   background-color: var(--w-black);
   transform: scale(1.04);
}

.btn-cookies-decline {
   display: inline-block;
   margin-top: 10px;
   padding: 10px 15px;
   width: 100%;
   height: auto;
   color: black;
   font-weight: 600;
   background-color: rgb(206, 206, 206);
   border-radius: 16px;
   transition: background 0.3s, transform 0.2s;
}

.btn-cookies-decline:hover {
   color: black;
   background-color: rgb(206, 206, 206);
   transform: scale(1.04);
}

.w-display-none {
    display: none;
}

.w-background-black {
    background-color: #1b1b1b;
}

.image-info {
    position: absolute;
    bottom: 40px;
    right: 100px;
    width: 150px;
    padding: 10px 10px 15px 10px;
}

.image-info>a {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.4px;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: all 0.2s ease;
}

.image-info>a:hover {
    color: rgb(196, 196, 196);
    text-decoration: underline dotted;
}

/* Company Scroll Styles */
.company-scroll-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.company-sections-wrapper {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.77, 0.2, 0.32, 1);
}

.company-section {
    width: 50%;
    flex-shrink: 0;
}

/* Controlli di navigazione accessibili */
.company-scroll-controls {
    position: fixed;
    top: 55%;
    right: 25px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.scroll-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: var(--w-grey);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--w-midnight);
}

.scroll-btn:hover {
    background-color: var(--w-blue);
    color: white;
    transform: scale(1.05);
}

.scroll-btn:focus {
    outline: none;
}

.scroll-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.scroll-btn:disabled:hover {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--w-midnight);
}

.scroll-btn .material-symbols-outlined {
    font-size: 20px;
}

.btn-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Indicatori accessibili */
.company-scroll-indicators {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator:focus {
    outline: none;
    border-color: var(--w-blue);
    box-shadow: 0 0 0 3px rgba(4, 72, 213, 0.3);
}

.indicator.active {
    background-color: var(--w-blue);
    transform: scale(1.3);
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .company-scroll-controls {
        right: 15px;
        gap: 10px;
    }
    
    .scroll-btn {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .scroll-btn .material-symbols-outlined {
        font-size: 18px;
    }
    
    .btn-text {
        display: none;
    }
    
    .company-scroll-indicators {
        bottom: 20px;
    }
}

/* Responsive for departments */
@media (max-width: 768px) {
    .inside-departments {
        padding: 20px;
    }
    
    .grid-inside-departments {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .department-title-white {
        font-size: 20px;
    }
}