/* ================================================
   ABOUT.CSS - Consolidated Stylesheet
   ================================================ */

/* ================================================
   BASIC RESET
   ================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden !important;
    height: 100%;
}

body {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background: #FFFFFF;
    line-height: 1.6;
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================================================
   HEADER - Fixed top
   ================================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 30px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.logo-holder img {
    height: 50px;
    width: auto;
}

.nav-holder nav ul {
    display: block; /* Cambiato da flex per iOS 12 */
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right; /* Allinea a destra */
}

.nav-holder nav ul li {
    display: inline-block; /* Le voci affiancate orizzontalmente */
    margin-left: 24px; /* Spazio tra le voci */
}

.nav-holder nav ul li:first-child {
    margin-left: 0;
}

.nav-holder nav ul li a {
    text-decoration: none;
    color: #888;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

.nav-holder nav ul li a.act-link {
    padding: 8px 12px;
    margin: -8px -12px;
}

.nav-holder nav ul li a.act-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #d0d0d0;
    transition: all 160ms linear;
    z-index: -1;
}

.nav-holder nav ul li a:hover {
    color: #000;
}

.nav-holder nav ul li a.act-link:hover {
    color: #ccc;
}

.nav-holder nav ul li a.act-link:hover:before {
    height: 0;
}

/* ================================================
   CONTENT CONTAINER
   ================================================ */
.content-holder {
    padding-top: 90px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* ================================================
   ABOUT PAGE STYLES
   ================================================ */
.about-container {
    max-width: 990px;
    margin: 0 auto;
    padding: 80px 40px 60px;
    text-align: left;
}

/* Language Toggle */
.lang-toggle {
    text-align: center;
    margin-bottom: 30px;
    padding: 0;
}

.lang-toggle button {
    background: none;
    border: none;
    font-family: 'Work Sans', sans-serif;
    font-size: 17px;
    cursor: pointer;
    padding: 0 8px;
    letter-spacing: 1px;
    color: #999;
    transition: color 0.3s ease;
}

.lang-toggle button.active {
    color: #000;
    font-weight: bold;
}

.lang-toggle button:hover {
    color: #000;
}

.lang-toggle .separator {
    color: #ccc;
    margin: 0 3px;
}

/* About Sections */
.about-section {
    margin-bottom: 60px;
}

.about-section h2 {
    font-family: 'Cormorant', serif;
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    margin-top: 0;
    font-weight: 600;
}

.about-section p {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    line-height: 28px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 400;
}

/* Grassetto esplicito */
.about-section p strong {
    font-weight: 700;
}

/* Forza i corsivi */
.about-section p em,
.about-section em {
    font-style: italic;
}

.about-section p + p {
    margin-top: -10px;
}

/* Images */
.about-image {
    width: 100%;
    max-width: none;
    height: auto;
    display: block;
    margin: 50px auto;
}

.about-image.horizontal {
    max-width: 900px;
}

.about-image-small {
    width: 30%;
    max-width: 250px;
    height: auto;
    display: block;
    margin: 50px auto;
}

.image-row {
    text-align: center;
    margin: 50px auto;
    max-width: 990px;
}

.about-image-small.inline-2 {
    width: 50%;
    max-width: none;
    display: inline-block;
    vertical-align: top;
    margin: 0;
    padding: 0;
}

.about-image-small.inline-3 {
    width: 33.33%;
    max-width: none;
    display: inline-block;
    vertical-align: top;
    margin: 0;
    padding: 0;
}

/* Language Content */
.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

/* About Hero */
.about-hero {
    text-align: center;
    margin-bottom: 80px;
}

.about-hero h1 {
    font-family: 'Cormorant', serif;
    font-size: 36px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-hero .subtitle {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    color: #666;
    text-transform: uppercase;
    font-weight: 400;
    text-align: center;
    display: block;
    margin: 0 auto;
}

/* Scroll margin for anchor links */
.about-section[id] {
    scroll-margin-top: 100px;
}

/* Text center utility */
.about-section.text-center,
.about-section.text-center p {
    text-align: center !important;
}

/* Lists */
.about-section ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.about-section ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    line-height: 28px;
    color: #333;
}

.about-section ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #333;
    font-size: 18px;
}

/* Intro large paragraph */
.intro-large {
    font-size: 19px !important;
    line-height: 30px !important;
}

/* ================================================
   FOOTER - Fixed bottom
   ================================================ */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.copyright {
    font-size: 10px;
    color: #aaa;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ================================================
   HAMBURGER MENU (hidden on desktop)
   ================================================ */
.hamburger {
    display: none;
}

/* ================================================
   RESPONSIVE - TABLET
   ================================================ */
@media only screen and (max-width: 1024px) {
    .about-container {
        padding: 70px 30px 50px;
    }
}

/* ================================================
   RESPONSIVE - MOBILE
   max-width: 940px OR max-height: 600px
   ================================================ */
@media only screen and (max-width: 940px), 
       only screen and (max-height: 600px) {
    
    /* Hide logo and copyright */
    .logo-holder {
        display: none;
    }
    
    footer {
        display: none;
    }
    
   /* Show hamburger */
    .hamburger {
        display: flex;
        flex-direction: column;
        /*gap: 6px; rimosso per aggiustare su ios 12 dove non è supportato*/
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        position: fixed;
        top: 15px;
        right: 20px;
        z-index: 1002;
    }
    
    .hamburger span {
        margin: 3px 0;  /* aggiunto per ios12 */
        width: 35px;
        height: 5px;
        background: #666;
        transition: all 0.2s ease;
    }
    
    .hamburger:hover span {
        background: #666;
    }
    
    /* Hamburger animation when open */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Header transparent */
    header {
        background: transparent;
        padding: 0;
    }
    
    .header-inner {
        display: block;
    }
    
    /* Navigation overlay fullscreen */
.nav-holder {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95);
    /* backdrop-filter rimosso per iOS 12 */
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    padding: 40px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.nav-holder.active {
    opacity: 1;
    pointer-events: all;
}

.nav-holder nav ul {
    text-align: center;
    width: 100%;
}

.nav-holder nav ul li {
    display: block;
    margin-bottom: 20px;
}

.nav-holder nav ul li:last-child {
    margin-bottom: 0;
}

.nav-holder nav ul li a {
    font-size: 16px;
}

.nav-holder nav ul li a:hover {
    color: #000;
}

.nav-holder nav ul li a:hover {
    color: #000;
}

    .lang-toggle button {
        font-size: 19px;  /* o il valore che preferisci */
    }

    
    /* Content adjustments */
    .content-holder {
        padding-top: 60px;
        padding-bottom: 20px;
    }
    
    .about-container {
        padding: 60px 20px 40px;
    }
    
    .about-hero h1 {
        font-size: 28px;
        letter-spacing: 2px;
    }
    
    .about-section h2 {
        font-size: 20px;
        letter-spacing: 1.5px;
    }
    
    .about-section p {
        font-size: 14px;
        line-height: 24px;
    }
    
    .about-image {
        margin: 35px auto;
    }
}

@media only screen and (max-width: 540px) {
    .about-container {
        padding: 50px 15px 30px;
    }
    
    .about-hero h1 {
        font-size: 24px;
    }
    
    .about-section h2 {
        font-size: 18px;
    }
    
    .about-image {
        margin: 30px auto;
    }
    
    .about-image-small.inline-3 {
        width: 100%;
        display: block;
        margin-bottom: 20px;
    }
    
    .image-row {
        margin: 30px auto;
    }
}
