/* ================================
   RESET & VARIABLES
   ================================ */
:root {
    /* PANTONE Colors */
    --pantone-7743: #44693D;     /* Verde scuro */
    --pantone-7490: #719949;     /* Verde medio */
    --pantone-7494: #9CAF88;     /* Verde chiaro */
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --text-dark: #1A2530;
    --text-light: #5A6B7A;
    --header-height: 46px;       /* Altezza header dinamica */
    --transition-smooth: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-ease: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--off-white);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ================================
   HEADER
   ================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--off-white);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo-container {
    /* Rimuovo animazione per rendering più veloce */
}

.logo {
    height: 35px;
    width: auto;
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop Navigation */
.nav-menu {
    display: none;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-ease);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--pantone-7490);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--pantone-7490);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hamburger Menu - HIDDEN */
.hamburger {
    display: none;
    width: 35px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
    animation: fadeIn 1s ease-out 0.5s both;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--pantone-7743);
    transition: var(--transition-ease);
    border-radius: 2px;
}

.hamburger:hover span {
    background-color: var(--pantone-7490);
}

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

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

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

/* Mobile Navigation Menu */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: linear-gradient(135deg, var(--pantone-7743) 0%, #2d4529 100%);
        padding: 6rem 3rem;
        transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 999;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
        display: block;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu li {
        margin: 2rem 0;
        opacity: 0;
        transform: translateX(50px);
        transition: var(--transition-ease);
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

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

    .nav-menu a {
        color: var(--white);
        font-size: 1.8rem;
        font-weight: 600;
    }

    .nav-menu a:hover {
        color: var(--pantone-7494);
        transform: translateX(10px);
    }

    .nav-menu a::after {
        display: none;
    }
}

/* ================================
   HERO SECTION - FULL SCREEN
   ================================ */
.hero-section {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--off-white) 0%, #e8ede9 100%);
    margin-bottom: 0;
    padding-top: var(--header-height, 46px);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    animation: fadeInUp 1s ease-out 0.5s both;
}

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

.hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    position: relative;
    animation: scaleIn 1s ease-out 0.6s both;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

/* CTA Button - HIDDEN */
.cta-button {
    display: none;
    padding: 1.3rem 4rem;
    align-items: center;
    gap: 0.8rem;
    padding: 1.3rem 4rem;
    background: transparent;
    color: var(--teal);
    border: 2px solid var(--teal);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--teal);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.cta-button:hover {
    color: var(--white);
    border-color: var(--teal);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(76, 175, 140, 0.4);
}

.cta-button:hover::before {
    width: 500px;
    height: 500px;
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow-icon {
    transform: translateX(5px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    animation: fadeIn 1.5s ease-out 1.5s both;
}

.scroll-indicator span {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--teal) 0%, transparent 100%);
    position: relative;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--teal);
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.5;
    }
}

/* ================================
   ACTION BUTTONS SECTION
   ================================ */
.action-buttons-section {
    background-color: var(--white);
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 50;
}

.action-buttons-container {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 800px;
    width: 100%;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-button:hover::before {
    opacity: 1;
}

.navigator-button {
    background: linear-gradient(135deg, var(--pantone-7490) 0%, var(--pantone-7743) 100%);
}

.navigator-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(113, 153, 73, 0.4);
}

.calendar-button {
    background: linear-gradient(135deg, var(--pantone-7494) 0%, var(--pantone-7490) 100%);
}

.calendar-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(156, 175, 136, 0.4);
}

.button-icon {
    flex-shrink: 0;
}

.action-button span {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    white-space: nowrap;
}

/* ================================
   INFO SECTION - GOOGLE MAPS
   ================================ */
.info-section {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-top: 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Google Maps iframe - FULL WIDTH 300px HEIGHT */
.google-maps-container {
    width: 100%;
    max-width: 100%;
    height: 300px;
    position: relative;
    z-index: 10;
}

.google-maps-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ================================
   FOOTER
   ================================ */
.footer {
    background-color: var(--pantone-7743);
    color: var(--white);
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 100;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    height: 64px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.footer-info {
    text-align: center;
}

.footer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.footer-info p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
}

.footer-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--pantone-7494);
}

.footer-section p {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-address-link {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-address-link:hover {
    opacity: 0.8;
}

.footer-address-link p {
    color: var(--white);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 1024px) {
    .header {
        padding: 0.2rem 1.5rem;
    }

    .logo {
        height: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 52px;
    }

    .header {
        padding: 0.2rem 1rem;
    }

    .logo {
        height: 30px;
    }

    .hero-section {
        height: auto;
        min-height: unset;
        padding-top: 60px;
        padding-bottom: 1rem;
        align-items: flex-start;
    }

    .hero-content {
        padding: 0 0.5rem;
        max-width: 100%;
        gap: 0.5rem;
    }

    .hero-image-wrapper {
        max-width: 100%;
        padding: 0;
    }

    .hero-image {
        border-radius: 12px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

    .info-section {
        padding: 0.5rem 0.3rem;
        min-height: auto;
    }

    .action-buttons-section {
        padding: 1.25rem 0.75rem;
    }

    .action-buttons-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .action-button {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .scroll-indicator {
        bottom: 2rem;
    }

    .google-maps-container {
        height: 300px;
    }

    .info-section {
        padding: 0;
    }

    .action-buttons-section {
        padding: 1.5rem 1rem;
    }

    .action-buttons-container {
        gap: 1rem;
    }

    .action-button {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }

    .footer-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-logo img {
        height: 56px;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 48px;
    }

    .header {
        padding: 0.15rem 0.75rem;
    }

    .logo {
        height: 28px;
    }

    .hero-section {
        padding-top: 52px;
        padding-bottom: 0.5rem;
    }

    .hero-content {
        padding: 0 0.25rem;
        max-width: 100%;
    }

    .hero-image-wrapper {
        max-width: 100%;
        padding: 0;
    }

    .hero-image {
        border-radius: 10px;
    }

    .info-section {
        padding: 0.3rem 0.2rem;
    }

    .action-buttons-section {
        padding: 1rem 0.5rem;
    }

    .action-button {
        padding: 0.9rem 1.25rem;
        font-size: 0.95rem;
    }

    .button-icon {
        width: 20px;
        height: 20px;
    }

    .hero-image {
        border-radius: 15px;
    }

    .google-maps-container {
        height: 300px;
    }

    .info-section {
        padding: 0;
    }

    .scroll-indicator {
        bottom: 1.5rem;
    }

    .scroll-indicator span {
        font-size: 0.8rem;
    }

    .google-maps-container {
        max-width: 95%;
        height: 400px;
        border-radius: 10px;
        margin: 0 auto;
    }

    .footer {
        padding: 2rem 1.5rem 1.5rem;
    }

    .footer-container {
        gap: 1.5rem;
    }

    .footer-logo img {
        height: 48px;
    }

    .footer-info h3 {
        font-size: 1.5rem;
    }

    .footer-info p {
        font-size: 1rem;
    }

    .footer-details {
        gap: 1.5rem;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-section p {
        font-size: 0.95rem;
    }
}

/* Hide scroll indicator on very small screens */
@media (max-height: 600px) {
    .scroll-indicator {
        display: none;
    }
}
