body {
    width: 100%;
    background-color: #0b0b0b; /* dark background */
    color: #eaeaea; /* default text color */
    margin: 0% !important;
    padding: 0% !important;
    font-family: 'Cormorant Garamond', serif;    
}

/* Make unstyled anchors inherit light color by default */
a { color: inherit; }

@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cooper+Hewitt:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700&display=swap');

/* Load Kollektif (Bold) via CDN since it's not on Google Fonts */
@font-face {
    font-family: 'Kollektif';
    font-style: normal;
    font-weight: 700;
    src: url('https://fonts.cdnfonts.com/s/19691/Kollektif-Bold.woff') format('woff');
    font-display: swap;
}

:root {
    --footer-size: clamp(0.6rem, 0.8vw + 0.3rem, 0.95rem);
    --nav-size: calc(var(--footer-size) * 1.2);
    --h1-size: clamp(2.2rem, 5.5vw, 6.25rem);
}

::selection {
    color: #fff;
    background: #000;
}
::-moz-selection {
    color: #fff;
    background: #000;
}

/* Footer uses a responsive variable so headers can scale proportionally */
.copyright {
    width: 100%;
    margin-bottom: 0.25%;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.1em;
    font-size: calc(var(--footer-size) * 1.2);
    color: #eaeaea;
}  
@media (max-width: 575.98px) {
    .copyright {
        font-size: calc(var(--footer-size) * 0.6);
    }
} 
#progettih1 {
    display: none;
}

.docuh1 {
    color: #eaeaea;
    font-weight: 300;
    font-size: 7.5vw;
    line-height: 2em;
    margin-top: 0%;
    margin-bottom: 0%;
    letter-spacing: 1vw;
} 

.docusection {
    width: 100%;
}
.docudivcont {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10%;
}
.docuparcont {
    margin-bottom: 5%;
}
.docuh2 {
    font-family: 'Montserrat', sans-serif;
    margin: 0%;
    color: #00979E;
    font-size: 2.5em;
    font-weight: 400;
    letter-spacing: 0.2vw;
    text-align: center;
}
.docudivconth2 {
    width: 100%;
    text-align: center;
    margin-bottom: 5%;
}
.docuh3 {
    font-family: 'Montserrat', sans-serif;
    margin: 0%;
    color: #00979E;
    font-size: 2em;
    font-weight: 400;
    letter-spacing: 0.2vw;
    margin-bottom: 5%;
}
.docuh4 {
    font-family: 'Montserrat', sans-serif;
    margin: 0%;
    font-size: 1.6em;
    font-weight: 400;
    letter-spacing: 0.1vw;
    margin-bottom: 1.5%;
}
.docutext {
    margin: 0%;
    font-size: 1.6em;
    font-weight: 400;
    line-height: 1.5em;
    color: #ddd;
}
.docutext a {
    color: black;
    text-decoration: underline #00979e;
}
.docuimg {
    width: 100%;
    height: auto;
    margin-top: 5%;
    margin-bottom: 5%;
}

