/* ============================
   GOOGLE FONTS & RESET
   ============================ */

/* Import Google Font - Oswald */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Oswald', sans-serif;
    line-height: 1.6;
    font-weight: 400;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================
   UTILITY CLASSES
   ============================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================
   HEADER STYLES
   ============================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

/* Logo */
.logo img {
    height: 50px;
    width: auto;
}

/* Navigation */
.navbar {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    padding: 10px 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2196F3;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2196F3;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-prenota {
    background-color: #2196F3;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-prenota:hover {
    background-color: #1976D2;
    transform: translateY(-1px);
}

/* USER ICON - MODIFICATO PER SUPPORTARE LINK */
.user-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    color: #fff;
    font-size: 16px;
    position: relative;
    text-decoration: none;  /* AGGIUNTO per rimuovere sottolineatura */
    display: inline-flex;    /* AGGIUNTO per centrare icona */
    align-items: center;     /* AGGIUNTO per centrare icona */
    justify-content: center; /* AGGIUNTO per centrare icona */
}

.user-icon:hover {
    background-color: #f0f0f0;
}

/* Fallback for when FontAwesome doesn't load */
.user-icon:before {
    content: "👤";
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.user-icon i {
    position: relative;
    z-index: 1;
}

/* Hide fallback when FontAwesome is loaded */
.user-icon i:not(:empty) + :before,
.user-icon:has(i[class*="fa"]):before {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
/* ============================
   MOBILE MENU FIXES
   ============================ */

/* Corregge i colori del menu mobile globalmente per tutte le pagine con header trasparente */
.home-page .navbar.active,
.chi-siamo-page .navbar.active {
    background-color: white !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.home-page .navbar.active .nav-link,
.chi-siamo-page .navbar.active .nav-link {
    color: #333 !important;
}

.home-page .navbar.active .nav-link:hover,
.chi-siamo-page .navbar.active .nav-link:hover,
.home-page .navbar.active .nav-link.active,
.chi-siamo-page .navbar.active .nav-link.active {
    color: #2196F3 !important;
}

/* Forza il colore scuro per i link del menu mobile quando è aperto */
.navbar.active .nav-link {
    color: #333 !important;
}

.navbar.active .nav-link:hover,
.navbar.active .nav-link.active {
    color: #2196F3 !important;
}

/* Header scrolled state fixes per pagine con header trasparente */
.home-page .header.scrolled,
.chi-siamo-page .header.scrolled {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.home-page .header.scrolled .nav-link,
.chi-siamo-page .header.scrolled .nav-link {
    color: #333 !important;
}

.home-page .header.scrolled .logo img,
.chi-siamo-page .header.scrolled .logo img {
    filter: none !important;
}

.home-page .header.scrolled .btn-prenota,
.chi-siamo-page .header.scrolled .btn-prenota {
    background-color: #2196F3 !important;
    color: white !important;
    border: none !important;
}

.home-page .header.scrolled .user-icon,
.chi-siamo-page .header.scrolled .user-icon {
    color: #333 !important;
}

.home-page .header.scrolled .mobile-menu-toggle span,
.chi-siamo-page .header.scrolled .mobile-menu-toggle span {
    background-color: #333 !important;
}

/* Migliora l'animazione del menu mobile */
.navbar {
    transition: all 0.3s ease;
}

.navbar.active {
    display: block !important;
    z-index: 9999;
}

/* ============================
   MAIN CONTENT
   ============================ */

.main-content {
    margin-top: 80px; /* Space for fixed header */
    flex: 1; /* Take remaining space */
}

/* Remove margin for transparent header pages */
.home-page,
.chi-siamo-page {
    margin-top: 0;
}

.home-page .main-content,
.chi-siamo-page .main-content {
    margin-top: 0;
}

/* ============================
   HOME PAGE STYLES
   ============================ */

/* Hero Home Section */
.hero-home {
    height: 80vh; /* Changed from 100vh to 80vh */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background-image: url('/img/home-header-desk.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
    position: relative;
}

/* Add overlay for better text readability if needed */
.hero-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-image-placeholder p {
    position: relative;
    z-index: 2;
}

/* Vertical Text - Fixed positioning */
.vertical-text {
    position: absolute;
    right: 7vw;
    top: unset;
    bottom: 20px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Oswald', sans-serif;
    font-size: 85px;
    font-weight: 400;
    letter-spacing: 8px;
    text-transform: uppercase;
    line-height: 1.2;
    opacity: 0.3 !important;
    animation: fadeInRight 1s ease-out 0.5s forwards;
    transform: rotate(-180deg) !important;
}

/* CTA Box - Centered positioning */
.cta-box {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    color: #1380ac;
    padding: 25px 50px;
    border-radius: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    animation: ctaFadeIn 1s ease-out 1s forwards;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.cta-box:hover {
    background-color: #1380ac;
    color: white;
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 8px 25px rgba(19, 128, 172, 0.3);
}

.cta-box h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Scroll Arrow - Centered at bottom */
.scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.8rem;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards, bounce 2s infinite 2s;
    transition: color 0.3s ease;
}

.scroll-arrow:hover {
    color: white;
}

/* Booking Section - 2 columns layout */
.booking-section {
    background-color: #ffffff;
    padding: 120px 0;
    position: relative;
}

.booking-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
    margin-bottom: 80px;
}

.booking-title {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.booking-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.booking-title h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    margin: 0;
}

.booking-description {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out 0.2s;
}

.booking-description.animate {
    opacity: 1;
    transform: translateY(0);
}

.booking-description p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
}

.booking-cta {
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out 0.4s;
}

.booking-cta.animate {
    opacity: 1;
    transform: translateY(0);
}

.btn-prenota-home {
    display: inline-block;
    background-color: transparent;
    color: #1380ac;
    border: 3px solid #1380ac;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 0;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-prenota-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #1380ac;
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-prenota-home:hover::before {
    left: 0;
}

.btn-prenota-home:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(19, 128, 172, 0.3);
}

/* ============================
   VISION SECTION
   ============================ */

.vision-section {
    position: relative;
    padding: 120px 0;
    color: white;
    text-align: center;
    overflow: hidden;
}

.vision-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.vision-image-placeholder {
    width: 100%;
    height: 100%;
    background-image: url('/img/img-sfondo-desk.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Add overlay for better text readability */
.vision-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.vision-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.vision-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.vision-content h2.animate {
    opacity: 1;
    transform: translateY(0);
}

.vision-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: 400;
}

.vision-content p.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   SERVICES SECTION
   ============================ */

.services-section {
    background-color: #ffffff;
    padding: 120px 0;
}

.services-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-header {
    text-align: left;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.services-header.animate {
    opacity: 1;
    transform: translateY(0);
}

.services-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-header p {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding-left: 100px;
}

.service-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.service-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-item:nth-child(2) {
    transition-delay: 0.2s;
}

.service-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.service-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    font-weight: 400;
}

/* ============================
   STRENGTHS SECTION
   ============================ */

.strengths-section {
    background-color: #f8f9fa;
    padding: 120px 0;
}

.strengths-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.strengths-header {
    text-align: left;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.strengths-header.animate {
    opacity: 1;
    transform: translateY(0);
}

.strengths-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.strengths-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0;
    align-items: stretch;
    padding-left: 100px;
}

.strength-image {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
    display: flex;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.strength-image.animate {
    opacity: 1;
    transform: translateY(0);
}

.strength-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.strength-text {
    background-color: #e9ecef;
    padding: 30px;
    border-radius: 0;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    z-index: 20;
}

.strength-text.animate {
    opacity: 1;
    transform: translateY(0);
}

.strength-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.strength-text p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
}

/* Frecce direzionali */
.strength-text-left::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-right: 20px solid #e9ecef;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    z-index: 30;
}

.strength-text-right::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid #e9ecef;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    z-index: 30;
}

.strength-text-up::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-bottom: 20px solid #e9ecef;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    z-index: 30;
}

/* Stagger animations */
.strength-image:nth-child(1) { transition-delay: 0.1s; }
.strength-text:nth-child(2) { transition-delay: 0.2s; }
.strength-image:nth-child(3) { transition-delay: 0.3s; }
.strength-text:nth-child(4) { transition-delay: 0.4s; }
.strength-image:nth-child(5) { transition-delay: 0.5s; }
.strength-text:nth-child(6) { transition-delay: 0.6s; }

/* ============================
   SUPPORT SECTION
   ============================ */

.support-section {
    background-color: #ffffff;
    padding: 0;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
    align-items: center;
}

.support-content {
    background-color: #1380ac;
    color: white;
    padding: 80px 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.support-content.animate {
    opacity: 1;
    transform: translateX(0);
}

.support-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}

.support-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
}

