/*
Theme Name: TIRAMIZOETJE
Theme URI:
Author: Matteo Di Bello
Author URI: www.mdbmilano.it
Description: Tiramisu Shop Amsterdam - Authentic Italian Desserts
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: restaurant, food, tiramisu, italian, amsterdam
Text Domain: mdb

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* =============================================================================
   VARIABLES & COLORS
============================================================================= */
:root {
  --primary-purple: #4A3C85;
  --secondary-orange: #FF9500;
  --light-purple: #6B5DA3;
  --dark-purple: #362A6B;
  --cream: #FFF8F0;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --text-dark: #2C2C2C;
  --text-light: #6C6C6C;

  --font-primary: 'Montserrat', sans-serif;

  --shadow-light: 0 2px 15px rgba(74, 60, 133, 0.1);
  --shadow-medium: 0 5px 25px rgba(74, 60, 133, 0.15);
  --shadow-heavy: 0 10px 40px rgba(74, 60, 133, 0.2);

  --border-radius: 20px;
  --border-radius-small: 10px;

  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

/* =============================================================================
   BASE STYLES
============================================================================= */
* {
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

body, html {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background-color: var(--primary-purple);
  color: var(--white);
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
  scroll-behavior: smooth;
  transition: var(--transition-fast);
}

body.menu-open {
  overflow: hidden;
}

body.loaded {
  opacity: 1;
}

.admin-bar .navbar--fixed {
  top: 32px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: none;
  color: var(--secondary-orange);
}

/* =============================================================================
   TYPOGRAPHY
============================================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--white);
}

.section-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--secondary-orange);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-orange), var(--light-purple));
  margin: 1rem auto;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--white);
  opacity: 0.9;
  text-align: center;
  margin-bottom: 3rem;
}
/* =============================================================================
   NAVBAR LANGUAGE SWITCHER - LARGER FLAGS (2 LANGUAGES)
============================================================================= */

.nav-right {
  gap: 1.2rem;
  align-items: center;
}

.navbar-language-switcher {
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
}

.navbar-language-switcher ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.navbar-language-switcher li {
  margin: 0;
}

.navbar-language-switcher a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;          /* Increased from 36px */
  height: 42px;         /* Increased from 36px */
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  transition: var(--transition-fast);
  border: 2px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
}

.navbar-language-switcher a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: var(--transition-fast);
}

.navbar-language-switcher a:hover {
  background: rgba(255, 149, 0, 0.3);
  border-color: var(--secondary-orange);
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

.navbar-language-switcher a:hover::before {
  opacity: 1;
}

.navbar-language-switcher a.current-lang,
.navbar-language-switcher .current_page_item a {
  background: var(--secondary-orange);
  border-color: var(--white);
  box-shadow: 0 3px 10px rgba(255, 149, 0, 0.4);
  transform: scale(1.05);
}

.navbar-language-switcher a.current-lang::before,
.navbar-language-switcher .current_page_item a::before {
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 1;
}

.navbar-language-switcher img {
  width: 28px !important;          /* Increased from 24px */
  height: 28px !important;         /* Increased from 24px */
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

/* Responsive Design for Larger Flags */
@media (max-width: 991px) {
  .nav-right {
    gap: 1rem;
  }

  .navbar-language-switcher a {
    width: 38px;         /* Increased from 34px */
    height: 38px;        /* Increased from 34px */
  }

  .navbar-language-switcher img {
    width: 26px;         /* Increased from 22px */
    height: 26px;        /* Increased from 22px */
  }
}

@media (max-width: 767px) {
  .nav-right {
    gap: 0.8rem;
  }

  .navbar-language-switcher {
    margin-right: 0.4rem;
  }

  .navbar-language-switcher ul {
    gap: 0.5rem;
  }

  .navbar-language-switcher a {
    width: 34px;         /* Increased from 30px */
    height: 34px;        /* Increased from 30px */
  }

  .navbar-language-switcher img {
    width: 24px;         /* Increased from 20px */
    height: 24px;        /* Increased from 20px */
  }
}

@media (max-width: 480px) {
  .nav-right {
    gap: 0.6rem;
  }

  .navbar-language-switcher ul {
    gap: 0.4rem;
  }

  .navbar-language-switcher a {
    width: 32px;         /* Increased from 28px */
    height: 32px;        /* Increased from 28px */
  }

  .navbar-language-switcher img {
    width: 22px;         /* Increased from 18px */
    height: 22px;        /* Increased from 18px */
  }
}

/* Hide text, show only flags */
.navbar-language-switcher .lang-item {
  font-size: 0;
  line-height: 0;
}

.navbar-language-switcher a:focus {
  outline: 2px solid var(--secondary-orange);
  outline-offset: 2px;
}
/* =============================================================================
   NAVIGATION SYSTEM
============================================================================= */

/* Top Bar - REMOVED (menu stays fixed) */

/* Main Navigation */
.main-navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 2rem 0;
  transition: var(--transition-medium);
}

.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  z-index: 1001;
}

.nav-logo {
  height: 60px;
  width: auto;
  transition: var(--transition-fast);
}

/* Hamburger Menu */
.hamburger-menu {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

.hamburger-menu span {
  display: block;
  height: 3px;
  width: 30px;
  background: var(--secondary-orange);
  margin: 3px 0;
  transition: var(--transition-fast);
  border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Fullscreen Menu */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(74, 60, 133, 0.8);
  backdrop-filter: blur(10px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-medium);
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

.fullscreen-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 500px;
  height: 100vh;
  background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
  z-index: 1000;
  transform: translateX(100%);
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-heavy);
}

.fullscreen-menu.show {
  transform: translateX(0);
}

.menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 1001;
}

.close-menu {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
}

.close-menu span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 3px;
  background: var(--secondary-orange);
  border-radius: 2px;
}

.close-menu span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-menu span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.menu-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 2rem;
  background-color: #4a3c85;
background-image: url('https://www.transparenttextures.com/patterns/concrete-wall-2.png');
box-shadow: 0 0 30px black;
}

.fullscreen-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.fullscreen-nav-menu li {
  margin: 2rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

.fullscreen-menu.show .fullscreen-nav-menu li {
  opacity: 1;
  transform: translateY(0);
}

.fullscreen-nav-menu li:nth-child(1) { transition-delay: 0.1s; }
.fullscreen-nav-menu li:nth-child(2) { transition-delay: 0.2s; }
.fullscreen-nav-menu li:nth-child(3) { transition-delay: 0.3s; }
.fullscreen-nav-menu li:nth-child(4) { transition-delay: 0.4s; }

.fullscreen-nav-menu a {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--white);
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.fullscreen-nav-menu a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: var(--secondary-orange);
  transition: var(--transition-medium);
}

.fullscreen-nav-menu a:hover::before {
  left: 0;
}

.language-switcher {
  margin-top: 3rem;
  text-align: center;
}

.language-switcher a {
  display: inline-block;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--secondary-orange);
  border-radius: var(--border-radius-small);
  font-weight: 600;
  transition: var(--transition-fast);
}

.language-switcher a:hover,
.language-switcher a.current-lang {
  background: var(--secondary-orange);
  color: var(--primary-purple);
}

/* =============================================================================
   HERO SECTION - MOBILE OPTIMIZED VERSION
============================================================================= */

.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Default background for mobile - will be overridden by inline style for desktop */
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%);
}

/* Mobile override - keep gradient on small screens */
@media (max-width: 767px) {
  .hero-section {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%) !important;
  }
}

/* Add text shadow for better readability on image background */
@media (min-width: 768px) {
  .hero-tagline {
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);
  }

  .hero-logo-text {
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);
  }
}

