@charset "UTF-8";

/*font babyyy*/

@import url('https://fonts.googleapis.com/css2?family=Agdasima:wght@400;700&family=Anta&display=swap');

.agdasima-regular {
  font-family: "Agdasima", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.agdasima-bold {
  font-family: "Agdasima", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.anta-regular {
  font-family: "Anta", sans-serif;
  font-weight: 400;
  font-style: normal;
}


h1  {
  font-family: "Anta", sans-serif;
  font-style: normal;
	transform: scaleY(0.7);
}

h3 {
    font-family: "Agdasima", sans-serif;
    font-weight: 400;
    font-size: 1.7em;
    font-style: normal;
    color: #c8f7ff;
    text-transform: uppercase;
}

p {
    font-family: "Agdasima", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.5em;
	letter-spacing: 0.03em;
}

/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #111;
    color: #fff;

    font-family: Arial, Helvetica, sans-serif;

    overflow-x: hidden;
    overflow-y: hidden;
}


/* =========================================================
   CONTENITORE ORIZZONTALE
========================================================= */

.contenitore {
    display: flex;
    flex-direction: row;

    width: max-content;
    height: 100vh;
}


/* =========================================================
   PAGINE
========================================================= */

.pagina {
    flex-shrink: 0;

    height: 100vh;

    padding: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}


/* =========================================================
   COLORI PAGINE
========================================================= */
.lang-switcher a{text-decoration: none;}

.pagina-1 {
	
    width: 100vw;
    background: #111;
	  background:
        linear-gradient(
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.35)
        ),
        url("../images/Brokerage_company_realcyanbg.jpeg");

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


/* Stato iniziale nascosto about*/
.about-text {
  opacity: 0;
	width: 70vw;
	text-align: justify;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), 
              transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform; /* Ottimizza le prestazioni su smartphone */
}

/* Stato finale quando diventa visibile sullo schermo */
.about-text.apparso {
  opacity: 1;
  transform: translateY(0);
}
	

.pagina-2 {
    background: #333;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.35));
    background-size: cover;
    background-position: center;
    padding: 0
!important;
    background-repeat: no-repeat;
}

.imgleft {
	
    max-height: 100%;
	margin: 0 !important;
	padding: 0 !important;

}


.pagina-3 {
	
    width: 80vw;
	flex-direction: column;
    text-align: center;
	    background:
        linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.35)),
        url("../images/bg_cyan.jpg"), #999;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}

.pagina-4 {
    display: flex;
    flex-direction: column; /* Mantiene titolo, sottotitolo e contenitore uno sotto l'altro */
    align-items: center;    /* Centra il contenuto orizzontalmente */
    min-height: 100vh;      /* Prende tutta l'altezza dello schermo */
	min-width: 100vw;

    color: #fff;
    text-align: center;
    background:
        linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.35)),
        url("../images/bg_cyan.jpg"), #999;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
    padding: 40px;          /* Spazio interno per non far toccare i bordi dello schermo */
}



.work-container {
	
  align-items: center;      /* Centra i div orizzontalmente */
    max-height: 60vh;
	
    gap: 2em;              /* Spazio tra i singoli elementi .work */
    justify-content: center ; /* Centra i box verticalmente all'interno dello spazio disponibile */
    overflow-y: scroll;         /* Attiva la barra di scorrimento verticale SOLO se i box superano i 60vh */
    overflow-x: hidden;        /* Impedisce categoricamente qualsiasi scorrimento orizzontale interno */
}

.work {
	justify-content: center;  /* Centra i div verticalmente allineandoli al centro della colonna */
  align-items: center;      /* Centra i div orizzontalmente */
    /* Imposta una larghezza fissa o massima, altrimenti i box prenderanno il 100% impedendo il wrap */          
	max-width: 80vw;
	min-width: 30vw;
    padding: 1em;
    /* [disabled]background: rgba(255, 255, 255, 0.1); */
    border-radius: 1em;
    border: 0.0625rem solid rgba(255, 255, 255, 0.3);
	margin-bottom: 1rem;
    
	
}
.work h3 {
  cursor: pointer;
}

/* Stato iniziale: la descrizione è nascosta */
.work-description {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  margin: 0;
}

/* Stato attivo: la descrizione con la classe .visibile si mostra */
.work-description.visibile {
  max-height: 60vh; /* Altezza massima per contenere il testo */
  opacity: 1;
  padding-top: 10px;
}



.pagina-5 {
	width: 100vw;
    color: #E2E2E2;
	flex-direction: column;
    text-align: center;
	    background:
        linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.35)),
        url("../images/bg_cyan-ribaltato.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-logo {
    width: 24vw;
    margin: 1vw;    
}

