/* Responsive: tour-aperitivo layout mobile */
@media (max-width: 800px) {
    .tour-aperitivo-row {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    .tour-aperitivo-row > div:first-child {
        order: -1;
        margin-bottom: 1.5rem;
    }
    .tour-aperitivo-row img {
        margin: 0 auto;
        display: block;
        max-width: 100%;
    }
}
/* Responsive: sezioni tour Palmarola e Ponza mobile layout */
.tour-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 800px) {
    .tour-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .tour-row > div:first-child {
        order: -1;
        margin-bottom: 1.5rem;
    }
    .tour-row img {
        margin: 0 auto;
        display: block;
        max-width: 100%;
    }
}
/* Hero button group mobile fix */
.hero-btn-group {
        display: flex;
        justify-content: center;
        gap: 1rem;
}

@media (max-width: 600px) {
    .hero-btn-group {
        flex-direction: column;
        align-items: center;
        gap: 1.1rem;
    }
    .hero-btn-group .btn {
        width: 90%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center;
    }
}
/*
   Project: Ponzesi Per Scelta - Redesign
   Theme: Premium, Sea, Modern
*/

/* --- Variables & Design Tokens --- */
:root {
    --color-primary: #32659E;
    /* Deep Navy Blue */
    --color-secondary: #C5A059;
    /* Muted Gold */
    --color-secondary-hover: #b08d4b;
    --color-accent: #008080;
    /* Deep Teal/Turquoise */
    --color-bg-light: #F9FAFB;
    --color-text-main: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;

    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --container-width: 1200px;
    --border-radius: 8px;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* --- Reset & Base Styles --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-sans);
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}

/* --- Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

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

.text-gold {
    color: var(--color-secondary);
}

.text-white {
    color: var(--color-white);
}

.bg-primary {
    background-color: var(--color-primary);
}

.bg-white {
    background-color: var(--color-white);
}

.section {
    padding: var(--spacing-xl) 0;
}

.hidden {
    display: none;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.grid {
    display: grid;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.home-experiences-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem;
}

.home-experiences-grid .card {
    border-radius: calc(var(--border-radius) * 2);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-primary) 18%, transparent), var(--shadow-md);
    transition: box-shadow 0.3s ease;
}

.home-experiences-grid .card:hover {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-primary) 28%, transparent), var(--shadow-lg);
}

.home-experiences-grid .card-image img {
    transition: transform 0.6s ease;
    will-change: transform;
}

.home-experiences-grid .card:hover .card-image img {
    transform: scale(1.08);
}

.home-experiences-grid .card-image {
    height: 240px;
}

.home-experiences-grid .card-content {
    padding: var(--spacing-md);
}

.home-experiences-grid .card-title {
    font-weight: 700;
    letter-spacing: 0.2px;
    margin-bottom: var(--spacing-sm);
}

.home-experiences-grid .card p {
    line-height: 1.9;
}

.home-experiences-grid .card-price {
    margin-bottom: var(--spacing-md);
}

@media (max-width: 768px) {
    .home-experiences-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* --- Components --- */

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #2a5585;
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 2px solid var(--color-white);
    color: var(--color-white);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* Header */
.header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

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

.logo img {
    height: 60px;
    /* Adjust based on logo aspect ratio */
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    font-family: var(--font-sans);
    font-weight: 500;
    color: var(--color-primary);
    position: relative;
    font-size: 1.1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -7px;
    left: 0;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

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

/* Link attivo (pagina corrente) */
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    height: 85vh;
    background-image: linear-gradient(rgba(11, 30, 59, 0.4), rgba(11, 30, 59, 0.4)), url('https://docs.ottimis.com/ponzesiperscelta/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: var(--color-white);
    border-top: 1px solid rgba(50, 101, 158, 0.2);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
    transform: translateY(110%);
    transition: transform 0.3s ease;
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner__inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-banner__text {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-banner__link {
    color: var(--color-primary);
    font-weight: 600;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.cookie-banner__btn {
    padding: 10px 18px;
    letter-spacing: 0.5px;
}

.cookie-banner__btn--ghost {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.cookie-banner__btn--ghost:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

@media (max-width: 768px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-banner__actions {
        width: 100%;
    }
    .cookie-banner__actions .cookie-banner__btn {
        width: 100%;
        text-align: center;
    }
}


.fade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transition: opacity 1s;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero .hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    color: #f0f0f0;
}

/* Card */
.card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.service-card {
    overflow: hidden;
    /* Ensure zoom stays within bounds if needed, though border-radius is inline */
}

.service-card img {
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

.card-image {
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

.card p {
    margin-bottom: var(--spacing-md);
}

.card-price {
    font-size: 1.1rem;
    color: var(--color-secondary);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    display: block;
    margin-top: auto;
}

/* Seasonal pricing table (Gite) */
.season-pricing {
    margin: 2rem auto 0;
    max-width: 560px;
}

.season-pricing__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.season-pricing__table th,
.season-pricing__table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--color-white);
}

.season-pricing__table th:first-child,
.season-pricing__table td:first-child {
    text-align: left;
}

.season-pricing__table thead th {
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.season-pricing__price {
    text-align: right;
    font-weight: 800;
    color: var(--color-secondary);
    white-space: nowrap;
}

.season-pricing__note {
    margin-top: 1rem;
    margin-bottom: 0;
    opacity: 0.9;
    color: var(--color-white);
}

@media (max-width: 480px) {
    .season-pricing__table th,
    .season-pricing__table td {
        padding: 0.6rem 0.75rem;
        font-size: 0.95rem;
    }
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo img {
    height: 80px;
    margin-bottom: var(--spacing-sm);
    filter: brightness(0) invert(1);
    /* Make logo white if possible/needed */
}

.footer h4 {
    color: var(--color-secondary);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}

.footer-link {
    display: block;
    margin-bottom: 0.5rem;
    color: #cccccc;
}

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

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-1000 {
    animation-delay: 1s;
}

.delay-1500 {
    animation-delay: 1.5s;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--color-white);
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        gap: var(--spacing-sm);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        height: 70vh;
    }
}