/* Hero Content - ALWAYS CENTERED */
.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 800px;
  width: 100%;
  padding: 0 2rem;
  z-index: 20;
  min-height: 100vh;
}

/* Logo Wrapper */
.hero-logo-wrapper {
  margin-bottom: 2rem;
  position: relative;
  text-align: center;
}

/* Logo Image */
.hero-logo-img {
  max-width: 350px;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  /* Initially hidden for animation */
  opacity: 0;
  transform: scale(0.5) rotate(-10deg);
  visibility: hidden;
}

/* Text Logo Fallback */
.hero-logo-text {
  font-size: 4rem;
  font-weight: 900;
  color: var(--secondary-orange);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  letter-spacing: 3px;
  margin: 0;
  /* Initially hidden for animation */
  opacity: 0;
  transform: scale(0.5);
  visibility: hidden;
}

/* Hero Tagline */
.hero-tagline {
  font-size: 3rem;
  font-weight: 900;
  color: var(--secondary-orange);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
  margin: 0;
  line-height: 1.2;
  text-align: center;
  /* Initially hidden for animation */
  opacity: 0;
  transform: translateY(50px) scale(0.8);
  visibility: hidden;
}

/* Floating Background Elements */
.hero-floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-ingredient {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  opacity: 0.1;
  background: radial-gradient(circle, var(--secondary-orange) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.ingredient-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 6s;
}

.ingredient-2 {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
  animation-duration: 8s;
}

.ingredient-3 {
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
  animation-duration: 7s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

/* Floating Animation for Hero Elements (activated by JavaScript) */
.hero-floating {
  animation: heroFloat 4s ease-in-out infinite;
}

.hero-floating-delayed {
  animation: heroFloat 5s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Parallax Effect on Scroll */
.hero-parallax {
  transition: transform 0.1s ease-out;
}

/* Show elements when loaded */
.hero-logo-img.loaded,
.hero-logo-text.loaded,
.hero-tagline.loaded {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* =============================================================================
   HERO RESPONSIVE DESIGN - MOBILE FIRST APPROACH
============================================================================= */

/* Large Desktop - 1200px and up */
@media (min-width: 1200px) {
  .hero-content {
    max-width: 900px;
    padding: 0 3rem;
  }

  .hero-logo-img {
    max-width: 400px;
  }

  .hero-tagline {
    font-size: 3.5rem;
    letter-spacing: 3px;
  }

  .hero-logo-text {
    font-size: 4.5rem;
  }
}

/* Desktop - 992px to 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-content {
    max-width: 750px;
    padding: 0 2.5rem;
  }

  .hero-logo-img {
    max-width: 350px;
  }

  .hero-tagline {
    font-size: 3.2rem;
    letter-spacing: 2.5px;
  }

  .hero-logo-text {
    font-size: 4.2rem;
  }
}

/* Tablet - 768px to 991px */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-content {
    padding: 0 2rem;
    max-width: 650px;
  }

  .hero-tagline {
    font-size: 2.8rem;
    letter-spacing: 2px;
  }

  .hero-logo-img {
    max-width: 320px;
  }

  .hero-logo-text {
    font-size: 3.8rem;
    letter-spacing: 2.5px;
  }

  .hero-logo-wrapper {
    margin-bottom: 2.5rem;
  }
}

/* Mobile Large - 481px to 767px */
@media (min-width: 481px) and (max-width: 767px) {
  .hero-content {
    padding: 0 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-tagline {
    font-size: 3.2rem;
    line-height: 1.1;
    white-space: normal;
    text-align: center;
    margin: 0;
    letter-spacing: 1.5px;
  }

  .hero-logo-img {
    max-width: 420px;
    width: 90vw;
  }

  .hero-logo-text {
    font-size: 4.2rem;
    letter-spacing: 2px;
    text-align: center;
  }

  .hero-logo-wrapper {
    margin-bottom: 2.5rem;
    text-align: center;
  }
}

/* Mobile Medium - 376px to 480px (iPhone 16 Pro, iPhone 15 Pro, etc.) */
@media (min-width: 376px) and (max-width: 480px) {
  .hero-content {
    padding: 0 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-tagline {
    font-size: 3.6rem;
    letter-spacing: 1px;
    line-height: 1.05;
    text-align: center;
    margin: 0;
  }

  .hero-logo-img {
    max-width: 450px;
    width: 95vw;
  }

  .hero-logo-text {
    font-size: 4.6rem;
    letter-spacing: 1.5px;
    text-align: center;
  }

  .hero-logo-wrapper {
    margin-bottom: 2.2rem;
    text-align: center;
  }
}

/* Mobile Small - 320px to 375px (iPhone SE, iPhone 12 mini, etc.) */
@media (max-width: 375px) {
  .hero-content {
    padding: 0 0.8rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-tagline {
    font-size: 3.2rem;
    letter-spacing: 0.5px;
    line-height: 1.05;
    text-align: center;
    margin: 0;
  }

  .hero-logo-img {
    max-width: 380px;
    width: 92vw;
  }

  .hero-logo-text {
    font-size: 4.2rem;
    letter-spacing: 1px;
    text-align: center;
  }

  .hero-logo-wrapper {
    margin-bottom: 2rem;
    text-align: center;
  }

  .floating-ingredient {
    width: 150px;
    height: 150px;
  }
}

/* Extra Small Mobile - below 320px */
@media (max-width: 319px) {
  .hero-content {
    padding: 0 0.8rem;
  }

  .hero-tagline {
    font-size: 1.8rem;
    letter-spacing: 0px;
  }

  .hero-logo-img {
    max-width: 240px;
    width: 70vw;
  }

  .hero-logo-text {
    font-size: 2.5rem;
    letter-spacing: 0.5px;
  }

  .hero-logo-wrapper {
    margin-bottom: 1.5rem;
  }
}

/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-content {
    min-height: 90vh;
    padding: 1rem;
  }

  .hero-tagline {
    font-size: 2rem;
    margin: 0;
  }

  .hero-logo-img {
    max-width: 200px;
  }

  .hero-logo-text {
    font-size: 2.5rem;
  }

  .hero-logo-wrapper {
    margin-bottom: 1rem;
  }

  .floating-ingredient {
    display: none; /* Hide floating elements in landscape mobile */
  }
}

/* High DPI/Retina Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-logo-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero-logo-img,
  .hero-logo-text,
  .hero-tagline {
    transition: none;
  }

  .floating-ingredient {
    animation: none;
  }

  .hero-floating,
  .hero-floating-delayed {
    animation: none;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .hero-section {
    background: linear-gradient(135deg, #2a1f3d 0%, #1a0f2e 100%);
  }
}

/* Print Styles */
@media print {
  .hero-section {
    background: white !important;
    height: auto;
    page-break-inside: avoid;
  }

  .hero-tagline,
  .hero-logo-text {
    color: #4A3C85 !important;
    text-shadow: none !important;
  }

  .floating-ingredient {
    display: none;
  }
}

/* =============================================================================
   HERO MOBILE CTA - BOTTONE CALL TO ACTION
============================================================================= */

/* CTA Button - Solo Mobile */
.hero-cta {
  margin-top: 3rem;
  text-align: center;
  display: none; /* Nascosto su desktop */
}

.hero-cta-button {
  display: inline-block;
  background: var(--secondary-orange);
  color: var(--primary-purple);
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 3px solid var(--primary-purple);
  box-shadow: 0 8px 25px rgba(255, 149, 0, 0.4);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.hero-cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(74, 60, 133, 0.2), transparent);
  transition: 0.5s;
}

.hero-cta-button:hover::before {
  left: 100%;
}

.hero-cta-button:hover {
  background: var(--primary-purple);
  color: var(--secondary-orange);
  border-color: var(--secondary-orange);
  box-shadow: 0 12px 35px rgba(74, 60, 133, 0.5);
  transform: translateY(-3px);
  text-decoration: none;
}

.hero-cta-button:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(255, 149, 0, 0.6);
}

/* Mobile - CTA Visibile */
@media (max-width: 767px) {
  .hero-cta {
    display: block; /* Visibile solo su mobile */
    margin-top: 2.5rem;
  }

  .hero-cta-button {
    padding: 1.3rem 3rem;
    font-size: 1.15rem;
    border-radius: 60px;
    box-shadow: 0 10px 30px rgba(255, 149, 0, 0.5);
  }

  .hero-cta-button:hover {
    box-shadow: 0 15px 40px rgba(74, 60, 133, 0.6);
  }
}

@media (max-width: 480px) {
  .hero-cta {
    margin-top: 2rem;
  }

  .hero-cta-button {
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
    border-radius: 50px;
  }
}

@media (max-width: 393px) {
  .hero-cta {
    margin-top: 2.5rem;
  }

  .hero-cta-button {
    padding: 1.4rem 3.2rem;
    font-size: 1.1rem;
    width: 90%;
    max-width: 300px;
  }
}

/* =============================================================================
   ABOUT SECTION
============================================================================= */
.about-section {
  padding: 8rem 0;
  background: var(--primary-purple);
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary-orange), transparent);
}

.about-image {
  position: relative;
  margin-bottom: 2rem;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  transition: var(--transition-medium);
}

.about-image img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-heavy);
}

