/* ====================================
   THE ESO - INTERNAL PAGES STYLES
   CONTATTI & GALLERY PAGES
   ==================================== */

/* Import base variables from home.css */
@import url('home.css');

/* ====================================
   PAGE LAYOUT BASICS
   ==================================== */

body.page {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--eso-black);
    background: var(--eso-white);
    padding-top: 100px;
    overflow-x: hidden;
}

.page-hero {
    background: linear-gradient(135deg, var(--eso-black) 0%, var(--eso-ink) 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(200, 162, 74, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--eso-white);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--eso-gold-soft);
    margin-bottom: 0;
    font-weight: 400;
}

/* ====================================
   CONTATTI PAGE STYLES
   ==================================== */

.contact-section {
    padding: 100px 0;
    background: var(--eso-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    padding-right: 40px;
}

.contact-info-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--eso-black);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--eso-white-pure);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(11, 11, 13, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(11, 11, 13, 0.12);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--eso-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.2rem;
    color: var(--eso-white);
    flex-shrink: 0;
}

.contact-details h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--eso-black);
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--eso-gray);
    margin: 0;
    line-height: 1.5;
}

/* Contact Form */
.contact-form {
    background: var(--eso-white-pure);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(11, 11, 13, 0.1);
}

.contact-form-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--eso-black);
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--eso-black);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--eso-light-gray);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--eso-white);
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--eso-gold);
    box-shadow: 0 0 0 3px rgba(200, 162, 74, 0.1);
}

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

.form-submit {
    background: var(--eso-gold);
    color: var(--eso-white);
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-submit:hover {
    background: var(--eso-black);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(11, 11, 13, 0.2);
}

/* ====================================
   GALLERY PAGE STYLES
   ==================================== */

.gallery-section {
    padding: 100px 0;
    background: var(--eso-white);
}

.gallery-intro {
    text-align: center;
    margin-bottom: 80px;
}

.gallery-intro-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--eso-black);
    margin-bottom: 20px;
}

.gallery-intro-text {
    font-size: 1.1rem;
    color: var(--eso-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(11, 11, 13, 0.2);
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(11, 11, 13, 0.8));
    padding: 30px 25px 25px;
    color: var(--eso-white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--eso-gold);
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

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

@media (max-width: 1024px) {
    .contact-grid {
        gap: 60px;
    }

    .contact-info {
        padding-right: 20px;
    }

    .contact-form {
        padding: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

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

    .page-subtitle {
        font-size: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-info {
        padding-right: 0;
    }

    .contact-form {
        padding: 30px;
    }

    .contact-info-title {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-intro-title {
        font-size: 2rem;
    }

    .gallery-intro-text {
        font-size: 1rem;
    }
}

/* ====================================
   SMOOTH SCROLLING FOR ANCHOR LINKS
   ==================================== */

html {
    scroll-behavior: smooth;
}