.contact p{
    font-size: 1.2em;
}
.contact h3{
	letter-spacing: 0.05em;}

.mail {
     display: inline-flex;  /* Dispone l'icona e il testo in linea tra loro e non rompe il flusso esterno */
    align-items: center;   /* Allinea perfettamente l'icona e il testo al centro verticale della riga */
    gap: 0.5rem; 
	margin: 0.2rem !important;
	
}
.row {
	}

.row p{
	margin-top: 1em;
	margin-bottom: 0em;
	}


.mail h3 {
	color: #fff;
	
	font-size: 1.2em;
	}

.icon {
    max-width: 2em;
	filter: grayscale(100%); /* Rende l'immagine totalmente in bianco e nero */
}

.social .icon {
    margin: 1em;
}

.mail .icon {
    width: 1.3em ;
	
}

.mail a {
    color: #fff;
}

.mail a:visited {
    color: #fff;
}


/*=========================================================
arrow
==========================================================*/
.lang-switcher {
	
    position: fixed;
	top: 1rem;            /* Spazio fluido dal bordo superiore (circa 32px, ma scalabile) */
    right: 1rem;               
    
    /* Il trucco magico per centrarlo al millimetro: trasla il div all'indietro 
       del 50% della SUA stessa larghezza */
    transform: translateX(-50%); 
    
    z-index: 9999;           /* Forza l'elemento a stare sopra a qualsiasi altra cosa sul sito */
    
    cursor: pointer;
	transition: opacity 0.4s ease, visibility 0.4s ease;
    opacity: 1;
    visibility: visible;
	display: flex;
	flex-direction: row;
}
.arrow {
	
    position: fixed;
	bottom: 5rem;            /* Spazio fluido dal bordo inferiore (circa 32px, ma scalabile) */
    left: 50%;               /* Sposta il bordo sinistro del div esattamente al centro dello schermo */
    
    /* Il trucco magico per centrarlo al millimetro: trasla il div all'indietro 
       del 50% della SUA stessa larghezza */
    transform: translateX(-50%); 
    
    z-index: 9999;           /* Forza l'elemento a stare sopra a qualsiasi altra cosa sul sito */
    
    cursor: pointer;
	transition: opacity 0.4s ease, visibility 0.4s ease;
    opacity: 1;
    visibility: visible;
}

/* Questa classe viene aggiunta da JS solo nell'ultima pagina */
.arrow.hidden {
    opacity: 0;
    visibility: hidden;
}