.about-content {
  padding: 2rem;
}

.about-content h2 {
  color: var(--secondary-orange);
  margin-bottom: 2rem;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--white);
  opacity: 0.95;
}


/* =============================================================================
   PRODUCTS TITLE SECTION
============================================================================= */
.products-title-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--light-purple) 50%, var(--primary-purple) 100%);
  position: relative;
}

.products-title-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--secondary-orange), transparent);
}

.products-title-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--secondary-orange), transparent);
}

.products-title-section .section-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--secondary-orange);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

.products-title-section .section-subtitle {
  font-size: 1.3rem;
  color: var(--white);
  opacity: 0.95;
  margin-bottom: 0;
  font-weight: 400;
}

/* =============================================================================
   PRODUCTS SECTION - DESKTOP FIRST APPROACH
============================================================================= */
.products-section {
  padding: 8rem 0;
  background: linear-gradient(45deg, var(--primary-purple), var(--light-purple));
  position: relative;
}

.products-section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 320px));
  gap: 2rem;
  justify-content: center;
  max-width: 100%;
  margin: 0 auto;
}

.product-item {
  perspective: 1000px;
  height: 420px;
  width: 320px;
  max-width: 320px;
  margin: 0 auto;
}

.product-card {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

.product-item.flipped .product-card {
  transform: rotateY(180deg);
}

.product-front,
.product-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.product-back {
  transform: rotateY(180deg);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

/* IMAGE CONTAINER */
.product-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition-medium);
}

/* PRODUCT TITLE SECTION */
.product-info {
  padding: 1.2rem 1rem;
  background: var(--white);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid var(--primary-purple);
  min-height: 70px;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-purple);
  text-align: center;
  margin: 0;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

/* FOOTER BUTTON */
.product-footer {
  background: var(--secondary-orange);
  padding: 0;
  flex-shrink: 0;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.flip-button {
  width: 100%;
  padding: 1rem;
  background: none;
  border: none;
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 60px;
}

.flip-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transition: var(--transition-medium);
}

.flip-button:hover::before {
  left: 0;
}

.flip-button:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.flip-button i {
  font-size: 1rem;
  transition: var(--transition-fast);
}

.flip-button:hover .fa-arrow-right {
  transform: translateX(5px);
}

.flip-button:hover .fa-arrow-left {
  transform: translateX(-5px);
}

.back-button {
  background: var(--primary-purple);
}

.back-button:hover {
  background: rgba(74, 60, 133, 0.9);
}

/* BACK SIDE - INGREDIENTS */
.product-ingredients {
  padding: 1.5rem 1.2rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.product-ingredients h4 {
  color: var(--primary-purple);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-align: center;
  border-bottom: 3px solid var(--secondary-orange);
  padding-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ingredients-content {
  color: var(--text-dark);
  flex: 1;
  line-height: 1.6;
  font-size: 0.95rem;
  overflow-y: auto;
}

.ingredients-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ingredients-content li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(74, 60, 133, 0.1);
  position: relative;
  padding-left: 1.8rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.ingredients-content li:hover {
  color: var(--primary-purple);
  padding-left: 2rem;
}

.ingredients-content li::before {
  content: '✦';
  color: var(--secondary-orange);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0.6rem;
  font-size: 1rem;
}

.ingredients-content p {
  margin-bottom: 0.8rem;
  font-weight: 500;
}

/* NO PRODUCTS MESSAGE */
.no-products-message {
  background: rgba(255, 255, 255, 0.15);
  padding: 4rem 3rem;
  border-radius: var(--border-radius);
  backdrop-filter: blur(15px);
  color: var(--white);
  text-align: center;
  border: 2px solid var(--secondary-orange);
  grid-column: 1 / -1;
}

.no-products-message h3 {
  color: var(--secondary-orange);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.no-products-message p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.no-products-message small {
  opacity: 0.7;
  font-style: italic;
  font-size: 0.9rem;
}

/* =============================================================================
   RESPONSIVE DESIGN - MOBILE OPTIMIZED
============================================================================= */

/* Responsive for Products Title */
@media (max-width: 991px) {
  .products-title-section {
    padding: 3rem 0;
  }

  .products-title-section .section-title {
    font-size: 2.8rem;
  }

  .products-title-section .section-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 767px) {
  .products-title-section {
    padding: 2.5rem 0;
  }

  .products-title-section .section-title {
    font-size: 2.2rem;
  }

  .products-title-section .section-subtitle {
    font-size: 1.1rem;
  }
}

/* Desktop Responsive */
@media (max-width: 1400px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 300px));
    gap: 1.8rem;
  }

  .product-item {
    width: 300px;
    max-width: 300px;
  }
}

@media (max-width: 1199px) {
  .products-section .container {
    padding: 0 1.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 290px));
    gap: 1.5rem;
  }

  .product-item {
    height: 400px;
    width: 290px;
    max-width: 290px;
  }

  .product-image {
    height: 220px;
  }
}

@media (max-width: 991px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 280px));
    gap: 1.2rem;
  }

  .product-item {
    height: 380px;
    width: 280px;
    max-width: 280px;
  }

  .product-image {
    height: 200px;
  }

  .product-title {
    font-size: 1.1rem;
  }

  .product-ingredients h4 {
    font-size: 1.3rem;
  }
}

/* =============================================================================
   MOBILE COMPLETE REDESIGN - NO OVERLAPS
============================================================================= */