.docuimg2 {
    margin-top: 2%;
    margin-bottom: 2%;
    width: 45%;
    height: auto;
}
.docuimgcont {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.docuparcont ul {
    list-style-type: disc #00979e;
}
.docuparcont ul li {
    margin: 0%;
    font-size: 1.4em;
    font-weight: 400;
    line-height: 1.4em;   
}

.homeheader {
    height: 100dvh;
    background-image: url('../img/spiaggiaPescara.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    align-content: center;
    padding-top: 0px;
    text-align: center;
    position: relative;
}
.homeheader::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
    pointer-events: none;
}
.h1container { position: relative; z-index: 3; } 

/* Page-specific covers (images are in project root) */
.people .homeheader { background-image: url('../people.webp'); }
.skies .homeheader { background-image: url('../skies.webp'); }
.world .homeheader { background-image: url('../world.webp'); }

/* Remove the dark overlay for gallery pages so the fixed nav doesn't show as a black bar on reload */


nav {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 50;
    transform: translateY(0);
    will-change: transform;
    transition: transform 0.35s ease;
    -webkit-transition: -webkit-transform 0.35s ease;
    font-family: 'Montserrat', sans-serif;
} 

/* class toggled by JS to hide the nav (use transform for reliable performance) */
nav.nav-hidden {
    transform: translateY(-120%);
    pointer-events: none;
}  

.linkbox{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: normal;
    justify-content: normal;
    align-items: normal;
    position: relative;
    padding-top: 3%;
    padding-right: 0%;
    padding-bottom: 0%;
    padding-left: 7%;
}


.spacer {
    display: block;
    width: 100%;
}

.h1container {
    height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column; /* stack H1 and subtitle vertically */
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.6rem; /* consistent spacing between heading and subtitle */
}

h1 {
    color: #eaeaea;
    font-family: 'Kollektif', serif;
    font-weight: 700; /* bold */
    font-size: 7.5vw;
    line-height: 2em;
    margin-top: 0%;
    margin-bottom: 0%;
    text-transform: uppercase;
    letter-spacing: -0.05em;
}  

.title_lines h2 {
    font-family: 'Cormorant Garamond', serif;
    color: #eaeaea;
    font-weight: 300;
} 

a.active {
    color: #eaeaea;
    font-weight: 700;
} 

.title {
    padding-right: 7%;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    color: #eaeaea;
    font-weight: 700;
    font-size: var(--nav-size);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}  


.coversocial {
    width:100%;
    position: absolute;
    bottom: 3%;
}

#homeh1 {
    font-family: 'Bebas Neue', 'League Spartan', Helvetica, Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    font-size: clamp(3rem, 9vw, 12rem);
    margin: 0;
    letter-spacing: 0.08em;
    text-shadow: 0 6px 20px rgba(0,0,0,0.6);
    line-height: 0.9;
} 

/* Use Kollektif for the big H1 on index and gallery pages */
.index #homeh1,
.people #homeh1,
.skies #homeh1,
.world #homeh1 {
    font-family: 'Kollektif', 'Cooper Hewitt', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    color: #ffffff;
    text-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

/* Small subtitle under the big header (Montserrat) */
.homesubtext {
    display: block;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    color: rgba(255,255,255,0.95);
    font-size: clamp(1rem, 2.6vw, 1.6rem); /* H3-like size */
    font-weight: 400;
    line-height: 1.2;
    /* margin-top: 0.75rem; space below the H1 */
    margin-top: 0.25rem;
    letter-spacing: 0.06em;
    text-transform: none;
    z-index: 4;
} 

.coverinstagram {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(0.9rem, 2.2vw, 1.1rem); /* larger, responsive */
    letter-spacing: 0.12em;
    color: whitesmoke;
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    position: relative;
    z-index: 5; /* above header overlay */
    transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.coverinstagram:hover, .coverinstagram:focus {
    color: #fff;
    background: rgba(0,151,158,0.92);
    transform: translateY(-2px);
    outline: none;
}

.coverinstagram:focus {
    box-shadow: 0 6px 18px rgba(0,151,158,0.18);
} 

.coverflickr {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 0.5em;
    letter-spacing: 0.2em;
    color: whitesmoke;
}

.coverflickr:hover {
    color: #00979E
} 

a:hover {
    text-decoration: none !important;
    color: #00979e;
}

.title_lines {
    margin-top: 10%;
    margin-bottom: 10%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
}
.title_lines h2 {
    font-size: 4vw;
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* Gallery H1: Roboto Condensed, uppercase, responsive */
.gallery h1 {
    font-family: 'Roboto Condensed', 'League Spartan', Arial, sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    font-size: clamp(2.2rem, 5.2vw, 4.6rem);
    letter-spacing: 0.12em;
    margin: 1.2rem 0;
    text-align: center;
}

.title_lines:before, .title_lines:after {
    position: absolute;
    top: 51%;
    overflow: hidden;
    width: 30%;
    height: 1px;
    content: '\a0';
    background-color: #00979E;
    margin-left: 20%;
}
.title_lines:before {
    margin-left: -50%;
    text-align: right;
}


/* Masonry-like (grid) layout preserving DOM order (left-to-right). Uses CSS Grid + small JS to calculate row spans */
.portfoliocontainer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 8px; /* small row height to allow precise spanning */
    gap: 1.5rem;
    padding: 0;
    margin: 0 auto;
    max-width: 1100px; /* width for up to 3 columns */
    box-sizing: border-box;
}

/* Desktop: 3 columns */
@media (min-width: 1100px) {
    .portfoliocontainer { grid-template-columns: repeat(3, 1fr); }
}

/* Medium screens: 2 columns */
@media (min-width: 700px) and (max-width: 1099px) {
    .portfoliocontainer { grid-template-columns: repeat(2, 1fr); max-width: calc(2 * 320px + 1.5rem); }
}

/* Small screens: 1 column */
@media (max-width: 699px) {
    .portfoliocontainer { grid-template-columns: 1fr; padding: 0 3%; gap: 1rem; max-width: 100%; }
}

.portfolioimage {
    display: block;
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: #0f0f0f; /* dark card background */
    align-self: start;
} 

.portfoliocontainer img {
    width: 100%;
    height: auto; /* preserve original aspect ratio */
    display: block;
}

/* Lightbox styles */
#lightbox { display:none; position:fixed; inset:0; background: rgba(0,0,0,0.95); align-items:center; justify-content:center; z-index:9999; }
#lightbox.open { display:flex; }
#lightbox .lightbox-img { max-width:90%; max-height:90%; box-shadow: 0 10px 30px rgba(0,0,0,0.7); }
#lightbox .lb-btn { position:absolute; top:50%; transform:translateY(-50%); background:none; border:none; color:#fff; font-size:3rem; cursor:pointer; padding:1rem; }
#lightbox .lb-close { position:absolute; top:1rem; right:1rem; font-size:2rem; background:none; border:none; color:#fff; cursor:pointer; }
#lightbox .lb-prev { left:1rem; }
#lightbox .lb-next { right:1rem; }
@media (max-width: 575.98px) {
    #lightbox .lb-btn { font-size:2rem; padding:0.6rem; }
    #lightbox .lb-close { font-size:1.2rem; }
}







footer {
    margin-top: 3rem; /* reduced gap so galleries don't leave excessive space before the footer */
} 

#indexfooter {
    margin-top: 0% !important;
}

