/* ===== GLOBAL VARIABLES ===== */
:root {
  --primary-color: rgb(32, 55, 61);
  --primary-light: rgb(52, 75, 81);
  --secondary-color: #bca454;
  --secondary-light: #e8c874;
  --accent-color: rgb(32, 55, 61);
  --dark-color: #222222;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --white-color: #ffffff;
  --overlay-color: rgba(0, 0, 0, 0.7);
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --container-width: 1320px;

  /* Text size variables for consistency */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 16px; /* Consistent base font size */
}

body {
  font-family: var(--font-main);
  color: var(--dark-color);
  background-color: var(--light-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}


/* ===== BASE HERO STYLES ===== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--primary-color);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(105deg, 
    rgba(32, 55, 61, 0.85) 0%, 
    rgba(32, 55, 61, 0.65) 50%,
    rgba(32, 55, 61, 0.4) 100%);
  z-index: 1;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white-color);
  max-width: 900px;
  padding: 0 30px;
  width: 90%;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 span {
  color: var(--secondary-color);
  position: relative;
  font-weight: 700;
}

.hero-content h1 span::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--secondary-color);
  transform: scaleX(0.8);
  transform-origin: center;
}

.hero-content p {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 1.8rem auto;
  line-height: 1.7;
  font-weight: 400;
  opacity: 0.95;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 2.8rem;
  width: 100%;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--white-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.8;
  animation: bounce 2s infinite;
}

.hero-scroll-indicator span {
  font-size: 0.85rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 500;
}

.hero-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  position: relative;
}

.hero-mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background-color: var(--white-color);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
  40% {transform: translateY(-10px) translateX(-50%);}
  60% {transform: translateY(-5px) translateX(-50%);}
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateY(0) translateX(-50%);
  }
  100% {
    opacity: 0;
    transform: translateY(12px) translateX(-50%);
  }
}

/* ===== HERO DECOR ELEMENT ===== */
.hero-decor {
  position: absolute;
  font-size: 7rem;
  opacity: 0.25;
  z-index: 3;
  color: var(--white-color);
  transition: all 0.5s ease;
  pointer-events: none;
}

.decor-1 {
  top: 20%;
  left: 60px;
  transform: rotate(-15deg);
}

.decor-2 {
  bottom: 15%;
  right: 60px;
  transform: rotate(25deg);
}

.hero-decor i {
  display: block;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* Animation for decor elements */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(-15deg);
  }
  50% {
    transform: translateY(-15px) rotate(-12deg);
  }
}

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0) rotate(25deg);
  }
  50% {
    transform: translateY(-15px) rotate(28deg);
  }
}

.decor-1 {
  animation: float 6s ease-in-out infinite;
}

.decor-2 {
  animation: floatReverse 8s ease-in-out infinite;
}

/* ===== PROFESSIONAL PAGES HERO OVERRIDES ===== */
/* Targets only: avv-maximiliano-lenzi.html, andrea-maretto.html, alberto-cecolin.html */

/* Reduce hero height for professional pages */
.avv-maximiliano-lenzi-page .hero-section,
.andrea-maretto-page .hero-section,
.alberto-cecolin-page .hero-section {
  height: 70vh;
  min-height: 500px;
}

/* Remove decor elements for professional pages */
.avv-maximiliano-lenzi-page .hero-decor,
.andrea-maretto-page .hero-decor,
.alberto-cecolin-page .hero-decor {
  display: none !important;
}

/* Adjust content positioning for shorter hero */
.avv-maximiliano-lenzi-page .hero-content,
.andrea-maretto-page .hero-content,
.alberto-cecolin-page .hero-content {
  margin-top: 0;
}

/* ===== COMPREHENSIVE RESPONSIVE MEDIA QUERIES ===== */

/* Large Desktop Breakpoint (1440px) */
@media (max-width: 1440px) {
  .hero-content h1 {
    font-size: 3.2rem;
  }
  
  .hero-content p {
    font-size: 1.3rem;
  }
  
  .hero-decor {
    font-size: 6rem;
  }
}