@media (max-width: 767px) {
  .products-section {
    padding: 6rem 0 10rem; /* Più spazio sopra e sotto */
    background: linear-gradient(45deg, var(--primary-purple), var(--light-purple));
  }

  .products-section .container {
    padding: 0 1.5rem;
    max-width: 100%;
  }

  .products-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem; /* Gap molto grande tra le card */
    width: 100%;
    margin: 0;
  }

  .product-item {
    height: auto; /* Altezza dinamica solo per mobile */
    min-height: 450px; /* Minimo per evitare card troppo piccole */
    width: 100%;
    max-width: 360px;
    margin: 0;
    position: relative;
    z-index: 1;
  }

  /* Assicura che le card girate abbiano spazio sufficiente */
  .product-item.flipped {
    height: auto;
    min-height: 500px;
    z-index: 10; /* Portala sopra le altre */
  }

  .product-front,
  .product-back {
    height: auto;
    min-height: 450px;
  }

  .product-back {
    min-height: 500px; /* Più spazio per gli ingredienti */
  }

  .product-image {
    height: 280px; /* Molto più alte per vedere meglio */
    flex-shrink: 0;
  }

  .product-info {
    padding: 1.2rem;
    min-height: 70px;
    flex-shrink: 0;
  }

  .product-title {
    font-size: 1.15rem;
  }

  .flip-button {
    padding: 1rem;
    font-size: 0.85rem;
    min-height: 55px;
    flex-shrink: 0;
  }

  .product-ingredients {
    padding: 1.5rem 1.2rem 1rem;
    flex: 1;
    min-height: 300px;
  }

  .product-ingredients h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
  }

  .ingredients-content {
    font-size: 0.95rem;
    line-height: 1.7;
    overflow: visible;
    flex: 1;
  }

  /* Spazio extra tra le card per evitare sovrapposizioni */
  .product-item + .product-item {
    margin-top: 4rem;
  }
}

@media (max-width: 480px) {
  .products-section {
    padding: 5rem 0 8rem;
  }

  .products-grid {
    gap: 5rem; /* Gap ancora più grande */
    padding: 0 1rem;
  }

  .product-item {
    max-width: 340px;
    min-height: 420px;
  }

  .product-item.flipped {
    min-height: 480px;
  }

  .product-front,
  .product-back {
    min-height: 420px;
  }

  .product-back {
    min-height: 480px;
  }

  .product-image {
    height: 260px;
  }

  .product-info {
    padding: 1rem;
    min-height: 60px;
  }

  .product-title {
    font-size: 1.1rem;
    line-height: 1.2;
  }

  .flip-button {
    padding: 0.9rem;
    font-size: 0.8rem;
    min-height: 50px;
  }

  .product-ingredients {
    padding: 1.3rem 1rem;
    min-height: 280px;
  }

  .product-ingredients h4 {
    font-size: 1.2rem;
  }

  .ingredients-content {
    font-size: 0.9rem;
  }

  .no-products-message {
    padding: 2rem 1.5rem;
  }

  .no-products-message h3 {
    font-size: 1.6rem;
  }

  /* Spazio extra ancora maggiore */
  .product-item + .product-item {
    margin-top: 5rem;
  }
}

/* iPhone 16 Pro specifico */
@media (max-width: 393px) {
  .products-section {
    padding: 4rem 0 7rem;
  }

  .products-grid {
    gap: 6rem; /* Massimo gap */
    padding: 0 0.8rem;
  }

  .product-item {
    max-width: 350px;
  }

  .product-image {
    height: 280px;
  }

  /* Massimo spazio tra le card */
  .product-item + .product-item {
    margin-top: 6rem;
  }
}

/* Force no overlaps */
.products-grid > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .products-grid > * {
    max-width: 100% !important;
    flex: none !important;
    display: block !important;
  }

  /* Assicura che non ci siano sovrapposizioni */
  .product-item {
    clear: both;
    float: none;
    position: relative;
  }
}


/* =============================================================================
   UBER EATS SECTION
============================================================================= */
.ubereats-section {
  padding: 8rem 0;
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%);
  position: relative;
  overflow: hidden;
}

.ubereats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #000000, #00D2AA, #000000);
}

.ubereats-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #000000, #00D2AA, #000000);
}

.ubereats-content {
  padding: 2rem;
}

.ubereats-subtitle {
  font-size: 2.2rem;
  font-weight: 800;
  color: #00D2AA;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.ubereats-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--white);
  opacity: 0.95;
}

.ubereats-cta {
  margin-top: 3rem;
}

.ubereats-btn {
  display: inline-block;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  color: var(--white);
  padding: 1.5rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-fast);
  border: 3px solid #00D2AA;
  box-shadow: 0 10px 30px rgba(0, 210, 170, 0.3);
  position: relative;
  overflow: hidden;
}

.ubereats-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 210, 170, 0.2), transparent);
  transition: var(--transition-medium);
}

.ubereats-btn:hover::before {
  left: 100%;
}

.ubereats-btn:hover {
  background: linear-gradient(135deg, #00D2AA 0%, #00B894 100%);
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 210, 170, 0.4);
  text-decoration: none;
}

.btn-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.btn-icon {
  font-size: 1.3rem;
  transition: var(--transition-fast);
}

.ubereats-btn:hover .btn-icon {
  transform: scale(1.2);
}

.ubereats-image {
  position: relative;
  margin-bottom: 2rem;
}

.ubereats-image img {
  border-radius: var(--border-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: var(--transition-medium);
  border: 4px solid #00D2AA;
}

.ubereats-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 80px rgba(0, 210, 170, 0.4);
}

.delivery-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #000000, #1a1a1a);
  color: #00D2AA;
  padding: 1rem 1.5rem;
  border-radius: 25px;
  border: 2px solid #00D2AA;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.delivery-badge i {
  font-size: 1.1rem;
}

/* Floating Animation for Delivery Badge */
.delivery-badge {
  animation: deliveryFloat 3s ease-in-out infinite;
}

@keyframes deliveryFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* =============================================================================
   UBER EATS RESPONSIVE DESIGN
============================================================================= */

@media (max-width: 1199px) {
  .ubereats-subtitle {
    font-size: 2rem;
  }

  .ubereats-text p {
    font-size: 1.1rem;
  }
}

@media (max-width: 991px) {
  .ubereats-section {
    padding: 6rem 0;
  }

  .ubereats-subtitle {
    font-size: 1.8rem;
  }

  .ubereats-btn {
    padding: 1.3rem 2.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .ubereats-section {
    padding: 4rem 0;
  }

  .ubereats-content {
    padding: 1rem;
    text-align: center;
  }

  .ubereats-subtitle {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .ubereats-text p {
    font-size: 1rem;
  }

  .ubereats-btn {
    padding: 1.2rem 2rem;
    font-size: 0.9rem;
  }

  .btn-content {
    flex-direction: column;
    gap: 0.5rem;
  }

  .delivery-badge {
    position: static;
    margin: 1rem auto 0;
    display: inline-flex;
  }
}

@media (max-width: 480px) {
  .ubereats-cta {
    margin-top: 2rem;
  }

  .ubereats-btn {
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
  }
}





/* =============================================================================
   CONTACT SECTION
============================================================================= */
.contact-section {
  padding: 8rem 0;
  background: var(--dark-purple);
  position: relative;
}

.contact-info {
  padding: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-small);
  backdrop-filter: blur(5px);
  transition: var(--transition-fast);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(10px);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--secondary-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.5rem;
  color: var(--white);
}

.contact-details h4 {
  color: var(--secondary-orange);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.contact-details p {
  color: var(--white);
  margin: 0;
  line-height: 1.6;
}

.contact-details a {
  color: var(--white);
  transition: var(--transition-fast);
}

.contact-details a:hover {
  color: var(--secondary-orange);
}

.social-links {
  margin-top: 3rem;
}

.social-links h4 {
  color: var(--secondary-orange);
  margin-bottom: 1.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 50px;
  height: 50px;
  background: var(--secondary-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-icons a:hover {
  background: var(--white);
  transform: translateY(-5px);
}

.social-icons a i {
  color: var(--white);
  font-size: 1.2rem;
}

.social-icons a:hover i {
  color: var(--primary-purple);
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
/* =============================================================================
   SMART ABOUT PAGE - MINIMAL & ELEGANT
============================================================================= */

.about-smart-page {
  background: var(--primary-purple);
  min-height: 100vh;
}

.about-smart-section {
  padding: 8rem 0 6rem;
  background: var(--primary-purple);
  position: relative;
}

/* Subtle gradient overlay */
.about-smart-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 149, 0, 0.05) 50%, transparent 100%);
  pointer-events: none;
}

.about-smart-section .container {
  position: relative;
  z-index: 2;
}

/* =============================================================================
   SMART IMAGE CONTAINER
============================================================================= */

.about-smart-image-container {
  position: relative;
  margin-bottom: 2rem;
}

.about-smart-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 25px;
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 149, 0, 0.2);
  transition: all 0.4s ease;
  border: 4px solid var(--secondary-orange);
}

