:root{
  --blu:#003366;
  --rosa:#e64a8b;
  --sabbia:#f2ede6;
  --bianco:#ffffff;

  /* Layout tokens */
  --content-max: 760px;          /* larghezza massima dei blocchi testo */
  --measure: 56ch;               /* lunghezza riga ideale */
  --pad-block: clamp(28px, 5vw, 64px);
  --p-gap: clamp(6px, 1vw, 12px);

  /* Header */
  --header-h: clamp(56px, 9vh, 96px);
  --header-px: clamp(16px, 5vw, 60px);
  --nav-gap: clamp(16px, 2.8vw, 34px);
  --nav-font: clamp(0.95rem, 1.05vw, 1.12rem);

  /* Footer */
  --footer-h: 120px;

  /* Typography (fluid) */
  --fs-base: clamp(17px, calc(12px + 0.85vw), 19px);
  --fs-body: clamp(1.05rem, calc(0.95rem + 0.35vw), 1.2rem);
  --fs-small: clamp(0.92rem, calc(0.88rem + 0.25vw), 1.05rem);

  --fs-hero: clamp(2.2rem, calc(1.0rem + 4.0vw), 4.2rem);
  --fs-quote: clamp(2.4rem, calc(0.9rem + 5.2vw), 5.2rem);
  --lh-tight: 1.06;
  --lh-body: 1.6;
}


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


html, body{
  font-family: 'Louis George Cafe', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.45;
  font-size: var(--fs-base);
}
/* =========================
   FONTS (LOCAL)
   - Louis George Cafe: font principale (testo)
   - Brityna Hashim Italic: solo per la frase "L’arte merita un ambiente che la rispetti."
========================= */
@font-face{
  font-family: 'Louis George Cafe';
  src: url('fonts/louis-george-cafe-regular.ttf') format('truetype');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family: 'Louis George Cafe';
  src: url('fonts/louis-george-cafe-italic.ttf') format('truetype');
  font-weight:400;
  font-style:italic;
  font-display:swap;
}
@font-face{
  font-family: 'Louis George Cafe';
  src: url('fonts/louis-george-cafe-light.ttf') format('truetype');
  font-weight:300;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family: 'Louis George Cafe';
  src: url('fonts/louis-george-cafe-bold.ttf') format('truetype');
  font-weight:700;
  font-style:normal;
  font-display:swap;
}

@font-face{
  font-family: 'Brityna Hashim';
  src: url('fonts/brityna-hashim-regular.ttf') format('truetype');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family: 'Brityna Hashim';
  src: url('fonts/brityna-hashim-italic.ttf') format('truetype');
  font-weight:400;
  font-style:italic;
  font-display:swap;
}

body.site{
  font-family: inherit;
  background:var(--blu);
  color:var(--bianco);

  min-height:100vh;
  display:grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: var(--header-h) 1fr var(--footer-h);
}

/* =========================
   HEADER (Nike-like: alto -> sottile)
========================= */
header{
  grid-column:1/3;
  height: var(--header-h);
  background: var(--blu);

  position: sticky;
  top: 0;
  z-index: 9999;

  display:flex;
  align-items:center;

  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

nav.topnav{
  width:100%;
  height:100%;
  padding: 0 var(--header-px);

  display:flex;
  align-items:center;           /* ✅ centratura verticale perfetta */
  gap: var(--nav-gap);
  position:relative;
}

/* link base */
nav.topnav a{
  color:var(--bianco);
  text-decoration:none;
  font-weight:300;
  letter-spacing:0.6px;
  white-space:nowrap;

  font-size: var(--nav-font);
  line-height:1;
  padding: 10px 0;              /* click area comoda */
  position:relative;
}

/* underline hover */
nav.topnav a::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:-6px;
  height:2px;
  background: var(--bianco);
  transform: scaleX(0);
  transform-origin:left;
  transition: transform 0.25s ease;
  opacity:0.9;
}
nav.topnav a:hover::after{ transform: scaleX(1); }

/* Desktop: "Il nostro approccio" a sinistra */
.desktop-left{ margin-right:auto; }