.support-image {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out 0.2s;
    height: 100%;
    display: flex;
    align-items: center;
}

.support-image.animate {
    opacity: 1;
    transform: translateX(0);
}

.support-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

/* ============================
   REVIEWS SECTION
   ============================ */

.reviews-section {
    background-color: #f8f9fa;
    padding: 120px 0;
}

.reviews-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.reviews-header {
    text-align: left;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reviews-header.animate {
    opacity: 1;
    transform: translateY(0);
}

.reviews-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.review-card {
    background-color: white;
    padding: 30px;
    border-radius: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.review-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.review-card:nth-child(1) { transition-delay: 0.1s; }
.review-card:nth-child(2) { transition-delay: 0.2s; }
.review-card:nth-child(3) { transition-delay: 0.3s; }
.review-card:nth-child(4) { transition-delay: 0.4s; }

.reviewer-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    background-color: #1380ac;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-avatar i {
    color: white;
    font-size: 1.2rem;
}

.reviewer-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.review-date {
    font-size: 0.85rem;
    color: #999;
    font-weight: 400;
}

.review-stars {
    margin-bottom: 15px;
}

.review-stars i {
    color: #ffd700;
    font-size: 0.9rem;
    margin-right: 2px;
}

.review-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: #1380ac;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0f5a7a;
}