.about-smart-image:hover {
  transform: scale(1.02) translateY(-5px);
  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(255, 149, 0, 0.3);
}

/* Floating Badge */
.about-smart-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background: linear-gradient(135deg, var(--secondary-orange), #ffab47);
  color: var(--primary-purple);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow:
    0 10px 30px rgba(255, 149, 0, 0.4),
    0 0 0 3px var(--white);
  transform: rotate(15deg);
  transition: all 0.3s ease;
  z-index: 5;
}

.about-smart-badge:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow:
    0 15px 40px rgba(255, 149, 0, 0.6),
    0 0 0 3px var(--white);
}

/* =============================================================================
   SMART CONTENT
============================================================================= */

.about-smart-content {
  padding: 2rem;
  position: relative;
}

.about-smart-text {
  color: var(--white);
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.about-smart-text h2,
.about-smart-text h3,
.about-smart-text h4 {
  color: var(--secondary-orange);
  font-weight: 800;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  position: relative;
}

.about-smart-text h2 {
  font-size: 2.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.about-smart-text h3 {
  font-size: 1.8rem;
}

.about-smart-text h4 {
  font-size: 1.5rem;
}

.about-smart-text p {
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.about-smart-text strong {
  color: var(--secondary-orange);
  font-weight: 700;
}

.about-smart-text em {
  color: var(--light-purple);
  font-style: italic;
}

/* Lists styling */
.about-smart-text ul,
.about-smart-text ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.about-smart-text li {
  margin-bottom: 0.8rem;
  position: relative;
}

.about-smart-text ul li::before {
  content: '▸';
  color: var(--secondary-orange);
  font-weight: bold;
  position: absolute;
  left: -1.5rem;
}

/* Blockquotes */
.about-smart-text blockquote {
  background: rgba(255, 149, 0, 0.1);
  border-left: 4px solid var(--secondary-orange);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 15px 15px 0;
  font-style: italic;
  backdrop-filter: blur(5px);
  position: relative;
}

.about-smart-text blockquote::before {
  content: '"';
  font-size: 4rem;
  color: var(--secondary-orange);
  position: absolute;
  top: -10px;
  left: 10px;
  opacity: 0.3;
}

/* =============================================================================
   SMART CTA BUTTON
============================================================================= */

.about-smart-cta {
  margin-top: 3rem;
  text-align: left;
}

.about-smart-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--secondary-orange), #ffab47);
  color: var(--primary-purple);
  padding: 1.2rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 3px solid var(--white);
  box-shadow:
    0 10px 30px rgba(255, 149, 0, 0.4),
    0 0 0 1px var(--secondary-orange);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.about-smart-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.6s;
}

.about-smart-button:hover::before {
  left: 100%;
}

.about-smart-button:hover {
  background: linear-gradient(135deg, var(--white), #f0f0f0);
  color: var(--primary-purple);
  border-color: var(--secondary-orange);
  box-shadow:
    0 15px 40px rgba(255, 149, 0, 0.6),
    0 0 30px rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  text-decoration: none;
}

.about-smart-button:active {
  transform: translateY(-1px);
  box-shadow:
    0 8px 20px rgba(255, 149, 0, 0.5),
    0 0 20px rgba(255, 255, 255, 0.2);
}
/* =============================================================================
   CONTACT STREET ART PAGE - VERSIONE FINALE OTTIMIZZATA
============================================================================= */
/* =============================================================================
   CONTACT STREET ART PAGE - FIX VISIBILITÀ INIZIALE
============================================================================= */

/* Fallback visibility - mostra elementi se GSAP non si carica entro 2 secondi */
.contact-street-page .contact-page-title,
.contact-street-page .contact-subtitle,
.contact-street-page .street-form-container,
.contact-street-page .form-title,
.contact-street-page .title-underline,
.contact-street-page .form-content-wrapper,
.contact-street-page .contact-details-container,
.contact-street-page .social-media-container {
  animation: showElementFallback 0.1s ease 2s both;
}

@keyframes showElementFallback {
  to {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}

/* Assicura che gli elementi siano visibili quando hanno la classe loaded */
.contact-street-page .loaded {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Debug mode - mostra tutto subito se la classe debug è presente */
.debug .contact-street-page .contact-page-title,
.debug .contact-street-page .contact-subtitle,
.debug .contact-street-page .street-form-container,
.debug .contact-street-page .form-title,
.debug .contact-street-page .title-underline,
.debug .contact-street-page .form-content-wrapper,
.debug .contact-street-page .contact-details-container,
.debug .contact-street-page .social-media-container {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Contact Page Base */
.contact-street-page {
  background: var(--primary-purple);
  min-height: 100vh;
  overflow-x: hidden;
}

/* =============================================================================
   PERFORMANCE OPTIMIZATIONS
============================================================================= */

/* Hardware acceleration per elementi animati */
.contact-page-title,
.street-form-container,
.contact-details-container,
.social-media-container,
.spray-can,
.paint-splash {
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Riduci animazioni su dispositivi lenti */
@media (max-width: 767px) {
  .spray-can,
  .paint-splash,
  .graffiti-elements {
    display: none; /* Nascondi decorazioni pesanti su mobile */
  }
}

/* Ottimizzazione per dispositivi con motion ridotta */
@media (prefers-reduced-motion: reduce) {
  .spray-can,
  .paint-splash {
    animation: none !important;
  }

  * {
    animation-duration: 0.1s !important;
    transition-duration: 0.1s !important;
  }
}

/* =============================================================================
   CONTACT HERO SECTION - OTTIMIZZATO
============================================================================= */

.contact-hero-section {
  min-height: 50vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%);
  overflow: hidden;
  padding: 4rem 0 2rem;
}

.contact-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--secondary-orange), transparent);
}

.contact-hero-content {
  text-align: center;
  position: relative;
  z-index: 10;
}

.contact-page-title {
  font-size: 4rem;
  font-weight: 900;
  color: var(--secondary-orange);
  text-shadow:
    3px 3px 0px var(--primary-purple),
    6px 6px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 3px;
  margin: 0 0 1rem 0;
  line-height: 1.1;
  position: relative;
  transform: rotate(-2deg);
  /* Inizialmente nascosto per animazione */
  opacity: 0;
  transform: scale(0.8) rotate(-8deg);
  visibility: hidden;
}

.contact-page-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  background: var(--secondary-orange);
  border-radius: 3px;
}

.contact-subtitle {
  font-size: 1.4rem;
  color: var(--white);
  margin-top: 2rem;
  font-weight: 600;
  /* Inizialmente nascosto */
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
}

/* Decorazioni semplificate */
.graffiti-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

/* Spray cans semplificati - solo su desktop */
@media (min-width: 768px) {
  .spray-can {
    position: absolute;
    width: 30px;
    height: 60px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 15px 15px 3px 3px;
    opacity: 0.4;
    animation: simpleSway 6s ease-in-out infinite;
  }

  .spray-can::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    background: #333;
    border-radius: 50%;
  }

  .spray-can-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
  }

  .spray-can-2 {
    top: 60%;
    right: 15%;
    animation-delay: 3s;
  }

  .paint-splash {
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, var(--secondary-orange) 30%, transparent 70%);
    border-radius: 50% 40% 60% 30%;
    opacity: 0.3;
    animation: paintFloat 8s ease-in-out infinite;
  }

  .paint-splash-1 {
    top: 30%;
    right: 25%;
    animation-delay: 2s;
  }

  .paint-splash-2 {
    bottom: 25%;
    left: 20%;
    animation-delay: 5s;
  }

  @keyframes simpleSway {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
  }

  @keyframes paintFloat {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 0.5; }
  }
}