.arrow span {
    display: block;
    width: 1.5vw;
    height: 1.5vw;
    border-bottom: 5px solid white;
    border-right: 5px solid white;
    transform: rotate(45deg);
    margin: -10px;
    animation: animate 2s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: -0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes animate {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

/* =========================================================
   HOME
========================================================= */

.home-header {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;
}


/* =========================================================
   BOX LOGO + SOTTOTITOLO
========================================================= */

.home-content {
    width: auto;
    max-width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.95);
}

.home-inner {
    padding: 3rem 4rem;
    width: 100%;
}


/* =========================================================
   LOGO
========================================================= */

.home-logo {
    display: block;

    max-width: 70vw;
    height: auto;

    margin: 0 auto 2rem auto;
}


/* =========================================================
   SOTTOTITOLO
========================================================= */

.home-subtitle {
    margin-top: 0;
	margin-bottom: 1em;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    font-size: 2.5rem;
    line-height: 2;
    font-weight: 300;
}

.home-subtitle p {
	box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

/* =========================================================
   LINEA VERTICALE TRA BOX E MENU
========================================================= */

.home-connector {
    width: 1px;
    height: 55px;

    flex-shrink: 0;

    background: rgba(255, 255, 255, 0.95);
}


/* =========================================================
   MENU HOME
========================================================= */

.home-nav {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 2em;
}


/* =========================================================
   LINK MENU
========================================================= */

.home-nav a {
    display: flex;

    align-items: center;
    justify-content: center;

    min-width: 145px;
    height: 52px;

    padding: 0 25px;

    color: #fff;

    text-decoration: none;

    text-transform: uppercase;

    font-size: 0.75rem;
    font-weight: 300;

    letter-spacing: 0.2rem;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}


/* =========================================================
   DIVISORI MENU
========================================================= */

.home-nav a + a {
    border-left: 1px solid rgba(255, 255, 255, 0.95);
}


/* =========================================================
   HOVER MENU
========================================================= */

.home-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.home-nav a:active {
    background-color: rgba(255, 255, 255, 0.18);
}


/* =========================================================
   TITOLI PAGINE PROVVISORIE
========================================================= */

.pagina h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    width: auto;
	margin: 1em;
}
.contact {
}

	footer {
	
  position: fixed;   /* Blocca il footer rispetto alla finestra del browser */
  bottom: 0;         /* Lo incolla sul bordo inferiore dello schermo */
  left: 1em;           /* Lo allinea al bordo sinistro */
  width: 100%;       /* Lo estende per tutta la larghezza dello schermo */
  z-index: 9999;     /* Forza il footer a stare sopra a qualsiasi altro elemento o sezione */
  background: rgba(0,0,0,0.39);
  
  font-size: 0.6em !important;           /* Dimensione del font leggermente più piccola e discreta */
   text-decoration: none !important;
  
}
footer p {
	letter-spacing: 0.1rem;
	text-decoration: none !important;
}

/* =========================================================
   TABLET / MOBILE
========================================================= */

@media screen and (max-width: 736px) {

    body {
        overflow-x: hidden;
        overflow-y: auto;
    }


    /* CONTENITORE DIVENTA VERTICALE */

    .contenitore {
        flex-direction: column;

        width: 100%;
        height: auto;
    }


    /* PAGINE */

    .pagina {
        width: 100%;

        min-height: 100vh;
        height: auto;

        padding: 25px;
    }
	.about-text {
  
	width: 95vw;
	
}


    /* HOME */

    .home-header {
        min-height: calc(100vh - 50px);
    }


    /* BOX CENTRALE */

    .home-inner {
        padding: 2.5rem 2rem;
    }


    /* LOGO */

    .home-logo {
        width: 80vw;

        margin-bottom: 1.7rem;
    }


    /* SOTTOTITOLO */

    .home-subtitle {
        font-size: 0.7rem;

        letter-spacing: 0.2rem;
    }


    /* LINEA */

    .home-connector {
        height: 35px;
    }


    /* MENU */

    .home-nav a {
        min-width: 110px;

        height: 48px;

        padding: 0 15px;

        font-size: 0.65rem;

        letter-spacing: 0.15rem;
    }


    /* TITOLI */

    .pagina h1 {
        font-size: 2rem;
    }
	/*page imgtitleright*/
	
	.pagina-2 {
    height: 50vh;            /* Altezza del contenitore padre */
    overflow: hidden;        /* Forza il taglio di tutto ciò che esce dal contenitore */
    position: relative;      /* Aiuta a stabilizzare il posizionamento su iOS */
}

.imgleft {
    width: 100%;             
    height: 100%;            /* Sostituisci 100vh con 100% per dirgli di riempire i 50vh del padre */
    display: block;          /* Rimuove lo spazio vuoto di default sotto le immagini */
    object-fit: cover;       
    object-position: center; 
}

	
	
	/*page4*/
	
	  .pagina-4 {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        padding: 2rem 1rem;       /* Meno spazio sopra/sotto, più aria ai lati */
    }

    .work-container {
        max-height: none;         /* Rimuove il blocco dell'altezza */
        flex-direction: column;   /* Torna in colonna singola verso il basso */
        flex-wrap: nowrap;        /* Niente wrap orizzontale */
        align-items: center;      
        gap: 1rem;
    }

    .work {
        width: 85vw;              /* Occupa l'85% della larghezza dello schermo del telefono */
        max-width: 22rem;         /* Impedisce di allargarsi troppo su tablet */
    }
	
}

.contact-logo {
    width: 70vw;
    margin: 3vw;    
}
.mail {
    margin: 1vw;    
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media screen and (max-width: 480px) {

    .pagina {
        padding: 20px;
    }


    /* HOME */

    .home-header {
        min-height: calc(100vh - 40px);
    }


    /* BOX LOGO */

    .home-content {
        width: 100%;

        max-width: 340px;
    }


    .home-inner {
        padding: 2rem 1rem;
    }


    /* LOGO */

    .home-logo {
        width: 93vw;


        margin-bottom: 1.2rem;
    }


    /* SOTTOTITOLO */

    .home-subtitle {
        font-size: 0.92rem;

        letter-spacing: 0.15rem;

        line-height: 1.8;
    }


    /* LINEA */

    .home-connector {
        height: 30px;
    }


    /* MENU VERTICALE */

    .home-nav {
        flex-direction: column;

        width: 40vw;
        max-width: 90%;
    }


    .home-nav a {
        width: 100%;

        min-width: 0;

        height: 48px;

        padding: 0 10px;
    }


    /* RESET DIVISORE ORIZZONTALE */

    .home-nav a + a {
        border-left: 0;

        border-top: 1px solid rgba(255, 255, 255, 0.95);
    }


    /* TITOLI */

    .pagina h1 {
        font-size: 1.8rem;
    }
	

}
