/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.7;
}

/* ===== HEADER ===== */
.header {
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 60px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  letter-spacing: 2px;
  color: white;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  color: white;
  font-size: 14px;
  letter-spacing: 1px;
}

.nav a.active {
  border-bottom: 1px solid white;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 90vh;
  min-height: 650px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.hero-text {
  position: absolute;
  bottom: 12%;
  left: 8%;
  color: white;
  max-width: 700px;
}

.hero-top {
  font-size: 14px;
  letter-spacing: 3px;
  display: block;
  margin-bottom: 15px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  opacity: 0.9;
}

/* ===== ABOUT ===== */
.about-editorial {
  padding: 160px 100px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  align-items: center;
  max-width: 1400px;
  margin: auto;
}

/* 🔥 IMMAGINI FIX DEFINITIVO (NO TAGLI) */
.img-left img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top; /* 👉 salva il volto */
  display: block;
}

.img-right img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

/* TESTI */
.text-right,
.text-left {
  font-size: 20px;
  line-height: 1.9;
}

.overline {
  letter-spacing: 3px;
  font-size: 12px;
  display: block;
  margin-bottom: 15px;
}

.about-editorial h2 {
  font-family: 'Playfair Display', serif;
  font-size: 54px;
  margin-bottom: 25px;
}

.signature {
  margin-top: 20px;
  font-style: italic;
}

/* ===== SERVIZI ===== */
.services {
  padding: 160px 80px;
  text-align: center;
}

.services h2 {
  font-family: 'Playfair Display', serif;
  font-size: 50px;
  margin-bottom: 60px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.service img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 15px;
}

.service h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.service p {
  font-size: 17px;
  opacity: 0.8;
}

/* ===== RECENSIONI ===== */
.reviews {
  padding: 140px 20px;
  text-align: center;
}

.reviews h2 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  margin-bottom: 40px;
}

#wp-widget-reviews {
  max-width: 700px;
  margin: auto;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 40px;
  font-size: 14px;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {

  .nav {
    padding: 20px;
  }

  .hero {
    height: 75vh;
  }

  .hero-text {
    left: 20px;
    right: 20px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-editorial {
    padding: 100px 25px;
  }

  .text-right,
  .text-left {
    font-size: 17px;
  }

  .about-editorial h2 {
    font-size: 36px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== PORTFOLIO FIX DEFINITIVO ===== */

.portfolio {
  padding: 140px 80px;
}

.portfolio .container {
  max-width: 1400px;
  margin: auto;
}

.portfolio h1 {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  margin-bottom: 20px;
}

.portfolio p {
  font-size: 18px;
  margin-bottom: 60px;
  max-width: 700px;
}

/* GRID PULITA */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* CARD */
.gallery-item {
  display: flex;
  flex-direction: column;
}

/* 🔥 IMMAGINI PERFETTE */
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 15px;
}

/* TESTI */
.gallery-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.gallery-item p {
  font-size: 16px;
  opacity: 0.8;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {

  .portfolio {
    padding: 100px 25px;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .portfolio h1 {
    font-size: 36px;
  }

}
/* ===== PORTFOLIO LAYOUT COERENTE ===== */

.portfolio {
  padding: 160px 80px;
}

.portfolio-intro {
  max-width: 800px;
  margin: 0 auto 80px auto;
  text-align: center;
}

.portfolio-intro h1 {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  margin-bottom: 20px;
}

.portfolio-intro p {
  font-size: 18px;
  opacity: 0.8;
}

/* GRID */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  max-width: 1400px;
  margin: auto;
}

/* CARD */
.portfolio-item {
  display: flex;
  flex-direction: column;
}

/* 🔥 IMMAGINI PERFETTE */
.portfolio-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 20px;
}

/* TESTO */
.portfolio-text h3 {
  font-size: 22px;
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
}

.portfolio-text p {
  font-size: 16px;
  opacity: 0.75;
}

/* ===== EFFETTO LUXURY (semplice ma efficace) ===== */
.portfolio-item img {
  transition: transform 0.6s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {

  .portfolio {
    padding: 100px 25px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .portfolio-intro h1 {
    font-size: 36px;
  }

}
/* ===== HERO SECONDARIA ===== */

.hero-small {
  position: relative;
  height: 50vh;
  min-height: 400px;
  overflow: hidden;
}

.hero-small .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-small .hero-text {
  position: absolute;
  bottom: 15%;
  left: 8%;
  color: white;
  max-width: 600px;
}

.hero-small h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
}

.hero-small p {
  font-size: 18px;
}

/* MOBILE */
@media (max-width: 900px) {
  .hero-small {
    height: 40vh;
  }

  .hero-small h1 {
    font-size: 32px;
  }
}
/* ===== CONTATTI FIX DEFINITIVO ===== */

.contact-section {
  padding: 160px 120px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  max-width: 1300px;
  margin: auto;
  align-items: start;
}

/* TESTO */
.contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  margin-bottom: 25px;
}

.contact-info p {
  font-size: 19px;
  margin-bottom: 20px;
  line-height: 1.8;
}

/* FORM LUXURY */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* due colonne sopra */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* input */
.contact-form input,
.contact-form textarea {
  padding: 18px;
  border: 1px solid #ddd;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  background: #fff;
  transition: 0.3s;
}

/* focus elegante */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #b89b7a;
  outline: none;
}

/* textarea */
.contact-form textarea {
  min-height: 160px;
}

/* bottone */
.contact-form button {
  padding: 18px;
  border: none;
  background: #222;
  color: white;
  font-size: 14px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #b89b7a;
}

/* MOBILE */
@media (max-width: 900px) {

  .contact-section {
    padding: 100px 25px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-info h2 {
    font-size: 34px;
  }
}
/* ===== BANNER MAGAZINE UPGRADE ===== */

#tivoa-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;

  background: #ffffff;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.15);

  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 20px 0; /* 👈 più respiro */
}

#tivoa-banner a {
  display: block;
  width: 100%;
  max-width: 1400px;
  padding: 0 30px;
}

#tivoa-banner img {
  width: 100%;
  height: auto;

  max-height: 220px; /* 👈 QUI CAMBIA TUTTO */

  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* chiusura */
#tivoa-banner-close {
  position: absolute;
  right: 25px;
  top: 15px;
  font-size: 22px;
  cursor: pointer;
  color: #444;
}

/* spazio sotto */
body {
  padding-bottom: 240px; /* 👈 adattato alla nuova altezza */
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  #tivoa-banner {
    padding: 15px 0;
  }

  #tivoa-banner img {
    max-height: 140px; /* 👈 più grande anche su mobile */
  }

  body {
    padding-bottom: 180px;
  }

}