/* =============================================================================
   STREET FORM CONTAINER - OTTIMIZZATO
============================================================================= */

.contact-form-section {
  padding: 6rem 0 4rem;
  background: var(--primary-purple);
  position: relative;
}

.street-form-container {
  position: relative;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 25px;
  padding: 3rem;
  margin: 2rem auto;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 0 0 3px var(--secondary-orange);
  backdrop-filter: blur(10px);
  /* Inizialmente nascosto */
  opacity: 0;
  transform: scale(0.95) translateY(30px);
  visibility: hidden;
}

/* Decorazioni semplificate */
.form-frame-decorations {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.corner-decoration {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--secondary-orange);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 149, 0, 0.3);
}

.corner-top-left { top: -10px; left: -10px; }
.corner-top-right { top: -10px; right: -10px; }
.corner-bottom-left { bottom: -10px; left: -10px; }
.corner-bottom-right { bottom: -10px; right: -10px; }

/* Form Title */
.form-title-container {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.form-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-purple);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  transform: rotate(-1deg);
  /* Inizialmente nascosto */
  opacity: 0;
  transform: scale(0.9) rotate(-3deg);
  visibility: hidden;
}

.title-underline {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-orange), var(--light-purple));
  margin: 0 auto;
  border-radius: 2px;
  /* Inizialmente nascosto */
  opacity: 0;
  transform: scaleX(0);
  visibility: hidden;
}

/* Form Content */
.form-content-wrapper {
  position: relative;
  z-index: 2;
  /* Inizialmente nascosto */
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
}

.contact-intro-text {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-dark);
  font-size: 1.1rem;
  line-height: 1.6;
}

.contact-form-area {
  position: relative;
}

/* Placeholder per form - sarà rimpiazzato dallo shortcode */
.form-placeholder {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(255, 149, 0, 0.1);
  border: 2px dashed var(--secondary-orange);
  border-radius: 15px;
  margin: 2rem 0;
}

/* Form Styling Ottimizzato - Universale per qualsiasi plugin */
.contact-form-area form,
.contact-form-area .wpcf7-form,
.contact-form-area .wpforms-form,
.contact-form-area .gform_wrapper {
  position: relative;
}

.contact-form-area input[type="text"],
.contact-form-area input[type="email"],
.contact-form-area input[type="tel"],
.contact-form-area input[type="url"],
.contact-form-area input[type="number"],
.contact-form-area textarea,
.contact-form-area select {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid var(--light-purple);
  border-radius: 15px;
  background: var(--white);
  color: var(--text-dark);
  font-size: 1rem;
  font-family: var(--font-primary);
  margin-bottom: 1.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(74, 60, 133, 0.1);
}

.contact-form-area input:focus,
.contact-form-area textarea:focus,
.contact-form-area select:focus {
  outline: none;
  border-color: var(--secondary-orange);
  box-shadow:
    0 0 0 2px rgba(255, 149, 0, 0.2),
    0 3px 12px rgba(255, 149, 0, 0.2);
  transform: translateY(-1px);
}

.contact-form-area textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form-area label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-purple);
  font-weight: 600;
  font-size: 1rem;
}

/* Submit Button Ottimizzato - Compatibile con tutti i plugin */
.contact-form-area input[type="submit"],
.contact-form-area button[type="submit"],
.contact-form-area .wpcf7-submit,
.contact-form-area .wpforms-submit,
.contact-form-area .gform_button,
.contact-form-area .btn-primary {
  background: linear-gradient(135deg, var(--secondary-orange), #ffab47) !important;
  color: var(--white) !important;
  border: 2px solid var(--primary-purple) !important;
  padding: 1.2rem 3rem !important;
  border-radius: 50px !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 8px 20px rgba(255, 149, 0, 0.3) !important;
  position: relative !important;
  overflow: hidden !important;
  display: block !important;
  margin: 2rem auto 0 !important;
  width: auto !important;
  min-width: 200px !important;
}

.contact-form-area input[type="submit"]:hover,
.contact-form-area button[type="submit"]:hover,
.contact-form-area .wpcf7-submit:hover,
.contact-form-area .wpforms-submit:hover {
  background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple)) !important;
  border-color: var(--secondary-orange) !important;
  box-shadow: 0 12px 30px rgba(74, 60, 133, 0.4) !important;
  transform: translateY(-2px) scale(1.02) !important;
}

/* Form Error/Success Messages */
.contact-form-area .wpcf7-response-output,
.contact-form-area .wpforms-error,
.contact-form-area .wpforms-confirmation,
.contact-form-area .gform_confirmation_message {
  padding: 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  font-weight: 600;
  text-align: center;
}

.contact-form-area .wpcf7-mail-sent-ok,
.contact-form-area .wpforms-confirmation,
.contact-form-area .gform_confirmation_message {
  background: rgba(76, 175, 80, 0.1);
  border: 2px solid #4CAF50;
  color: #2E7D32;
}

.contact-form-area .wpcf7-validation-errors,
.contact-form-area .wpforms-error {
  background: rgba(244, 67, 54, 0.1);
  border: 2px solid #F44336;
  color: #C62828;
}

/* Signature semplificata */
.graffiti-signature {
  position: absolute;
  bottom: -15px;
  right: -5px;
  z-index: 3;
  font-family: 'Courier New', monospace;
  opacity: 0.6;
}

.signature-text {
  color: var(--secondary-orange);
  font-size: 0.8rem;
  font-weight: bold;
  transform: rotate(3deg);
  display: inline-block;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* =============================================================================
   CONTACT INFO STREET SECTION - OTTIMIZZATO
============================================================================= */

.contact-info-street-section {
  padding: 4rem 0 6rem;
  background: linear-gradient(135deg, var(--dark-purple) 0%, var(--primary-purple) 100%);
  position: relative;
}

.contact-info-street-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--secondary-orange), transparent);
}

/* Contact Details Ottimizzato */
.contact-details-container {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 149, 0, 0.3);
  margin-bottom: 2rem;
  /* Inizialmente nascosto */
  opacity: 0;
  transform: translateX(-30px);
  visibility: hidden;
}

.details-title {
  color: var(--secondary-orange);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  transition: all 0.2s ease;
  border-left: 4px solid var(--secondary-orange);
}

.detail-item:hover {
  background: rgba(255, 149, 0, 0.1);
  transform: translateX(5px);
}