/* Desktop: link a destra */
.menu-links-desktop{
  display:flex;
  align-items:center;
  gap: var(--nav-gap);
  margin-left:auto;
}

/* Hamburger */
.menu-btn{
  display:none; /* solo mobile */
  margin-left:auto;

  background:transparent;
  border:0;
  cursor:pointer;

  width:44px;
  height:44px;

  align-items:center;
  justify-content:center;
  position: relative;
}

.menu-btn span{
  position:absolute;
  width:22px;
  height:2px;
  background: var(--bianco);
  border-radius:2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-btn span:nth-child(1){ transform: translateY(-7px); }
.menu-btn span:nth-child(2){ transform: translateY(0); }
.menu-btn span:nth-child(3){ transform: translateY(7px); }

nav.topnav.open .menu-btn span:nth-child(1){ transform: rotate(45deg); }
nav.topnav.open .menu-btn span:nth-child(2){ opacity:0; }
nav.topnav.open .menu-btn span:nth-child(3){ transform: rotate(-45deg); }

/* Mobile dropdown (tutti i link) */
.menu-links-mobile{
  display:none;
}

/* =========================
   MAIN (2 rettangoli grandi che prendono lo spazio extra)
========================= */
#titleBlock, #textBlock{
  min-height:0;
  display:flex;

  /* ✅ Testo protagonista: centrato verticalmente e centrato orizzontalmente */
  align-items:center;           /* verticale */
  justify-content:center;       /* orizzontale */

  padding: var(--pad-block);
  text-align:center;
}

/* contenitore interno per avere lo stesso "inizio testo" a sinistra su entrambi i riquadri */
.block-inner{
  width:100%;
  max-width: var(--content-max);
  margin: 0 auto;
}

/* Ritmo tipografico editoriale dentro ai blocchi */
.block-inner p{ margin:0; }
.block-inner p + p{ margin-top: var(--p-gap); }


/* Variante: contenuti centrati (es. galleria) */
.block-centered{
  justify-content:center !important;
  text-align:center !important;
}


#titleBlock{ background:var(--rosa); }
#textBlock{ background:var(--blu); }

/* ✅ Corsivo SOLO per la frase indicata */
.quote-italic{
  font-family: inherit;
  font-style:italic;
}

/* ✅ solo la frase specifica in corsivo (2 occorrenze in IT) */
.quote-italic{
  font-family: inherit;
  font-style:italic;
}

.titolo-home{
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight:300;
  line-height:1.4;
  font-size: var(--fs-hero);
  line-height: 1.12;
  display:block;
  max-width: min(30ch, 92vw);
  text-wrap: balance;
}

.body-text{
  margin:0 auto;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  max-width: var(--measure);
}


.services{
  display:flex;
  flex-direction:column;
  gap: clamp(12px, 2vw, 18px);
  text-align:center;
}


.service-title{
  font-weight:600;
  display:block;
  margin-bottom:6px;
  font-size: clamp(1.05rem, calc(0.95rem + 0.45vw), 1.35rem);
  line-height: 1.25;
}

.service-text{
  margin:0 auto;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  max-width: var(--measure);
}


/* =========================
   FOOTER (2 rettangoli piccoli affiancati, sempre in basso)
========================= */
.logo-block{
  grid-row:3;
  grid-column:1;
  height: var(--footer-h);

  background:var(--sabbia);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px;
}
.logo-block img{ max-width:60%; transition:0.3s; }
.logo-block img:hover{ transform:scale(1.05); }

.contact-block{
  grid-row:3;
  grid-column:2;
  height: var(--footer-h);

  background:var(--rosa);
  color:var(--blu);

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

  padding: 0 clamp(16px, 3vw, 48px);
  cursor:pointer;
  position:relative;

  font-size: clamp(1.05rem, calc(0.95rem + 0.75vw), 1.35rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
}
#contactLabel{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  text-align:center;
}

.contact-info{
  position:absolute;
  left:0; right:0; top:0; bottom:0;

  background:var(--rosa);
  padding: clamp(18px, 4vw, 40px);
  text-align:center;

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

  opacity:0;
  transition:0.35s;

  font-size: clamp(1.05rem, calc(0.95rem + 0.65vw), 1.30rem);
  line-height: 1.55;
}
.contact-info p{
  margin:0;
  max-width: 44ch;
}
.show-info .contact-info{ opacity:1; }

