/* ============================================================
   La Balucca — Custom CSS
   ============================================================ */

/* Google Font supplementare */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

/* ── Hero Section ─────────────────────────────────────────── */
.u-section-1 {
  background: linear-gradient(135deg, #2d4a1e 0%, #4a7c3f 35%, #6b9e5a 60%, #3d6b2a 100%);
  background-position: 50% 50%;
  position: relative;
  overflow: hidden;
}

/* Texture overlay */
.u-section-1::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,220,120,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.u-section-1 .u-sheet-1 {
  min-height: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

/* ── Header Row (Logo + Info) ───────────────────────────── */
.balucca-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 25px;
  animation: fadeInDown 0.9s ease both;
}

.balucca-logo {
  width: 160px;
  margin: 0;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.45));
}

/* ── Dati ufficiali ──────────────────────────────────────── */
.balucca-info {
  text-align: left;
  color: #fff;
  font-family: 'Lato', 'Open Sans', sans-serif;
  margin: 0;
  line-height: 1.6;
}

.balucca-info .b-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin-bottom: 5px;
}

.balucca-info .b-address,
.balucca-info .b-fiscal {
  font-size: 0.95rem;
  font-weight: 300;
  opacity: 0.95;
  letter-spacing: 0.01em;
}

/* ── Casolare card ───────────────────────────────────────── */
.balucca-casolare-wrap {
  width: 100%;
  max-width: 820px;
  margin: 0 auto 32px;
  animation: fadeInUp 1s ease 0.35s both;
}

.balucca-casolare-wrap img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 0 0 3px rgba(255,220,120,0.25);
  display: block;
}

/* ── Targa Regione Umbria ────────────────────────────────── */
.balucca-targa-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto 36px;
  animation: fadeIn 1.2s ease 0.5s both;
}

/* ── Footer Row (Targa + EU) ────────────────────────────── */
.balucca-footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
  max-width: 1100px;
  margin: 20px auto 0;
}

.balucca-targa-wrap {
  margin: 0;
  flex: 0 1 auto;
}

.balucca-targa-wrap img {
  height: 220px;
  max-width: 420px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.4));
}

/* ── EU Funding Section ──────────────────────────────────── */
.balucca-eu-funding {
  flex: 0 1 500px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(5px);
  animation: fadeIn 1.5s ease 0.7s both;
}

.balucca-eu-funding img {
  height: 70px;
  width: auto;
  flex-shrink: 0;
}

.balucca-eu-funding .eu-text {
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
  font-weight: 300;
  opacity: 0.9;
}

/* ── CTA Button ──────────────────────────────────────────── */
.u-section-1 .u-btn-1 {
  background: linear-gradient(135deg, #c8a84b 0%, #e8c96a 50%, #c8a84b 100%) !important;
  background-image: none;
  color: #1a2e0d !important;
  text-transform: uppercase;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  letter-spacing: 0.12em;
  border: none;
  border-radius: 50px;
  padding: 12px 36px !important;
  margin: 10px auto 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
}

.u-section-1 .u-btn-1:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.45);
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1199px) {
  .u-section-1 .u-sheet-1 { min-height: 700px; }
  .balucca-casolare-wrap img { height: 300px; }
}

@media (max-width: 991px) {
  .u-section-1 .u-sheet-1 { min-height: 580px; }
  .balucca-casolare-wrap img { height: 240px; }
  .balucca-logo { width: 180px; }
  .balucca-footer-row { gap: 15px; }
  .balucca-eu-funding { flex-basis: 400px; }
}

@media (max-width: 767px) {
  .u-section-1 .u-sheet-1 { min-height: 480px; }
  .balucca-header-row { flex-direction: column; gap: 15px; text-align: center; }
  .balucca-logo { width: 140px; }
  .balucca-info { text-align: center; }
  .balucca-casolare-wrap img { height: 200px; border-radius: 10px; }
  .balucca-info .b-name { font-size: 1.4rem; }
  .balucca-footer-row { flex-direction: column; }
  .balucca-targa-wrap img { height: 120px; }
  .balucca-eu-funding { flex-basis: auto; width: 100%; max-width: 450px; flex-direction: column; text-align: center; }
  .balucca-eu-funding .eu-text { text-align: center; }
}

/* ── Cookie Policy Button & Modal ────────────────────────── */
.cookie-link-wrap {
  margin-top: 30px;
  animation: fadeIn 1.5s ease 1s both;
}

.cookie-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.7);
  padding: 6px 16px;
  font-size: 0.7rem;
  border-radius: 20px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.cookie-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
}

/* Modal Styling */
.balucca-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.balucca-modal.active {
  display: flex;
}

.balucca-modal-content {
  background: #fdfdfb;
  color: #333;
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  border-radius: 12px;
  overflow-y: auto;
  position: relative;
  padding: 40px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  text-align: left;
}

.balucca-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #999;
}

.balucca-modal-close:hover {
  color: #111;
}

.balucca-modal-content h2 {
  font-family: 'Playfair Display', serif;
  color: #2d4a1e;
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0d0;
  padding-bottom: 10px;
}

.balucca-modal-content h3 {
  font-family: 'Playfair Display', serif;
  color: #4a7c3f;
  margin: 25px 0 10px;
}

.balucca-modal-content p, .balucca-modal-content li {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.balucca-modal-content ul {
  padding-left: 20px;
}

@media (max-width: 575px) {
  .u-section-1 .u-sheet-1 { min-height: 380px; }
  .balucca-casolare-wrap img { height: 160px; }
  .balucca-targa-wrap img { height: 100px; }
  .balucca-eu-funding img { height: 50px; }
}