/* ================= FONT ================= */
@font-face {
  font-family: 'Alice';
  src: url("font/Alice.ttf") format('truetype');
}
@font-face {
  font-family: 'amster';
  src: url("font/amster.ttf") format('truetype');
}
@font-face {
  font-family: 'Bodonibold';
  src: url("font/BodoniFLF-Bold.ttf") format('truetype');
}
@font-face {
  font-family: 'bodoniroman';
  src: url("font/BodoniFLF-Roman.ttf") format('truetype');
}
@font-face {
  font-family: 'PL';
  src: url("font/Pl.ttf") format('truetype');
}
@font-face {
  font-family: 'Didot';
  src: url("font/Didot.otf") format('opentype');
}
@font-face {
  font-family: 'Zing';
  src: url("font/Zing.ttf") format('truetype');
}
/* ================= RESET ================= */
* {
    margin:0; /* era margin:-100, valore non valido: azzerava il reset */
    padding:0;
    box-sizing:border-box;
}
html {
    scroll-behavior:smooth;
}
body {
    width:100%;
    overflow-x:hidden;
    background:#fff;
    color:#000;
}
img {
    width:100%;
    display:block;
}
/* ================= HERO ================= */
.clairE {
    height:100svh;
    width:100%;
    position:relative;
    overflow:hidden;
    display:flex;
    justify-content:center;
    align-items:center;
}
.hero-text {
    position:absolute;
    z-index:3;
    left:50%;
    top:70%;
    transform:translate(-50%, -50%);
    width:90%;
    text-align:center;
}
#Titoloprincipale {
    font-family:Didot, serif;
    font-size:clamp(2.5rem, 12vw, 150px);
    line-height:0.9;
    letter-spacing:clamp(-1px, -0.45vw, -10px);
    color:#bd1212;
    font-weight:100;
    margin:0;
}
.titolosotto {
    font-family:Didot, serif;
    font-size:clamp(0.9rem, 1.4vw, 1.6rem);
    letter-spacing:clamp(3px, 0.8vw, 14px);
    color:white;
    margin-top:25px;
}
/* Immagine sopra titolo */
.hero-image {
    position:absolute;
    inset:0;
    z-index:2;
    background-image:url("img/hero.jpg");
    background-size:cover;
    background-position:center;
}
.hero-image img {
    width:100%;
    height:100%;
    object-fit:cover;
}
/* ================= GALLERY ================= */
.gallery {
    max-width:1600px;
    margin:80px auto;
    padding:25px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    background-position:center;
    gap:30px;
}
.gallery div {
    overflow:hidden;
}
.gallery img {
    height:500px;
    object-fit:cover;
    transition:.5s ease;
}
.gallery img:hover {
    transform:scale(1.04);
}
.gallery .vertical img {
    height:750px;
}
.gallery .horizontal {
    grid-column:1 / -2;
}
.gallery .horizontal img {
    width:100%;
    height:750px;
    object-fit:cover;
}
.navbar-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 60px 0 0;
  padding: 0 20px;
}
.rettangolo2 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(900px, 100%);
  min-height: 100px;
  background-color: #bd1212;
  padding: 20px;
}
.barrasotto2 {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.barrasotto2 a {
  text-decoration: none;
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  color: white;
  font-family: Zing, serif;
  text-align: center;
}
.barrasotto2 a:hover {
  color: black;
}
.footer {
  color: black;
  text-align: center;
  padding: 30px 20px;
  margin-top: 20px;
  font-family: Didot, serif;
}
.footer a {
  margin: 0 10px;
  text-decoration: none;
}
.footer p:hover {
  color: var(--rosso);
}
.footersocial {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}
.footersocial img {
  width: 30px;
  height: auto;
}
/* ================= TABLET ================= */
@media(max-width:900px){
.gallery {
    grid-template-columns:1fr;
    gap:20px;
    margin:50px auto;
    padding:15px;
}
.gallery img,
.gallery .vertical img,
.gallery .horizontal img {
    height:auto; /* aggiunta .horizontal img: prima restava fissa a 750px */
    aspect-ratio: 4 / 5;
}
.gallery .horizontal {
    grid-column:auto; /* su una colonna sola non ha più senso lo span */
}
.navbar-section {
    margin-top:40px;
}
.barrasotto2 {
    gap:24px;
}
}
/* ================= MOBILE ================= */
@media(max-width:600px){
#Titoloprincipale {
    letter-spacing:-1px;
}
.titolosotto {
    margin-top:15px;
}
.gallery {
    padding:10px;
    gap:14px;
    margin:35px auto;
}
.rettangolo2 {
    min-height:auto;
    padding:16px 10px;
}
.barrasotto2 {
    gap:16px 24px;
}
.barrasotto2 a {
    font-size:0.95rem;
}
.footer {
    padding:20px 15px;
    font-size:0.9rem;
}
}
/* ================= MOBILE PICCOLO ================= */
@media(max-width:380px){
#Titoloprincipale {
    letter-spacing:-0.5px;
}
.barrasotto2 {
    gap:14px 18px;
}
.barrasotto2 a {
    font-size:0.85rem;
}
}