/* =========================
   MOBILE
   - a sinistra NIENTE
   - hamburger a destra
   - TUTTI i link nel menu (incluso "Il nostro approccio")
========================= */
@media (max-width: 900px){
body.site{
    display:flex;
    flex-direction:column;
    min-height:100vh;
  }

  /* niente link visibili */
  .desktop-left{ display:none; }
  .menu-links-desktop{ display:none; }

  /* hamburger visibile */
  .menu-btn{ display:flex; }

  /* ✅ nav allineata a destra, nessun contenuto a sinistra */
  nav.topnav{ justify-content:flex-end; }

  /* dropdown */
  .menu-links-mobile{
    position:absolute;
    left:0;
    right:0;
    top: calc(var(--header-h) + 8px);

    background: var(--blu);
    padding: 18px var(--header-px);

    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap: 10px;

    border-radius: 14px;

    opacity:0;
    transform: translateY(-12px);
    pointer-events:none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  nav.topnav.open .menu-links-mobile{
    opacity:1;
    transform: translateY(0);
    pointer-events:auto;
  }

  .menu-links-mobile a{
    width:100%;
    font-size:1rem;
    padding:10px 0;
  font-size: clamp(1.0rem, calc(0.95rem + 0.7vw), 1.35rem);
  line-height: 1.1;
}

  /* blocchi centrali prendono lo spazio */
  #titleBlock, #textBlock{
    flex:1;
    width:100%;
  }

  /* footer */
  .logo-block, .contact-block{
    width:100%;
    height: var(--footer-h);
  }
}

/* Instagram icon link */
nav.topnav a.icon-link{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 8px 0;
}
nav.topnav a.icon-link svg{
  width: 20px;
  height: 20px;
  display:block;
}

/* =========================
   Typography & readability
   (no layout redesign)
   ========================= */