.widefooterlinks{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
}
.contactfooter {
    margin: 0% 2.5% 0% 0%;
}
.contactfooter p {
    text-align: right;
    margin: 0%;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 0.8em;
    letter-spacing: 0.1em;
}
.contactfooter a {
    text-decoration: none;
    color: black;
    transition: 0.25s ease-in-out;
    text-decoration: underline #00979E;
}
.contactfooter a:hover {
    text-decoration: none;
    color: #00979E;
}
.mbot5 {
    margin-bottom: 2% !important;
}
.socialfooter {
    width: 100%;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5vw;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.socialcontainerfooter {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    margin: 0% 0% 0% 2.5%;
}
.coverinstagram2 {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 0.8em;
    letter-spacing: 0.1em;
    color: black;
    transition: 0.25s ease-in-out;
    text-decoration: underline #00979E;
}
.coverflickr2 {
    margin-bottom: 2%;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 0.8em;
    letter-spacing: 0.1em;
    color: black;
    transition: 0.25s ease-in-out;
    text-decoration: underline #00979E;
}
#coverinstagram2:hover {
    text-decoration: none;
    color: #00979E;
}
#coverflickr2:hover {
    text-decoration: none !important;
    color:#00979E;
}



.continue {
    text-align: center;
}

.continue p {
    margin: 0%;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.8em;
    letter-spacing: 0.2em;
    color: #00979E;
}
.continue a {
    color: black;
    text-decoration: underline #00979e;
}
.continue a:hover {
    color: #00979e;
}



.footerbar p {
    font-family: 'Montaserrat', sans-serif;
    font-size: 1.5em;
    font-weight: 100;
}



.containerfooter {
    height: 40vh;
    width: 100%;
    margin-bottom: 0.25%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: normal;
    align-items: normal;
    justify-content: space-around;
    overflow: hidden !important;
    overflow-x: hidden;
    overflow-y: hidden;
}

div.containerfooterleft {
    width: 49%;
    text-decoration: none;
    overflow: hidden;
}
div.containerfooterright {
    width: 49%;
    text-decoration: none;
    overflow: hidden;
}


.leftfooter {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    width: 100%;
    height: 100%;

    transition: 0.75s ease-in-out;
    overflow: hidden;
}
.panoramifooter {
    background-image: url('../img/Panoramicover.jpg');
    background-size: cover;
    background-position: center;
}
.rightfooter {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    width: 100%;
    height: 100%;

    transition: 0.75s ease-in-out;
    overflow: hidden;
}
.ipsfooter {
    background-image: url('../img/Ipscover.jpg');
    background-size: cover;
    background-position: center;
}
.esclusionifooter{
    /* background image removed (moved to img/ritagli.bak) */
    background: none;
}