/* Desktop Breakpoint (1200px) */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 2.9rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  
  .hero-decor {
    font-size: 5.5rem;
  }
}

/* Tablet Breakpoints (1024px) */
@media (max-width: 1024px) {
  .hero-section {
    min-height: 550px;
  }
  
  .hero-content h1 {
    font-size: 2.7rem;
  }
  
  .hero-content p {
    font-size: 1.15rem;
  }
  
  .hero-decor {
    font-size: 5rem;
  }
  
  .decor-1 {
    left: 40px;
  }

  .decor-2 {
    right: 40px;
  }
}

/* Tablet Breakpoints (991px) */
@media (max-width: 991px) {
  .hero-section {
    min-height: 500px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
    max-width: 550px;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-decor {
    font-size: 4.5rem;
  }
  
  .decor-1 {
    left: 30px;
  }
  
  .decor-2 {
    right: 30px;
  }
}

/* iPad and Tablet Devices (768px) */
@media (max-width: 768px) {
  .hero-section {
    min-height: 450px;
    height: 80vh;
  }
  
  .hero-content {
    width: 95%;
    padding: 0 20px;
  }
  
  .hero-content h1 {
    font-size: 2.3rem;
    margin-bottom: 1.2rem;
  }
  
  .hero-content p {
    font-size: 1.05rem;
    margin: 1.2rem auto;
    max-width: 500px;
  }
  
  .hero-cta {
    margin-top: 2.2rem;
    gap: 15px;
  }
  
  .hero-scroll-indicator {
    bottom: 30px;
  }
  
  .hero-decor {
    font-size: 4rem;
  }
  
  .decor-1 {
    top: 15%;
    left: 20px;
  }

  .decor-2 {
    bottom: 15%;
    right: 20px;
  }
  
  /* Professional pages responsive adjustments */
  .avv-maximiliano-lenzi-page .hero-section,
  .andrea-maretto-page .hero-section,
  .alberto-cecolin-page .hero-section {
    height: 60vh;
    min-height: 400px;
  }
}

/* Medium Tablets and Large Phones (600px) */
@media (max-width: 600px) {
  .hero-section {
    min-height: 400px;
    height: 75vh;
  }
  
  .hero-content h1 {
    font-size: 2.1rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    max-width: 450px;
  }
  
  .hero-scroll-indicator span {
    font-size: 0.8rem;
  }
  
  .hero-decor {
    font-size: 3.5rem;
  }
  
  .decor-1 {
    left: 15px;
  }
  
  .decor-2 {
    right: 15px;
  }
}

/* Google Pixel, Nexus, and similar devices (480px) */
@media (max-width: 480px) {
  .hero-section {
    min-height: 500px;
    height: 85vh;
  }
  
  .hero-content {
    margin-top: -5%;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    max-width: 400px;
  }
  
  .hero-decor {
    font-size: 3rem;
  }
  
  .decor-1 {
    top: 12%;
    left: 15px;
  }

  .decor-2 {
    bottom: 12%;
    right: 15px;
  }
  
  /* Professional pages responsive adjustments */
  .avv-maximiliano-lenzi-page .hero-section,
  .andrea-maretto-page .hero-section,
  .alberto-cecolin-page .hero-section {
    height: 55vh;
    min-height: 350px;
  }
}

/* Apple iPhone XR, XS Max, 8 Plus, 7 Plus (414px) */
@media (max-width: 414px) {
  .hero-section {
    min-height: 480px;
    height: 82vh;
  }
  
  .hero-content {
    margin-top: -7%;
    min-width: 500px;
  }
  
  .hero-content h1 {
    font-size: 1.9rem;
  }
  
  .hero-content p {
    
    max-width: 380px;
  }
  
  .hero-cta {
    margin-top: 1.8rem;
  }
  
  .hero-decor {
    font-size: 2.8rem;
  }
  
  .decor-1 {
    top: 10%;
    left: 10px;
  }

  .decor-2 {
    bottom: 10%;
    right: 10px;
  }
}

/* Apple iPhone X, XS, 8, 7, 6 (375px) */
@media (max-width: 375px) {
  .hero-section {
    min-height: 450px;
    height: 80vh;
  }
  
  .hero-content {
    margin-top: -8%;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content p {
    font-size: 0.9rem;
    max-width: 340px;
  }
  
  .ctaButton, .secondaryButton {
    min-width: auto;
    padding: 14px 22px;
    font-size: 0.95rem;
  }
  
  .hero-decor {
    font-size: 2.5rem;
  }
  
  .decor-1 {
    top: 8%;
    left: 8px;
  }

  .decor-2 {
    bottom: 8%;
    right: 8px;
  }
}

/* Samsung Galaxy S9+, S8+, Note series (360px) */
@media (max-width: 360px) {
  .hero-section {
    min-height: 420px;
    height: 78vh;
  }
  
  .hero-content {
    margin-top: -10%;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .hero-content p {
    font-size: 0.9rem;
    max-width: 320px;
  }
  
  .hero-decor {
    font-size: 2.2rem;
  }
  
  .decor-1 {
    top: 7%;
    left: 5px;
  }

  .decor-2 {
    bottom: 7%;
    right: 5px;
  }
}

/* Small phones (320px) - iPhone 5/SE, Galaxy S3 mini, etc. */
@media (max-width: 320px) {
  .hero-section {
    min-height: 380px;
    height: 75vh;
  }
  
  .hero-content {
    margin-top: -12%;
    padding: 0 15px;
  }
  
  .hero-content h1 {
    font-size: 1.65rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 0.85rem;
    margin: 1rem auto;
    max-width: 300px;
  }
  
  .hero-cta {
    margin-top: 1.5rem;
    gap: 12px;
  }
  
  .ctaButton, .secondaryButton {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .hero-scroll-indicator {
    bottom: 25px;
  }
  
  .hero-scroll-indicator span {
    font-size: 0.75rem;
  }
  
  .hero-decor {
    font-size: 2rem;
    opacity: 0.2;
  }
  
  .decor-1 {
    left: 5px;
  }
  
  .decor-2 {
    right: 5px;
  }
}

/* Special adjustments for very short screens */
@media (max-height: 500px) {
  .hero-section {
    min-height: 350px;
    height: 120vh;
  }
  
  .hero-content {
    margin-top: -5%;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin: 1rem auto;
  }
  
  .hero-cta {
    margin-top: 1.8rem;
  }
  
  .hero-scroll-indicator {
    display: none;
  }
  
  .hero-decor {
    opacity: 0.15;
    font-size: 2.5rem;
  }
}

/* Special adjustments for tall devices like Honor 70 */
@media (max-width: 480px) and (min-height: 890px) {
  .hero-section {
    min-height: 550px;
    height: 90vh;
  }
  
  .hero-content {
    margin-top: -10%;
  }
  
  .hero-content h1 {
    font-size: 2.4rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .hero-decor {
    font-size: 3.5rem;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: 450px;
    height: 150vh;
  }
  
  .hero-content {
    margin-top: -5%;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .hero-cta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 1.8rem;
  }
  
  .ctaButton, .secondaryButton {
    min-width: 170px;
  }
  
  .hero-scroll-indicator {
    display: none;
  }
  
  .hero-decor {
    opacity: 0.1;
    font-size: 2.5rem;
  }
  
  .decor-1 {
    top: 10%;
  }
  
  .decor-2 {
    bottom: 5%;
  }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-content h1,
  .hero-content p {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  .hero-decor {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Print styles */
@media print {
  .hero-section {
    height: auto;
    min-height: auto;
    background: white !important;
  }
  
  .hero-overlay {
    display: none;
  }
  
  .hero-image {
    display: none;
  }
  
  .hero-content {
    color: black !important;
    text-shadow: none !important;
    position: relative;
    margin-top: 0;
  }
  
  .hero-content h1 {
    color: black !important;
    font-size: 2.5rem;
  }
  
  .hero-content h1 span {
    color: #333 !important;
  }
  
  .hero-content p {
    color: #444 !important;
    font-size: 1rem;
  }
  
  .hero-cta {
    display: none;
  }
  
  .hero-scroll-indicator {
    display: none;
  }
  
  .hero-decor {
    display: none !important;
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-content h1,
  .hero-content p,
  .hero-cta {
    animation: none;
  }
  
  .hero-scroll-indicator {
    animation: none;
  }
  
  .hero-mouse::before {
    animation: none;
  }
  
  .hero-decor {
    animation: none !important;
    transition: none !important;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .hero-cta .ctaButton:hover,
  .hero-cta .secondaryButton:hover {
    transform: none;
  }
  
  .hero-section {
    min-height: 500px;
  }
}

/* Very large screens (4K and beyond) */
@media (min-width: 2000px) {
  .hero-section {
    min-height: 700px;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content p {
    font-size: 1.6rem;
    max-width: 800px;
  }
  
  .hero-cta {
    margin-top: 3.5rem;
  }
  
  .ctaButton, .secondaryButton {
    padding: 20px 40px;
    font-size: 1.2rem;
    min-width: 240px;
  }
  
  .hero-decor {
    font-size: 8rem;
  }
}

/* Ultra-wide screens */
@media (min-width: 2560px) and (max-height: 1080px) {
  .hero-section {
    min-height: 600px;
  }
  
  .hero-content h1 {
    font-size: 4rem;
  }
  
  .hero-content p {
    font-size: 1.4rem;
  }
  
  .hero-decor {
    font-size: 7rem;
  }
}

/* Specific device optimizations */

/* iPhone 12/13 mini */
@media (max-width: 375px) and (max-height: 812px) {
  .hero-section {
    min-height: 420px;
    height: 82vh;
  }
}

/* Galaxy Fold */
@media (max-width: 280px) {
  .hero-section {
    min-height: 350px;
    height: 70vh;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .hero-content p {
    font-size: 0.85rem;
    max-width: 260px;
  }
  
  .ctaButton, .secondaryButton {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
  
  .hero-decor {
    font-size: 1.8rem;
  }
}

/* Surface Duo */
@media (max-width: 540px) and (min-height: 720px) {
  .hero-section {
    min-height: 480px;
    height: 85vh;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .hero-decor {
    font-size: 3.2rem;
  }
}

/* iPad Mini */
@media (width: 768px) and (height: 1024px) {
  .hero-section {
    min-height: 600px;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .hero-content p {
    font-size: 1.25rem;
  }
  
  .hero-decor {
    font-size: 4.5rem;
  }
}

/* iPad Air */
@media (width: 820px) and (height: 1180px) {
  .hero-section {
    min-height: 650px;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content p {
    font-size: 1.3rem;
  }
  
  .hero-decor {
    font-size: 5rem;
  }
}

/* iPad Pro 11" */
@media (width: 834px) and (height: 1194px) {
  .hero-section {
    min-height: 650px;
  }
  
  .hero-content h1 {
    font-size: 3.2rem;
  }
  
  .hero-content p {
    font-size: 1.3rem;
  }
  
  .hero-decor {
    font-size: 5.5rem;
  }
}

/* iPad Pro 12.9" */
@media (width: 1024px) and (height: 1366px) {
  .hero-section {
    min-height: 700px;
  }
  
  .hero-content h1 {
    font-size: 3.6rem;
  }
  
  .hero-content p {
    font-size: 1.4rem;
  }
  
  .hero-decor {
    font-size: 6rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .hero-decor {
    color: rgba(255, 255, 255, 0.12);
  }
}