.reviews-more {
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out 0.5s;
}

.reviews-more.animate {
    opacity: 1;
    transform: translateY(0);
}

.btn-more-reviews {
    display: inline-block;
    background-color: transparent;
    color: #1380ac;
    border: 2px solid #1380ac;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 0;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-more-reviews:hover {
    background-color: #1380ac;
    color: white;
    transform: translateY(-2px);
}

/* ============================
   CONTACT FORM SECTION
   ============================ */

.contact-form-section {
    background-color: #ffffff;
    padding: 120px 0;
}

.contact-form-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-form-header {
    text-align: left;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.contact-form-header.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-form-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.contact-form {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out 0.2s;
}

.contact-form.animate {
    opacity: 1;
    transform: translateY(0);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 15px 20px;
    border: none;
    background-color: #f5f5f5;
    border-radius: 0;
    font-size: 1rem;
    font-family: 'Oswald', sans-serif;
    transition: background-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background-color: #e9ecef;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    font-style: italic;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    text-align: right;
    margin-top: 30px;
}

.btn-submit {
    background-color: #1380ac;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 0;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Oswald', sans-serif;
}

.btn-submit:hover {
    background-color: #0f5a7a;
    transform: translateY(-2px);
}

/* ============================
   WHY CHOOSE SECTION
   ============================ */

.why-choose-section {
    position: relative;
    padding: 120px 0;
    color: white;
    overflow: hidden;
}

.why-choose-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.why-choose-bg-placeholder {
    width: 100%;
    height: 100%;
    background-image: url('/img/home-sfondo-2-desk.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.why-choose-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.why-choose-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.why-choose-content h2.animate {
    opacity: 1;
    transform: translateY(0);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    align-items: start;
    min-height: 500px;
    position: relative;
}

.main-image {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out 0.2s, transform 0.3s ease;
    will-change: transform;
}

.main-image.animate {
    opacity: 1;
    transform: translateY(0);
}

.main-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    will-change: transform;
}

.small-image {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out 0.4s, transform 0.3s ease;
    will-change: transform;
}

.small-image.animate {
    opacity: 1;
    transform: translateY(0);
}

.small-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    will-change: transform;
}

.why-choose-text {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out 0.6s;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.why-choose-text.animate {
    opacity: 1;
    transform: translateY(0);
}

.why-choose-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    color: white;
    font-weight: 400;
}

/* ============================
   ANIMATIONS & SCROLL TRIGGERS
   ============================ */

