/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Header */
header {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo img {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.title {
    text-align: right;
    flex: 1;
}

.title h1 {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.title .subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-style: italic;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 2rem 0;
}

.btn-prenota {
    display: inline-block;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    padding: 1.2rem 3rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-prenota:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.5);
    background: linear-gradient(135deg, #ffb74d 0%, #ff9800 100%);
}

.btn-back {
    display: inline-block;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    transition: all 0.3s ease;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.btn-struttura {
    display: inline-block;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    padding: 1.2rem 3rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-struttura:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.5);
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
}

.btn-dovesiamo {
    display: inline-block;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    padding: 1.2rem 3rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-left: 1rem;
}

.btn-dovesiamo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.5);
    background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
}

.cta-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .btn-dovesiamo {
        margin-left: 0;
        padding: 1rem 2rem;
        font-size: 1.2rem;
    }

    .btn-prenota {
        padding: 1rem 2rem;
        font-size: 1.2rem;
    }
}

/* Description Section */
.description {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.description-content h2 {
    color: #2e7d32;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.description-content h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #2e7d32, #ff9800);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.description-content > p {
    font-size: 1.1rem;
    text-align: justify;
    margin-bottom: 2rem;
    color: #555;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8f5e9 100%);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.feature h3 {
    color: #2e7d32;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature p {
    color: #666;
    font-size: 0.95rem;
}

.highlight {
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 5px solid #ff9800;
    font-style: italic;
    color: #5d4037;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    border-left: 5px solid #1976d2;
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.15);
}

.info-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.info-content h3 {
    color: #1565c0;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.info-content p {
    color: #37474f;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .info-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
}

/* Gallery Section */
.gallery {
    margin: 3rem 0;
}

.gallery h2 {
    color: #2e7d32;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.gallery h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #2e7d32, #ff9800);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.gallery-subtitle {
    color: #1b5e20;
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid #ff9800;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Calendar Section */
.calendar-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.calendar-section h2 {
    color: #2e7d32;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.calendar-info {
    color: #666;
    margin-bottom: 1.5rem;
}

.calendar-container {
    max-width: 100%;
    overflow-x: auto;
}

.calendar-container iframe {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Booking Form */
.booking-form {
    background: white;
    border-radius: 20px;
    padding: 2rem 3rem;
    margin: 2rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.booking-form h2 {
    color: #2e7d32;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.form-info {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
	white-space: pre-line;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-fieldset {
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #fafafa;
}

.form-fieldset legend {
    font-weight: 700;
    color: #2e7d32;
    font-size: 1.1rem;
    padding: 0 0.8rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: #fff8e1;
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid #ffe0b2;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #2e7d32;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    color: #5d4037;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-submit {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
    transition: all 0.3s ease;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.5);
    background: linear-gradient(135deg, #ffb74d 0%, #ff9800 100%);
}

.btn-submit:disabled {
    background: linear-gradient(135deg, #bdbdbd 0%, #9e9e9e 100%);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
}

.form-hint {
    color: #f57c00;
    font-size: 0.9rem;
    margin-top: 1rem;
    font-style: italic;
}

.esito-successo {
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #4caf50;
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
}

.esito-errore {
    background: #ffebee;
    color: #c62828;
    border: 2px solid #ef5350;
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
}

.partecipanti-row {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-group input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
    min-width: 0;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #2e7d32;
    cursor: pointer;
}

.partecipanti-errore {
    color: #d32f2f;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ffebee;
    border-radius: 8px;
    border-left: 4px solid #d32f2f;
}

.recaptcha-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: #f5f5f5;
    border-radius: 10px;
    margin-top: 1rem;
}

.recaptcha-hint {
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.8rem;
    font-style: italic;
}

.g-recaptcha {
    transform-origin: center;
}

@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
    }

    .recaptcha-container {
        padding: 1rem;
    }
}

/* Pagina Conferma */
.conferma-section {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

.conferma-icona {
    font-size: 5rem;
    color: #2e7d32;
    background: #e8f5e9;
    width: 120px;
    height: 120px;
    line-height: 120px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    border: 4px solid #4caf50;
}

.conferma-section h2 {
    color: #2e7d32;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.conferma-testo {
    font-size: 1.15rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.conferma-testo-secondario {
    font-size: 1rem;
    color: #666;
    margin-top: 1rem;
    font-style: italic;
}

.conferma-bottoni {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

@media (max-width: 768px) {
    .conferma-section {
        padding: 2rem 1.5rem;
    }

    .conferma-section h2 {
        font-size: 1.5rem;
    }

    .conferma-bottoni {
        flex-direction: column;
        align-items: center;
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer p {
    margin: 0.3rem 0;
}

footer a {
    color: #ffcc80;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .title {
        text-align: center;
    }

    .title h1 {
        font-size: 1.5rem;
    }

    .logo img {
        height: 60px;
    }

    main {
        padding: 1rem;
    }

    .description {
        padding: 1.5rem;
    }

    .description-content h2 {
        font-size: 1.5rem;
    }

    .btn-prenota {
        padding: 1rem 2rem;
        font-size: 1.2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item.wide {
        grid-column: span 2;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .partecipanti-row {
        grid-template-columns: 1fr;
    }

    .booking-form {
        padding: 1.5rem;
    }

    .calendar-container iframe {
        width: 100%;
        height: 400px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.large,
    .gallery-item.wide {
        grid-column: span 1;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .btn-prenota {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .description-content > p {
        font-size: 1rem;
    }

    .calendar-container iframe {
        height: 350px;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 100000;
}

.lightbox-close:hover {
    color: #ff9800;
    transform: scale(1.2);
}

.lightbox-caption {
    color: white;
    font-size: 1.2rem;
    margin-top: 1rem;
    text-align: center;
    padding: 0 2rem;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animazioni */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.description,
.gallery,
.calendar-section,
.booking-form {
    animation: fadeIn 0.6s ease-out;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 3px;
    flex-shrink: 0;
}

.lang-switcher button {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    padding: 2px 6px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    opacity: 0.5;
    filter: grayscale(50%);
}

.address-box p {
	white-space: pre-line;
	text-align: left;
}

.lang-switcher button.lang-active {
    opacity: 1;
    filter: none;
    background: rgba(255, 255, 255, 0.2);
}

.lang-switcher button:hover:not(.lang-active) {
    opacity: 0.85;
    filter: grayscale(20%);
    background: rgba(255, 255, 255, 0.15);
}

/* Cookie Banner */
#cookieBanner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100001;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0;
}

#cookieBanner .cookie-content {
    width: 100%;
    max-width: none;
    background: rgba(27, 94, 32, 0.97);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1.5rem 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.4s ease-out;
}

#cookieBanner p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

#cookieBanner button {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

#cookieBanner button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
}

#cookieBanner button.cookie-reject {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: none;
}

#cookieBanner button.cookie-reject:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

@media (max-width: 480px) {
    #cookieBanner .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    #cookieBanner p {
        font-size: 0.85rem;
    }
}