html{
  font-family: 'Louis George Cafe', Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
body.site{
  font-family: inherit;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Make sure form controls match the site typography */
button, input, textarea, select{
  font-family: inherit;
  line-height: 1.3;
}

/* Safer default text rhythm (keeps existing spacing mostly intact) */
p{
  line-height: 1.65;
  margin: 0 0 1rem 0;
}

/* Headings: tighter but readable */
h1, h2, h3, h4, h5, h6{
  line-height: 1.2;
}

/* Links: improve readability without changing color choices */
a{
  text-underline-offset: 0.18em;
  text-decoration-thickness: from-font;
}

/* Failsafe: enforce the chosen font everywhere */
html, body, button, input, textarea, select, h1, h2, h3, h4, h5, h6, a, nav, li, span, div, p{
  font-family: 'Louis George Cafe', sans-serif;
}


/* =========================
   Home (index) page styles
   ========================= */

/* --- STRUTTURA BASE DELLA PAGINA --- */
body.home{
      margin: 0;
      padding: 40px;
      box-sizing: border-box;
background-color: #E6E6E6; /* grigio */
      color: #003366;
      font-family: inherit;
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
      opacity: 1;
      transition: opacity 0.6s ease;
    }

    
/* --- CORNICE ROSA (ANGOLI COME IMMAGINE 2: esterno squadrato, interno stondato) --- */
body.home .outer-frame{
  position: fixed;
  inset: 10px;
  background: #e64a8b;          /* cornice piena */
  border-radius: 0;             /* angolo ESTERNO squadrato */
  pointer-events: none;
  z-index: 1;
}

/* "buca" interna grigia con angoli stondati */
body.home .outer-frame::after{
  content: "";
  position: absolute;
  inset: 10px;                  /* spessore cornice */
  background: #E6E6E6;          /* stesso sfondo del body */
  border-radius: 24px;          /* angolo INTERNO stondato */
}
/* sfondo grigio */
body.home{
  margin:0;
  padding:30px;
  background:#E6E6E6;
}


/* bordo interno stondato */


    /* --- CONTENITORE PRINCIPALE --- */
body.home .content {
      position: relative;
      z-index: 2;
      text-align: center;
      width: 100%;
      height: 100%;
    }

    /* --- LOGO CENTRATO --- */
body.home .logo {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 180%;          /* 🔹 regola per ingrandire/ridurre il logo */
      max-width: 800px;
      height: auto;
      transition: opacity 0.8s ease;
    }

    /* --- SEZIONE LINGUE --- */
body.home .languages {
      position: absolute;
      bottom: 30px; /* 🔹 distanza dal bordo inferiore */
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 40px;
      z-index: 20;
      transition: opacity 0.8s ease;
    }
body.home .lang-btn {
      font-weight: normal;
      font-size: 0.9rem;
      color: #003366;
      background-color: transparent;
      border: 1px solid #e64a8b;
      border-radius: 50px;
      padding: 6px 14px;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    body.home .lang-btn:hover {
      background-color: #ffe4ef;
    }

  /* --- FRASE DI TRANSIZIONE IN CINZEL DECORATIVE --- */
body.home .transition-text {
  position: absolute;
  top: 50%;
  left: 20px;           /* ← distanza dal bordo SINISTRO */
  right: 20px;          /* ← distanza dal bordo DESTRO  */
  transform: translateY(-50%);  /* ← centra solo verticalmente */
  text-align: center;

  font-family: inherit;
  font-size: 2.8rem;
  color: #003366;
  letter-spacing: 2px;

  opacity: 0;
  transition: opacity 3s ease;
  /* niente max-width, niente padding */
}
body.home .show {
      opacity: 1;
    }
body.home .hide {
      opacity: 0;
    }
      body.fade-out {
      background-color: #00132b; /* blu notte */
      opacity: 0;
      transition: background-color 0.6s ease, opacity 0.6s ease;
    }
  @media(max-width:700px){
body.home .outer-frame{
    top:6px;
    left:6px;
    width:calc(100% - 12px);
    height:calc(100% - 12px);
  }
  body.home .outer-frame::after{
    inset:6px;              /* bordo rosa su mobile */
    border-radius:16px;
  }
body.home .logo{
    width:90%;
    max-width:340px;
  }
body.home .languages{
    bottom:18px;
    gap:20px;
  }
body.home .lang-btn{
    font-size:0.8rem;
    padding:5px 12px;
  }
}


.titolo-frase{
  font-family: 'Brityna Hashim' !important;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  font-size: var(--fs-quote);
  line-height: var(--lh-tight);
  display:block;
  max-width: min(26ch, 92vw);
  text-wrap: balance;
}



.menu-links-desktop a{
  font-size: var(--nav-font);
  line-height: 1.1;
}



/* =========================
   Editorial balance: make paired blocks feel equally "full"
   (Approccio/Our approach text vs quote)
========================= */

/* Approach text inside the big blocks: slightly larger + narrower measure */
#titleBlock .body-text,
#textBlock .body-text{
  font-size: clamp(1.05rem, calc(0.85rem + 1.0vw), 1.55rem);
  line-height: 1.65;
  max-width: min(46ch, 92vw);
  text-wrap: balance;
}

/* Quote: tuned to match the visual weight of the adjacent paragraph block */
#titleBlock .titolo-frase,
#textBlock .titolo-frase{
  font-size: clamp(2.4rem, calc(1.0rem + 4.0vw), 4.9rem);
  max-width: min(24ch, 92vw);
}

/* Make the 3-line paragraph feel like a compact "stanza" */
#titleBlock .body-text br,
#textBlock .body-text br{
  line-height: 1.0;
}

/* Mobile: keep both blocks equally readable */
@media (max-width: 780px){
  #titleBlock, #textBlock{
    padding: clamp(22px, 7vw, 36px);
  }
  #titleBlock .body-text,
  #textBlock .body-text{
    font-size: clamp(1.05rem, 3.6vw, 1.25rem);
    max-width: 92vw;
  }
  #titleBlock .titolo-frase,
  #textBlock .titolo-frase{
    font-size: clamp(2.2rem, 8.5vw, 3.4rem);
    max-width: 92vw;
  }
}
