/* =======================================================
   HERO
======================================================= */

header.hero {
  padding: 10px 16px;
  position: relative;
  overflow: visible;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: center;
}

.hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.92));
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 18px 48px rgba(15, 15, 15, 0.05);
  position: relative;
  overflow: hidden;
}

/* Italian flag overlay */
.flag-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background: linear-gradient(90deg, #1E8449 0 33.333%, #fff 33.333% 66.666%, #C0392B 66.666% 100%);
  mix-blend-mode: overlay;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: 34px;
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
  color: #0B1220;
}

.hero-sub {
  margin: 0 0 22px 0;
  color: var(--muted);
  font-size: 15px;
}

.instagram {
  text-decoration: none;
  color: var(--muted);
  cursor: pointer;
}

.hero-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.buttonsCTA {
  display: flex;
  gap: 12px;
  align-items: center;
}

.profile {
  background: var(--paper);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: 0 10px 26px rgba(12, 18, 26, 0.05);
  transform-origin: center;
  transition: transform var(--transition);
}

.profile:hover {
  transform: translateY(-6px);
}

.avatar {
  width: 125px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(10, 10, 10, 0.06);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.profile h3 {
  margin: 0;
  font-size: 16px;
}

.profile p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.countdown {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.95));
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 10px 30px rgba(29, 78, 33, 0.03);
}

.countdown .numbers {
  font-weight: 700;
  font-size: 20px;
}

.countdown .label {
  font-size: 12px;
  color: var(--muted);
}

/* =======================================================
   HERO RIGHT (foto e overlay)
======================================================= */

.hero-right {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(9, 10, 10, 0.05);
}

.hero-right .photo {
  height: 360px;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-right .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-right .overlay {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.cta-btn,
.btn.btn-outline {
  text-align: center;
}

.minor {
  color: var(--muted);
  font-size: 13px;
}

/* =======================================================
   FLIP PHOTO (somente imagem)
======================================================= */

.flip-photo {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1000px;
  overflow: hidden;
  border-radius: inherit;
}

.flip-photo-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

/* O flip acontece somente na imagem (desktop) */
@media (min-width: 900px) {
  .flip-photo:hover .flip-photo-inner {
    transform: rotateY(180deg);
  }
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  border-radius: inherit;
}

.flip-front img,
.flip-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.flip-back {
  transform: rotateY(180deg);
}

/* =======================================================
   RESPONSIVIDADE
======================================================= */

/* Tablets */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
}

/* Celulares */
@media (max-width: 600px) {
  header.hero {
    padding: 20px 14px;
  }

  .hero-card {
    padding: 20px 16px;
  }

  .hero-title {
    font-size: 26px;
    line-height: 1.3;
  }

  .hero-sub {
    font-size: 14px;
    line-height: 1.5;
  }

  .hero-meta {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .profile {
    flex-direction: column;
    text-align: center;
    width: 100%;
  }

  .profile h3 {
    font-size: 15px;
  }

  .profile p {
    font-size: 12.5px;
  }

  .avatar {
    width: 72px;
    height: 72px;
  }

  .countdown {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }

  .countdown .numbers {
    font-size: 18px;
  }

  

  .hero-right .photo {
    height: 450px;
  }

  .hero-right .overlay {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 14px;
  }

  .hero-right .overlay a.cta-btn {
    width: 100%;
  }

  .cta-btn,
  .btn.btn-outline {
    flex: 1;
    text-align: center;
    font-size: 14px;
    padding: 10px 0;
  }

  .pill {
    display: block;
    margin: 0 auto;
    font-size: 13px;
  }

  .buttonsCTA {
    flex-direction: column;
  }

  .cta-btn,
  .btn-outline {
    width: 100%;
  }

  .pill {
    font-size: 14px;
  }
}
