/* Studio Minna - Home Page Styles */

/* 1. Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/CORRIDOIO-PIANO-TERRA.MOD_ri-cent.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 120px 24px 60px;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(30, 40, 52, 0.72) 0%, rgba(18, 24, 32, 0.88) 100%);
  z-index: 1;
}

/* Sfumatura morbida dal fondo della hero verso il colore dello sfondo di pagina */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 220px;
  background: linear-gradient(to bottom, rgba(88, 102, 121, 0) 0%, rgba(88, 102, 121, 0.6) 60%, var(--color-bg-dark) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
}

/* Hero Entrance Animations (Zoom In) */
@keyframes heroZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.78);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes heroSubtitleExpand {
  0% {
    opacity: 0;
    transform: scale(0.9);
    letter-spacing: 0.15em;
  }
  100% {
    opacity: 1;
    transform: scale(1);
    letter-spacing: 0.3em;
  }
}

@keyframes heroFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo-wrap {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  animation: heroZoomIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-logo {
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: var(--font-weight-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-white);
  margin-bottom: 12px;
  animation: heroZoomIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 40px;
  animation: heroSubtitleExpand 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.hero-scroll-down {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
  margin-top: 20px;
  animation: heroFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

.hero-scroll-down:hover {
  color: var(--color-accent);
}

.hero-scroll-icon {
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
  animation: bounceDown 2s infinite ease-in-out;
}

.hero-scroll-icon::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: currentColor;
  border-radius: 50%;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

/* 2. Three Statements Section */
.statements-section {
  background-color: var(--color-bg-dark);
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.statements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.statement-card {
  position: relative;
  background-color: rgba(255, 255, 255, 0.04);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  border-radius: var(--border-radius-md);
  padding: 44px 32px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.statement-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(63, 138, 124, 0.82) 0%, rgba(26, 44, 58, 0.90) 100%);
  z-index: 1;
  transition: background var(--transition-normal);
  pointer-events: none;
}

.statement-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(159, 221, 209, 0.15);
}

.statement-card:hover::before {
  background: linear-gradient(135deg, rgba(63, 138, 124, 0.70) 0%, rgba(26, 44, 58, 0.82) 100%);
}

.statement-card-1 {
  background-image: url('../images/contabilita-bbbb.jpg');
}

.statement-card-2 {
  background-image: url('../images/IMG_header.jpg');
}

.statement-card-3 {
  background-image: url('../images/banner-img-2.jpg');
}

.statement-num {
  font-size: 2.2rem;
  font-weight: var(--font-weight-light);
  color: var(--color-accent);
  margin-bottom: 20px;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.statement-text {
  font-size: 1.25rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.6;
  color: var(--color-text-white);
  position: relative;
  z-index: 2;
}

/* 3. Methodology Section */
.methodology-section {
  position: relative;
  padding: 120px 0;
  background-image: url('../images/SALA-CRISTALLO.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.methodology-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--color-bg-dark) 0%, rgba(26, 36, 48, 0.88) 12%, rgba(26, 36, 48, 0.88) 88%, var(--color-bg-dark) 100%);
  z-index: 1;
}

.methodology-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 60px;
  align-items: start;
}

.methodology-intro {
  position: sticky;
  top: 120px;
}

.methodology-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-weight-light);
  margin-bottom: 24px;
}

.methodology-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 30px;
}

.methodology-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.method-item {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--color-accent);
  padding: 24px 28px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.4s ease;
  opacity: 0.4;
  transform: translateX(-10px);
}

.method-item.active,
.method-item:hover {
  opacity: 1;
  transform: translateX(0);
  background: rgba(255, 255, 255, 0.1);
  border-left-color: var(--color-accent-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.method-item-text {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--color-text-white);
  font-weight: var(--font-weight-medium);
}

/* 4. Three Reasons / Tilt Cards Section */
.reasons-section {
  background-color: #5a6679;
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.reasons-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 70px;
}

.reasons-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: var(--font-weight-light);
  margin-bottom: 16px;
}

.reasons-subtitle {
  font-size: 1.15rem;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.tilt-card {
  position: relative;
  background-color: #263342;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  border-radius: var(--border-radius-md);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.tilt-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(63, 138, 124, 0.76);
  transition: background 0.35s ease;
  z-index: 1;
  pointer-events: none;
}

.tilt-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45), 0 0 25px rgba(159, 221, 209, 0.2);
}

.tilt-card:hover::before {
  background: rgba(88, 102, 121, 0.88);
}

.tilt-card-1 {
  background-image: url('../images/cons_3.jpg');
}

.tilt-card-2 {
  background-image: url('../images/contabilita-bbbb.jpg');
}

.tilt-card-3 {
  background-image: url('../images/bg_commercialista.jpg');
}

.card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-title {
  font-size: 1.45rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-white);
  line-height: 1.35;
}

.card-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.card-footer {
  position: relative;
  z-index: 2;
  margin-top: 32px;
}

.tilt-card:hover .btn-scopri {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: #101C26;
  box-shadow: 0 6px 22px rgba(255, 255, 255, 0.45);
}

.tilt-card .btn-scopri:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 26px rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 1024px) {
  .statements-grid,
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .methodology-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .methodology-intro {
    position: static;
  }
  .method-item {
    opacity: 0.9;
    transform: none;
  }
}