.leftfooter p {
    transition: 0.75s ease-in-out;
} 
.rightfooter p {
    transition: 0.75s ease-in-out;
}

a.linkcontainerleft {
    text-decoration: none;
    width: 100%;
    height: 100%;
}
a.linkcontainerright {
    text-decoration: none;
    width: 100%;
    height: 100%;
}

div.leftfooter:hover {
    transform: scale(1.1);
}
div.rightfooter:hover {
    transform: scale(1.1);
}

div.leftfooter:hover p {
    transform: scale(0.9);
}
div.rightfooter:hover p {
    transform: scale(0.9);
}


.footertext {
    margin: 0%;
    text-align: center;
    text-decoration: none;
    color: whitesmoke;
    font-size: 3.5vw;
    font-weight: 500;
    letter-spacing: 0.1em;
}



/* PROJECTS PAGE */

.projheader {
    height: 100dvh;
    background-image: url('../img/alberiproj.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.projectslistcontainer {
    width: 100%;
    height: 100dvh;
}

.projectslistcontainer ul {
    margin: 0%;
    padding: 0%;
    height: 50%;
    width: 100%;
    position: absolute;
    top: 25%;
    list-style: none;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-around;
}
.progettih2 {
    font-weight: 300;
}

.projectslist li {
    margin: 0%;
    color: white;
    font-size: 3vw;
    letter-spacing: 0.1em;
}

.coversocialproj {
    position: absolute;
    bottom: 3%;
    width: 100%;
    align-items: center;
    text-align: center;
}

@media (max-width: 719.98px) {
    .projectslist li {
        font-size: 5vw;
    }
}

.projlink {
    text-decoration: none;
    color: whitesmoke;
}











/* ESCLUSIONI */

.insideprojheader {
    position: relative;
    height: 100dvh;
}
.projheadertitlecont {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    height: 100%;
}
.projh1cont {
    width: 100%;
}

.h1proj {
    font-size: 10vw;
    font-weight: 400;
    color: black;
    letter-spacing: 0.2vw;
    text-align: center;
}
header .projyear {
    width: 100%;
    text-align: center;
}
.projyear p {
    margin: 0%;
    font-family: 'Montaserrat', sans-serif;
    color: #00979E;
    font-weight: 400;
    font-size: 3vw;
    letter-spacing: 0.2vw;
}



.banneresclusioni {
    /* background image removed (moved to img/ritagli.bak) */
    background: none;
    height: 80vh;
    width: 100%;
    margin-bottom: 10%;
}

.projexpl {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: baseline;
    width: 80%;
    margin-top: 10%;
    margin-right: auto;
    margin-bottom: 10%;
    margin-left: auto;
}

.projexplleft {
    width: 50%;
}

.ilprogetto {
    font-size: 6vw;
    font-weight: 400;
    margin: 0%;
    letter-spacing: 0.1vw;
}


.ilprogetto b {
    font-family: 'Montserrat', sans-serif;
    color: #00979E;
    font-weight: 700;
    font-size: 8vw;
}

.projexplright {
    padding-left: 10%;
    width: 50%;
}
.projexpltext {
    text-align: right;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2vw;
    font-weight: 300;
    letter-spacing: 0.1vw;
    line-height: 1.5em;
    margin-top: 0%;
}



.esclusionimaincontainer {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    width: 90%;
    margin-top: 10%;
    margin-right: auto;
    margin-left: auto;
}

.esclusionicontainerleft {
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    width: 40%;
    padding-right: 5%;
}
.esclusionicontainerright {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    position: relative;
    width: 40%;
    padding-left: 5%;
}

.esclusionicontainerleft img {
    width: 100%;
}

strong {
    font-weight: 600;
}
.projexpltext strong, b {
    font-weight: 500;
}
.esclnumb {
    font-family: 'Montserrat', sans-serif;
    margin: 0%;
    margin-bottom: 1%;
    color: #00979E;
    font-size: 1.8em;
    font-weight: 400;
    letter-spacing: 0.1vw;
}
.escltext {
    margin: 0%;
    font-size: 1.4em;
    font-weight: 400;
    line-height: 1.4em;
}

.esclcontrightII {
    text-align: right;
    align-items: flex-end;
    padding-left: 0%;
    padding-right: 5%;
}
.esclcontleftII {
    padding-left: 5%;
    padding-right: 0%;
}

.escltext a {
    color: black;
    text-decoration-color: #00979E;
}
.escltext a:hover {
    color: #00979E;
}

.imgpad {
    padding-right: 0%;
    padding-left: 2.5%;
}

.lastesclustext {
    width: 50%;
    margin-right: auto;
    margin-bottom: 10%;
    margin-left: auto;
    padding-top: 5%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    text-align: center;
}













/* IPS TYPOGRAPHUS */


.bannerips {
    background-image: url('../img/Ceppi.jpg');
    background-position: top;
    background-size: cover;
    height: 80vh;
    width: 100%;
}

.ipsmaincontainervert {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 60%;
    margin-top: 10%;
    margin-right: auto;
    margin-left: auto;
}

.ipscontainerver1 {
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-bottom: 5%;
}
.ipscontainerver1 img {
    width: 100%;
}

.ipscontainerver2 {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: left;
    position: relative;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    align-items: left;
    text-align: left;
}


.ipslastesclustext {
    width: 65%;
    margin-top: 5%;
    margin-right: 30%;
    margin-left: 10%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: left;
    text-align: left;
}



.ipsmaincontainernowr {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
    margin-top: 20%;
    margin-right: auto;
    margin-left: auto;
}

.ipscontainerleftnowr {
    width: 48%;
    padding-right: 2%;
}
.ipscontainerrightnowr {
    width: 48%;
    padding-left: 2%;
}

.ipscontainerleftnowr img {
    width: 100%;
    height: 100%;
}
.ipscontainerrightnowr img {
    width: 100%;
    height: 100%;
}


.ipsverticalcontainer {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    width: 60%;
    margin-top: 10%;
    margin-left: auto;
    margin-right: auto;
}
.ipsverticalcontainertop {
    width: 100%;
    padding-bottom: 15%;
}
.ipsverticalcontainerbottom {
    width: 100%;
}
.ipsverticalcontainertop img {
    width: 100%;
}
.ipsverticalcontainerbottom img {
    width: 100%;
}

.ipscontainerbottom {
    margin-top: 5%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}
.ipscontainerbottomleft {
    width: 25%;
    padding-right: 2.5%;
}
.ipscontainerbottomright {
    width: 70%;
    padding-left: 2.5%;
}
.ipscontainerbottomleft img {
    width: 100%;
}
.ipscontainerbottomright img {
    width: 100%;
}

.inverseipscontainerbottom {
    margin-top: 5%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}
.inverseipscontainerbottomleft {
    width: 70%;
    padding-right: 2.5%;
}
.inverseipscontainerbottomright {
    width: 25%;
    padding-left: 2.5%;
}
.inverseipscontainerbottomleft img {
    width: 100%;
}
.inverseipscontainerbottomright img {
    width: 100%;
}


.ipsorizimg {
    margin-top: 5%;
    margin-left: 5%;
    margin-right: 5%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 90%;
}

.ipsdoubleimgcontainer {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;  
    width: 70%;
    margin-top: 10%;
    margin-left: 15%;
    margin-right: 15%;
}
.ipsdoubleimgleft {
    width: 97.5%;
    padding-right: 2.5%;
}
.ipsdoubleimgright {
    width: 97.5%;
    padding-left: 2.5%;
}
.ipsdoubleimgleft img {
    width: 100%;
}
.ipsdoubleimgright img {
    width: 100%;
}

.singleorizimg {
    width: 60%;
    margin-top: 10%;
    margin-left: auto;
    margin-right: auto;
}
.singleorizimg img{
    width: 100%;
}

.fonticontainer {
    width: 80%;
    margin-top: 10%;
    margin-right: auto;
    margin-left: auto;
}
.fonticontainer ul {
    text-align: left;
    list-style: none;
}
.fontititle {
    font-family: 'Montaserrat', sans-serif;
    font-size: 0.9em;
    letter-spacing: 0.1vw;
    font-weight: 400;
}
.fontititle2 {
    font-family: 'Montaserrat', sans-serif;
    font-size: 0.9em;
    letter-spacing: 0.1vw;
    font-weight: 400;
}

.fonticontainer ul a {
    color: black;
    text-decoration: underline;
    text-decoration-color: #00979E;
    text-decoration-thickness: 1px;
}
.fonticontainer ul a:hover {
    color: #00979E;
}

.fonti {
    padding-left: 0%;
}
.fonti ul {
    padding-left: 0%;
}


@media (max-width: 1024.5px) {
    .banneresclusioni {
        height: 60vh;
    }
    .bannerips {
        height: 60vh;
    }
}

@media (max-width:767.98px) {

    .cittext {
        font-size: 1em;
    }
    .projexpltext {
        font-size: 1.6vw;
    }

}

@media (max-width: 575.98px) {
    h1 {
        font-size: 14vw;
    }

    .projexpl {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    .projexplleft {
        width: 100%;
        padding-bottom: 5%;
    }
    .projexplright {
        width: 100%;
    }
    .projexpltext {
        text-align: left;
    }

    #constructionfooter {
        position: absolute;
        width: 100%;
        bottom:0;
    }
    #constructionheader {
        height: 80vh;
    }
    .ilprogetto {
        font-size: 9vw;
    }
    .projexpltext {
        font-size: 2.4vw;
    }
    .projexplright {
        padding-left: 0% !important;
    }
    .esclusionimaincontainer {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: 95%;
        margin-right: auto;
        margin-left: auto;
    }
    .esclusionicontainerleft {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
        padding: 0%;
        margin-bottom: 5%;
    }
    .esclusionicontainerright {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
        padding: 0%;
        align-items: center;
        text-align: left;
    }
    .esclnumb {
        margin-bottom: 2%;
        font-size: 1.5em;
    }
    .escltext {
        font-size: 1.2em;
        line-height: 1.4em;
    }
    .esclcontrightII {
        padding: 0%;
    }
    
    .esclcontleftII {
        padding: 0%;
    }
    .esclcontII {
        display: flex;
        flex-direction: column-reverse;
    }

    .lastesclustext {
        width: 70%;
    }
    .containerleftnowr {
        width: 49%;
        padding-right: 1%;
    }
    .containerrightnowr {
        width: 49%;
        padding-left: 1%;
    }

    /* Ips Typographus */

    .bannerips {
        height: 40vh;
    }
    .ipslastesclustext {
        width: 90%;
        margin-bottom: 0%;
        margin-left: auto;
        margin-right: auto;
    }

    .ipsmaincontainervert {
        width: 90%;
    }
    .ipsmaincontainernowr {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        width: 100%;
        margin-right: auto;
        margin-left: auto;
    }
    .ipscontainerleftnowr {
        margin-right: 5%;
        width: 95%;
        margin-bottom: 1%;
        padding: 0%;
    }
    .ipscontainerrightnowr {
        margin-left: 5%;
        width: 95%;
        padding: 0%;
    }

    #ipsimg1di2 {
        margin-bottom: 5%;
    }
    .ipscontainerleft img {
        width: 100%;
    }


    .ipsdoubleimgcontainer {
        display: flex;
        flex-direction: column;
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .ipsdoubleimgleft {
        padding: 0%;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 12%;
    }
    .ipsdoubleimgright {
        padding: 0%;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .ipscontainerbottom {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        width: 90%;
        margin-top: 10% !important;
        margin-left: auto;
        margin-right: auto;
    }
    .ipscontainerbottomleft {
        width: 90%;
        padding: 0%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 10%;
    }
    .ipscontainerbottomright {
        width: 100%;
        padding-left: 0%;
    }

    .ipsverticalcontainer {
        width: 90%;
    }
    .ipsverticalcontainertop {
        padding-bottom: 12% !important;
    }
    .inverseipscontainerbottom {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        width: 90%;
        margin-top: 10% !important;
        margin-left: auto;
        margin-right: auto;
    }
    .inverseipscontainerbottomleft {
        width: 100%;
        margin-bottom: 10%;
        padding: 0%;
    }
    .inverseipscontainerbottomright {
        width: 90%;
        padding: 0%;
        margin-left: auto;
        margin-right: auto;
    }

    .singleorizimg {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .fonticontainer {
        width: 90%;
    }
    .fontititle {
        font-size: 0.8em;
    }
    .fontititle2 {
        font-size: 0.75em;
    }
    
    .fonticontainer ul a {
        font-size: 0.9em;
    }

}





@media (max-width: 419.98px) {
    .h1proj {
        font-size: 12vw;
    }
    .insideprojheader {
        position: relative;
        height: 40vh;
    }
    .projheadertitlecont {
        height: 100%;
    }

    .banneresclusioni {
        height: 25vh;
    }
    .bannerips {
        height: 25vh;
    }
    .ipscontainerrightII {
        width: 80%;
    }

}









/* CONTACT PAGE */

.contactheader {
    height: 100dvh;
    background-image: url('../img/ContattoII.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: scroll;
    align-content: center;
    padding-top: 0px;
    text-align: center;
}


.contacth1 {
    line-height: 1.8em;
}

.maillink {
    text-decoration: unset;
    color: #00979E;
}

.maillink:hover{
    border-bottom: none;
    color:white;
    border: none;
}







/* About styles removed — page has been removed. Backup saved at docs/backups/about-2026-01-02.html */



.sudime {
    margin: 10%;
}

.sudimetitle h2 {
    font-weight: 200;
    width: 50%;
    margin-right: 45%;
    margin-left: 5%;
    text-align: left;
    font-size: 2.5em;
}
.sudimetext {
    width: 90%;
    margin-right: auto;
    margin-left: auto;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    font-weight: 300;
    line-height: 1.4em;
}

.sudimetext p strong {
    font-weight: 500;
}
.sudimetext p .strongblue {
    color: #00979E;
    font-weight: 500;
}


.leftfooterab p {
    transition: 0.75s ease-in-out;
}
div.leftfooterab:hover {
    transform: scale(1.1);
}
div.leftfooterab:hover p {
    transform: scale(0.9);
}












@media (max-width: 767.98px){
    .containerfooter {
        height: 20vh;
    }
    .title {
        font-size: 0.7em;
    }
    #altfont {
        font-weight: 300;
        font-size: 1.7vw;
    }
    .footertext {
        font-size: 5vw;
        letter-spacing: 0.1em;
    }
    .aboutimagebanner {
        width: 100%;
        height: 50%;
    }
    .textbannerabout {
        height: 90%;
    }
    
    .sudimetitle h2 {
        margin: 0%;
        width: 100%;
        text-align: left;
    }
    .sudimetext {
        margin: 0%;
        width: 100%;
        text-align: left;
        font-family: 'Montserrat', sans-serif;
    }
    .sudime {
        width: 90%;
        margin-top: -5% !important;
        margin-right: auto;
        margin-left: auto;
    }
    .sudimetext {
        font-size: 0.8em;
    }
    .sudimetitle h2 {
        font-size: 2em;
    }
}



@media (max-width: 575.98px) {
    footer {
        margin-top: 15%;
    }
    .title_lines h2 {
        font-size: 5vw;
    }
    .socialcontainerfooter {
        margin: 0% 0% 0% 2.5%;
    }
    .contactfooter {
        margin: 0% 2.5% 0% 0%;
    }
    .bannerabout {
        height: 50vh;
    }
    .title {
        padding-top: 4%;
    }
    .sudimetitle h2 {
        font-size: 1.5em;
    }
    /* Keep portfoliocontainer consistent with grid layout */
    .portfoliocontainer {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 8px;
        gap: 1.5rem;
        padding: 0;
        margin: 0 auto;
        max-width: 1100px;
        box-sizing: border-box;
    }
    .portfolioimage {
        margin: 0;
    }

    .containerfooter {
        height: 20vh;
    }
    div.containerfooterleft {
        width: 49%;

    }
    div.containerfooterright {
        width: 49%;
    }
    #altfont {
        font-weight: 300;
        font-size: 2vw;
    }
    .sudime {
        margin-top: -20% !important;
    }
}


@media (max-width: 479.98px) {
    .widefooterlinks {
        display:flex;
        align-items: flex-end;
        margin-top: 20%;
        margin-bottom: 2%;
    }
    .coverflickr2 {
        letter-spacing: 0.1vw;
        font-size: 0.6em;
        margin-bottom: 5%;
    }
    .coverinstagram2 {
        letter-spacing: 0.1vw;
        font-size: 0.6em;
    }
    .continue p{
        font-size: 0.6em;
        font-weight: 500;
    }
    .footerbar {
        display: none;
    }
    .contactfooter p {
        letter-spacing: 0.1vw;
        font-size: 0.6em;
    }
    .mbot5 {
        margin-bottom: 5% !important;
    }
    .sudime {
        margin-top: -15% !important;
    }
}


@media (max-width: 375.98px) {
    .containerfooter {
        height: 15vh
    }
}


@media (max-width: 360.98px) {
    body {
        max-width: 100%;
    }
}

@media (max-width: 321.98px) {

    nav .linkbox {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-content: normal;
        justify-content: normal;
        align-items: normal;
        position: relative;
        padding-top: 3%;
        padding-right: 0%;
        padding-bottom: 0%;
        padding-left: 2%;
    }
}