/* Base animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.fade-in-on-scroll.animate {
    opacity: 1;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.slide-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.slide-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes ctaFadeIn {
    from {
        opacity: 0;
        bottom: 80px;
    }
    to {
        opacity: 1;
        bottom: 100px;
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-8px);
    }
    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

/* Legacy styles for other pages */
/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-cta {
    display: inline-block;
    background-color: white;
    color: #2196F3;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Intro Section */
.intro-section {
    padding: 80px 0;
    text-align: center;
}

.intro-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.intro-section p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================
   FOOTER STYLES NUOVO AZZURRO
   ============================ */

.footer {
    background-color: #1380ac;
    color: #ffffff;
    margin-top: auto;
    padding: 50px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
}

/* Footer Logo */
.footer-logo {
    flex-shrink: 0;
    align-self: center;
}

.footer-logo img {
    height: 80px;
    width: auto;
    display: block;
}

/* Footer Sections */
.footer-sections {
    display: flex;
    gap: 100px;
    flex: 1;
    justify-content: center;
    align-items: flex-start;
}

.footer-section {
    text-align: left;
}

.footer-title {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

/* Footer Contact */
.footer-contact {
    margin: 0;
}

.footer-contact p {
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 400;
}

.footer-contact a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-contact a:hover {
    opacity: 0.8;
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
    align-self: flex-end;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #ffffff;
    color: #1380ac;
    border-radius: 50%;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */

@media (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 13px;
    }
    
    .btn-prenota {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .footer-sections {
        gap: 60px;
    }
    
    .footer-content {
        gap: 40px;
    }
    
    .footer-logo img {
        height: 70px;
    }
    
    /* Home page responsive */
    .vertical-text {
        font-size: 60px;
        right: 5vw;
        bottom: 15px;
        letter-spacing: 6px;
    }
    
    .cta-box {
        padding: 20px 40px;
        bottom: 90px;
    }
    
    .cta-box h2 {
        font-size: 1.2rem;
    }
    
    .booking-grid {
        gap: 60px;
        margin-bottom: 60px;
    }
    
    .booking-title h2 {
        font-size: 3rem;
    }
    
    .vision-content h2 {
        font-size: 3rem;
    }
    
    .services-header h2 {
        font-size: 3rem;
    }
    
    .services-grid {
        gap: 60px;
    }
    
    .strengths-section {
        padding: 80px 0;
    }
    
    .strengths-header h2 {
        font-size: 3rem;
    }
    
    .strengths-grid {
        gap: 0;
        padding-left: 60px;
    }
    
    .strength-text {
        padding: 25px;
    }
    
    .support-content h2 {
        font-size: 2.2rem;
    }
    
    .support-content {
        padding: 60px 40px;
    }
    
    .reviews-header h2 {
        font-size: 3rem;
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .contact-form-header h2 {
        font-size: 3rem;
    }
    
    .why-choose-content h2 {
        font-size: 3rem;
    }
    
    .why-choose-grid {
        gap: 30px;
    }
    
    .why-choose-text {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 12px 20px;
    }
    
    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .navbar.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .nav-item {
        border-bottom: 1px solid #eee;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 15px 0;
        font-size: 16px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .btn-prenota {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .intro-section {
        padding: 60px 0;
    }
    
    .intro-section h2 {
        font-size: 2rem;
    }
    
    .footer {
        padding: 40px 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        align-items: center;
    }
    
    .footer-sections {
        flex-direction: row;
        gap: 50px;
        justify-content: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-logo img {
        height: 60px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Home page mobile */
    .vertical-text {
        font-size: 45px;
        right: 4vw;
        bottom: 12px;
        letter-spacing: 4px;
    }
    
    .cta-box {
        bottom: 80px;
        padding: 18px 35px;
    }
    
    .cta-box h2 {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    
    .scroll-arrow {
        bottom: 25px;
        font-size: 1.6rem;
    }
    
    .booking-section {
        padding: 80px 0;
    }
    
    .booking-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 50px;
        text-align: center;
    }
    
    .booking-title h2 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 0;
    }
    
    .booking-description p {
        font-size: 1.1rem;
    }
    
    .btn-prenota-home {
        padding: 15px 30px;
        font-size: 14px;
    }
    
    .vision-section {
        padding: 80px 0;
    }
    
    .vision-content h2 {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    
    .vision-content p {
        font-size: 1.1rem;
    }
    
    .services-section {
        padding: 80px 0;
    }
    
    .services-header {
        margin-bottom: 60px;
    }
    
    .services-header h2 {
        font-size: 2.2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .service-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .strengths-section {
        padding: 80px 0;
    }
    
    .strengths-header {
        margin-bottom: 60px;
    }
    
    .strengths-header h2 {
        font-size: 2.2rem;
    }
    
    .strengths-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding-left: 0;
    }
    
    .strength-text {
        padding: 25px;
        text-align: center;
    }
    
    /* Remove arrows on mobile */
    .strength-text-left::after,
    .strength-text-right::after,
    .strength-text-up::after {
        display: none;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .support-content {
        padding: 60px 40px;
        text-align: center;
    }
    
    .support-content h2 {
        font-size: 2rem;
    }
    
    .support-image img {
        min-height: 300px;
    }
    
    .reviews-section {
        padding: 80px 0;
    }
    
    .reviews-header {
        margin-bottom: 60px;
    }
    
    .reviews-header h2 {
        font-size: 2.2rem;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .contact-form-section {
        padding: 80px 0;
    }
    
    .contact-form-header {
        margin-bottom: 50px;
    }
    
    .contact-form-header h2 {
        font-size: 2.2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .why-choose-section {
        padding: 80px 0;
    }
    
    .why-choose-content h2 {
        font-size: 2.2rem;
        margin-bottom: 60px;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        align-items: center;
    }
    
    .small-image {
        align-self: center;
    }
    
    .why-choose-text {
        align-self: center;
        padding: 25px;
    }
    
    /* Fix specifici per i colori del menu mobile su tutte le pagine */
    /* Quando il menu mobile è aperto, forza sempre sfondo bianco e testo nero */
    .navbar.active {
        background-color: white !important;
    }
    
    .navbar.active .nav-link {
        color: #333 !important;
    }
    
    .navbar.active .nav-item {
        border-bottom: 1px solid #eee;
    }
    
    .navbar.active .nav-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 10px 15px;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .btn-prenota {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .user-icon {
        padding: 6px;
        font-size: 14px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .intro-section h2 {
        font-size: 1.8rem;
    }
    
    .footer {
        padding: 30px 0;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-sections {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    
    .footer-logo img {
        height: 50px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    /* Home page mobile small */
    .vertical-text {
        display: none;
    }
    
    .cta-box {
        bottom: 60px;
        padding: 15px 30px;
        left: 15px;
        right: 15px;
        transform: none;
    }
    
    .cta-box h2 {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .scroll-arrow {
        bottom: 20px;
        font-size: 1.4rem;
    }
    
    .booking-section {
        padding: 60px 0;
    }
    
    .booking-grid {
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .booking-title h2 {
        font-size: 1.9rem;
        margin-bottom: 0;
    }
    
    .booking-description p {
        font-size: 1rem;
    }
    
    .btn-prenota-home {
        padding: 14px 28px;
        font-size: 13px;
        letter-spacing: 1px;
    }
    
    .vision-section {
        padding: 60px 0;
    }
    
    .vision-content {
        padding: 0 15px;
    }
    
    .vision-content h2 {
        font-size: 1.9rem;
        margin-bottom: 25px;
    }
    
    .vision-content p {
        font-size: 1rem;
    }
    
    .services-section {
        padding: 60px 0;
    }
    
    .services-header {
        margin-bottom: 50px;
    }
    
    .services-header h2 {
        font-size: 1.9rem;
    }
    
    .services-grid {
        gap: 40px;
    }
    
    .service-item {
        gap: 15px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon img {
        width: 70px;
        height: 70px;
    }
    
    .service-content h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .service-content p {
        font-size: 0.95rem;
    }
    
    .strengths-section {
        padding: 60px 0;
    }
    
    .strengths-header {
        margin-bottom: 50px;
    }
    
    .strengths-header h2 {
        font-size: 1.9rem;
    }
    
    .strengths-grid {
        gap: 0;
        padding-left: 0;
    }
    
    .strength-text {
        padding: 20px;
    }
    
    .strength-text h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .strength-text p {
        font-size: 0.95rem;
    }
    
    .support-content {
        padding: 40px 20px;
    }
    
    .support-content h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .support-content p {
        font-size: 1rem;
    }
    
    .support-image img {
        min-height: 250px;
    }
    
    .reviews-section {
        padding: 60px 0;
    }
    
    .reviews-content {
        padding: 0 15px;
    }
    
    .reviews-header {
        margin-bottom: 50px;
    }
    
    .reviews-header h2 {
        font-size: 1.9rem;
    }
    
    .review-card {
        padding: 25px;
    }
    
    .contact-form-section {
        padding: 60px 0;
    }
    
    .contact-form-content {
        padding: 0 15px;
    }
    
    .contact-form-header {
        margin-bottom: 40px;
    }
    
    .contact-form-header h2 {
        font-size: 1.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .form-submit {
        text-align: center;
    }
    
    .btn-submit {
        padding: 12px 30px;
        font-size: 13px;
    }
    
    .why-choose-section {
        padding: 60px 0;
    }
    
    .why-choose-content {
        padding: 0 15px;
    }
    
    .why-choose-content h2 {
        font-size: 1.9rem;
        margin-bottom: 50px;
    }
    
    .why-choose-text {
        padding: 20px;
    }
    
    .why-choose-text p {
        font-size: 1rem;
    }
}