.detail-icon {
  width: 50px;
  height: 50px;
  background: var(--secondary-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(255, 149, 0, 0.3);
}

.detail-icon i {
  color: var(--white);
  font-size: 1.2rem;
}

.detail-content {
  color: var(--white);
  line-height: 1.6;
}

.detail-content strong {
  color: var(--secondary-orange);
  display: block;
  margin-bottom: 0.3rem;
}

.detail-content a {
  color: var(--white);
  transition: color 0.2s ease;
}

.detail-content a:hover {
  color: var(--secondary-orange);
}

/* Social Media Ottimizzato */
.social-media-container {
  padding: 2rem;
  /* Inizialmente nascosto */
  opacity: 0;
  transform: translateX(30px);
  visibility: hidden;
}

.social-title {
  color: var(--secondary-orange);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.social-icons-street {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: all 0.2s ease;
  border: 2px solid rgba(255, 149, 0, 0.3);
  backdrop-filter: blur(5px);
  text-decoration: none;
  position: relative;
}

.social-icon:hover {
  background: rgba(255, 149, 0, 0.2);
  border-color: var(--secondary-orange);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(255, 149, 0, 0.2);
}

.social-icon i {
  font-size: 2rem;
  color: var(--secondary-orange);
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.social-icon:hover i {
  transform: scale(1.1);
  color: var(--white);
}

.icon-label {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}

/* CTA semplificato */
.street-cta-container {
  position: relative;
  text-align: center;
  padding: 2rem;
  background: rgba(255, 149, 0, 0.1);
  border-radius: 20px;
  border: 2px dashed var(--secondary-orange);
  backdrop-filter: blur(10px);
}

.cta-text {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.cta-hashtag {
  color: var(--secondary-orange);
  font-size: 1.3rem;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* =============================================================================
   RESPONSIVE DESIGN OTTIMIZZATO
============================================================================= */

@media (max-width: 1199px) {
  .contact-page-title { font-size: 3.5rem; }
  .street-form-container { padding: 2.5rem; }
}

@media (max-width: 991px) {
  .contact-page-title { font-size: 3rem; letter-spacing: 2px; }
  .contact-hero-section { min-height: 40vh; padding: 3rem 0 1.5rem; }
  .street-form-container { padding: 2rem; }
  .form-title { font-size: 2rem; }
}

@media (max-width: 767px) {
  .contact-page-title {
    font-size: 2.5rem;
    letter-spacing: 1px;
    transform: rotate(-1deg);
  }

  .contact-subtitle { font-size: 1.2rem; }
  .contact-hero-section { min-height: 35vh; padding: 2rem 0 1rem; }
  .contact-form-section { padding: 4rem 0 3rem; }
  .street-form-container { padding: 1.5rem; margin: 1rem auto; }
  .form-title { font-size: 1.8rem; }

  .social-icons-street {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .detail-item {
    flex-direction: column;
    text-align: center;
  }

  .detail-icon { margin: 0 0 1rem 0; }

  /* Disabilita effetti hover su mobile */
  .detail-item:hover,
  .social-icon:hover {
    transform: none;
    background: inherit;
  }

  /* Submit button mobile */
  .contact-form-area input[type="submit"],
  .contact-form-area button[type="submit"] {
    width: 100% !important;
    max-width: 300px !important;
  }
}

@media (max-width: 480px) {
  .contact-page-title { font-size: 2rem; line-height: 1.2; }
  .street-form-container { padding: 1rem; }
  .form-title { font-size: 1.6rem; }

  .contact-form-area input[type="submit"],
  .contact-form-area button[type="submit"] {
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    width: 100% !important;
    max-width: 250px !important;
  }
}

/* =============================================================================
   ELEMENTI NASCOSTI INIZIALMENTE
============================================================================= */


/* Classe per elementi animati */
.contact-page-title.loaded,
.contact-subtitle.loaded,
.street-form-container.loaded,
.form-title.loaded,
.title-underline.loaded,
.form-content-wrapper.loaded,
.contact-details-container.loaded,
.social-media-container.loaded {
  opacity: 1;
  visibility: visible;
}

/* Ottimizzazione GPU per desktop */
@media (min-width: 768px) {
  .contact-page-title,
  .street-form-container,
  .social-icon,
  .detail-item {
    transform: translateZ(0);
  }
}

/* Cleanup per particelle spray temporanee */
.light-spray-particle,
.title-spray-particle,
.field-spray-particle,
.hover-spray-particle,
.social-spray-particle {
  pointer-events: none;
  z-index: 1;
}
/* =============================================================================
   FOOTER
============================================================================= */
.footer {
  background: var(--dark-purple);
  color: var(--white);
  padding: 3rem 0 2rem;
  border-top: 2px solid var(--secondary-orange);
}

.footer-logo-img {
  height: 60px;
  width: auto;
  margin: 0 auto;
}

.footer-address {
  color: var(--white);
  opacity: 0.9;
  margin-bottom: 1rem;
}

.footer-social {
  margin: 1.5rem 0;
}

.footer-social .social-link {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--secondary-orange);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin: 0 0.5rem;
  transition: var(--transition-fast);
}

.footer-social .social-link:hover {
  background: var(--white);
  transform: translateY(-3px);
}

.footer-social .social-link i {
  color: var(--white);
}

.footer-social .social-link:hover i {
  color: var(--primary-purple);
}

.copyright {
  color: var(--white);
  opacity: 0.8;
  font-size: 0.9rem;
  margin: 0;
}

/* =============================================================================
   RESPONSIVE DESIGN
============================================================================= */

@media (max-width: 1199px) {
  .section-title {
    font-size: 2.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .hero-tagline {
    font-size: 2.5rem;
  }

  .hero-logo-img {
    max-width: 300px;
  }

  .hero-logo-text {
    font-size: 3.5rem;
  }
}

@media (max-width: 991px) {
  .section-title {
    font-size: 2.2rem;
  }

  .about-section,
  .products-section,
  .contact-section {
    padding: 6rem 0;
  }

  .fullscreen-nav-menu a {
    font-size: 2rem;
  }

  .hero-content {
    padding: 0 1.5rem;
  }

  .hero-tagline {
    font-size: 2.2rem;
    letter-spacing: 1px;
  }

  .hero-logo-img {
    max-width: 280px;
  }

  .hero-logo-text {
    font-size: 3rem;
  }
}

@media (max-width: 767px) {
  .section-title {
    font-size: 2rem;
  }

  .about-section,
  .products-section,
  .contact-section {
    padding: 4rem 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .product-item {
    height: 300px;
  }

  .fullscreen-menu {
    width: 100%;
    max-width: none;
  }

  .fullscreen-nav-menu a {
    font-size: 1.8rem;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
  }

  .contact-icon {
    margin: 0 auto 1rem;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .hero-tagline {
    font-size: 1.8rem;
    line-height: 1.3;
    white-space: normal;
  }

  .hero-logo-img {
    max-width: 250px;
  }

  .hero-logo-text {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }

  .hero-logo-wrapper {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }

  .about-content,
  .contact-info {
    padding: 1rem;
  }

  .hero-tagline {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
  }

  .hero-logo-img {
    max-width: 200px;
  }

  .hero-logo-text {
    font-size: 2rem;
    letter-spacing: 1px;
  }
}

/* =============================================================================
   WORDPRESS CORE STYLES
============================================================================= */
.gallery-caption {
  padding: 5px;
  font-size: 10px;
}

.bypostauthor {
  border-left: 3px solid var(--secondary-orange);
  padding-left: 20px;
}

.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

.wp-caption {
  background: var(--white);
  border: 1px solid var(--light-gray);
  max-width: 96%;
  padding: 5px 3px 10px;
  text-align: center;
  border-radius: var(--border-radius-small);
}

.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}

.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  white-space: nowrap;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  background-color: var(--light-gray);
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto;
  color: var(--primary-purple);
  display: block;
  font-size: 14px;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* =============================================================================
   TEAM PAGE STYLES
============================================================================= */

/* Team Hero Section */
.team-hero-section {
  min-height: 60vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Mobile background - gradient */
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%);
}

/* Desktop background - image with overlay */
@media (min-width: 768px) {
  .team-hero-section {
    background:
      linear-gradient(135deg, rgba(74, 60, 133, 0.8) 0%, rgba(54, 42, 107, 0.9) 100%),
      url('../img/negozio.jpg') center center/cover no-repeat;
    background-attachment: fixed;
  }
}

.team-page-title {
  font-size: 4rem;
  font-weight: 900;
  color: var(--secondary-orange);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
  margin: 0;
  line-height: 1.2;
  text-align: center;
  position: relative;
}

.team-page-title::after {
  content: '';
  display: block;
  width: 120px;
  height: 5px;
  background: linear-gradient(90deg, var(--secondary-orange), var(--light-purple));
  margin: 2rem auto 0;
  border-radius: 3px;
}

/* Team Content Section */
.team-content-section {
  padding: 8rem 0;
  background: var(--primary-purple);
  position: relative;
}

.team-content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--secondary-orange), transparent);
}

/* Team Image Container */
.team-image-container {
  position: relative;
  margin-bottom: 2rem;
}

.team-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  aspect-ratio: 1080/1350; /* Mantiene proporzioni 1080x1350 */
  object-fit: cover;
  object-position: center;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
  transition: var(--transition-medium);
  border: 4px solid var(--secondary-orange);
}

.team-image:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 80px rgba(255, 149, 0, 0.4);
}

/* Team Content */
.team-content {
  padding: 2rem;
  position: relative;
}

.team-text {
  color: var(--white);
  line-height: 1.8;
  font-size: 1.1rem;
}

.team-text h2,
.team-text h3,
.team-text h4 {
  color: var(--secondary-orange);
  font-weight: 800;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}

.team-text h2 {
  font-size: 2.2rem;
  border-bottom: 3px solid var(--secondary-orange);
  padding-bottom: 1rem;
}

.team-text h3 {
  font-size: 1.8rem;
}

.team-text h4 {
  font-size: 1.5rem;
}

.team-text p {
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.team-text strong {
  color: var(--secondary-orange);
  font-weight: 700;
}

.team-text em {
  color: var(--light-purple);
  font-style: italic;
}

.team-text ul,
.team-text ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.team-text li {
  margin-bottom: 0.8rem;
  position: relative;
}

.team-text ul li::before {
  content: '▸';
  color: var(--secondary-orange);
  font-weight: bold;
  position: absolute;
  left: -1.5rem;
}

.team-text blockquote {
  background: rgba(255, 149, 0, 0.1);
  border-left: 4px solid var(--secondary-orange);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--border-radius-small) var(--border-radius-small) 0;
  font-style: italic;
  backdrop-filter: blur(5px);
}

.team-text blockquote p {
  margin-bottom: 0;
  font-size: 1.2rem;
  line-height: 1.6;
}

/* =============================================================================
   TEAM PAGE RESPONSIVE DESIGN
============================================================================= */

@media (max-width: 1199px) {
  .team-page-title {
    font-size: 3.5rem;
  }

  .team-content-section {
    padding: 6rem 0;
  }

  .team-text {
    font-size: 1.05rem;
  }
}

@media (max-width: 991px) {
  .team-page-title {
    font-size: 3rem;
    letter-spacing: 1px;
  }

  .team-hero-section {
    min-height: 50vh;
  }

  .team-content-section {
    padding: 5rem 0;
  }

  .team-content {
    padding: 1.5rem;
  }

  .team-text h2 {
    font-size: 2rem;
  }

  .team-text h3 {
    font-size: 1.6rem;
  }
}

@media (max-width: 767px) {
  .team-page-title {
    font-size: 2.5rem;
    line-height: 1.3;
  }

  .team-page-title::after {
    width: 80px;
    height: 4px;
    margin: 1.5rem auto 0;
  }

  .team-hero-section {
    min-height: 40vh;
    padding: 2rem 0;
  }

  .team-content-section {
    padding: 4rem 0;
  }

  .team-image-container {
    text-align: center;
    margin-bottom: 3rem;
  }

  .team-image {
    max-width: 400px;
    border: 3px solid var(--secondary-orange);
  }

  .team-content {
    padding: 1rem;
    text-align: left;
  }

  .team-text {
    font-size: 1rem;
  }

  .team-text h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  .team-text h3 {
    font-size: 1.4rem;
  }

  .team-text h4 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .team-page-title {
    font-size: 2rem;
    padding: 0 1rem;
  }

  .team-hero-section {
    min-height: 35vh;
  }

  .team-content-section {
    padding: 3rem 0;
  }

  .team-image {
    max-width: 320px;
  }

  .team-content {
    padding: 0.5rem;
  }

  .team-text {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .team-text blockquote {
    padding: 1rem;
    margin: 1.5rem 0;
  }
}

/* =============================================================================
   TEAM PAGE ANIMATIONS (GSAP COMPATIBLE)
============================================================================= */

.team-page-title {
  opacity: 0;
  transform: scale(0.8) translateY(30px);
  visibility: hidden;
}

.team-page-title.loaded {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.team-image-container {
  opacity: 0;
  transform: translateX(-50px) scale(0.9);
}

.team-image-container.animate {
  opacity: 1;
  transform: none;
  transition: all 1s ease-out;
}

.team-content {
  opacity: 0;
  transform: translateX(50px);
}

.team-content.animate {
  opacity: 1;
  transform: none;
  transition: all 1s ease-out 0.3s;
}



/* =============================================================================
   UTILITY CLASSES
============================================================================= */
.text-primary { color: var(--primary-purple); }
.text-secondary { color: var(--secondary-orange); }
.text-white { color: var(--white); }

.bg-primary { background-color: var(--primary-purple); }
.bg-secondary { background-color: var(--secondary-orange); }
.bg-white { background-color: var(--white); }

.shadow-light { box-shadow: var(--shadow-light); }
.shadow-medium { box-shadow: var(--shadow-medium); }
.shadow-heavy { box-shadow: var(--shadow-heavy); }

.border-radius { border-radius: var(--border-radius); }
.border-radius-small { border-radius: var(--border-radius-small); }

.transition-fast { transition: var(--transition-fast); }
.transition-medium { transition: var(--transition-medium); }
.transition-slow { transition: var(--transition-slow); }


/* =============================================================================
   MOBILE SMOOTH SCROLL OPTIMIZATION
============================================================================= */

/* Base Smooth Scrolling */
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* iOS momentum scrolling */
}

body {
  -webkit-overflow-scrolling: touch; /* iOS Safari smooth scrolling */
  overscroll-behavior: contain; /* Previene il bounce su Chrome mobile */
}

/* Mobile Specific Scroll Optimizations */
@media (max-width: 767px) {
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    -webkit-transform: translateZ(0); /* Hardware acceleration */
  }

  body {
    -webkit-overflow-scrolling: touch;
    -webkit-transform: translateZ(0); /* Hardware acceleration */
    overscroll-behavior-y: contain; /* Elimina bounce verticale */
    scroll-padding-top: 100px; /* Spazio per header fisso */
  }

  /* Ottimizzazione per le sezioni */
  .hero-section,
  .about-section,
  .products-section,
  .ubereats-section,
  .contact-section {
    -webkit-transform: translateZ(0); /* Hardware acceleration */
    transform: translateZ(0);
    backface-visibility: hidden; /* Previene flickering */
  }

  /* Smooth scroll per links interni */
  a[href^="#"] {
    scroll-behavior: smooth;
  }
}

/* iOS Safari Specific */
@supports (-webkit-touch-callout: none) {
  body {
    -webkit-overflow-scrolling: touch;
    -webkit-transform: translate3d(0, 0, 0); /* Force hardware acceleration */
  }
}

/* Touch Action Optimization */
@media (max-width: 767px) {
  .product-card,
  .hero-content,
  .about-content {
    touch-action: manipulation; /* Ottimizza touch response */
  }

  /* Prevent scroll issues during card flips */
  .product-item.flipped {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
