/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    position: relative;
    height: 400px;
    margin-top: 90px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 56px;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 20px;
    color: #ffffff;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* ========================================
   INTRO SECTION
   ======================================== */
.intro-section {
    padding: 80px 0;
    background: #f8f6f3;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    font-size: 42px;
    margin-bottom: 30px;
    color: #2c2c2c;
}

.intro-content p {
    font-size: 17px;
    line-height: 1.9;
    color: #666;
    margin-bottom: 20px;
}

/* ========================================
   GALLERY GRID
   ======================================== */
.gallery-section,
.projects-section,
.workshop-section {
    padding: 100px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/3;
    background: #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ========================================
   PROJECT BLOCKS
   ======================================== */
.project-block {
    margin-bottom: 100px;
}

.project-header {
    margin-bottom: 40px;
}

.project-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: #2c2c2c;
}

.project-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    max-width: 900px;
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.lightbox-close {
    top: 30px;
    right: 30px;
}

.lightbox-prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

/* ========================================
   SERVICES LIST
   ======================================== */
.services-list {
    background: #f8f6f3;
    padding: 100px 0;
}

.services-grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c2c2c;
}

.service-item p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

/* ========================================
   CATEGORIES SECTION (MOBILI)
   ======================================== */
.categories-section {
    padding: 100px 0;
    background: #ffffff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.category-card {
    background: #f8f6f3;
    padding: 40px 35px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 26px;
    margin-bottom: 25px;
    color: #2c2c2c;
}

.category-card ul {
    list-style: none;
    padding: 0;
}

.category-card ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    font-size: 15px;
    color: #666;
}

.category-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #8b7355;
    font-weight: bold;
}

/* ========================================
   MATERIALS & PROCESS SECTIONS
   ======================================== */
.materials-section,
.process-section {
    padding: 80px 0;
    background: #f8f6f3;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.material-card {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.material-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c2c2c;
}

.material-card p {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step {
    text-align: center;
}

.step-number {
    font-size: 48px;
    font-weight: 700;
    color: #c9a882;
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 20px;
}

.step h4 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #2c2c2c;
}

.step p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

/* ========================================
   LOGO SECTION (CHI SIAMO)
   ======================================== */
.logo-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f6f3, #ffffff);
    text-align: center;
}

.logo-showcase {
    max-width: 600px;
    margin: 0 auto;
}

.logo-large {
    width: 100%;
    max-width: 450px;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-motto {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-style: italic;
    color: #8b7355;
    margin-top: 30px;
    font-weight: 500;
    letter-spacing: 2px;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ========================================
   STORY & VALUES (CHI SIAMO)
   ======================================== */
.story-section {
    padding: 100px 0;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-text h2 {
    font-size: 42px;
    margin-bottom: 30px;
    color: #2c2c2c;
}

.story-text p {
    font-size: 16px;
    line-height: 1.9;
    color: #666;
    margin-bottom: 20px;
}

.story-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.values-section {
    background: #f8f6f3;
    padding: 100px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.value-card {
    background: #ffffff;
    padding: 40px 35px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c2c2c;
}

.value-card p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

/* ========================================
   HERITAGE & TIMELINE
   ======================================== */
.heritage-section {
    padding: 100px 0;
}

.heritage-intro {
    text-align: center;
    font-size: 18px;
    line-height: 1.9;
    color: #666;
    max-width: 900px;
    margin: 0 auto 60px;
}

.heritage-timeline {
    max-width: 800px;
    margin: 80px auto 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 50px;
    top: 60px;
    bottom: -50px;
    width: 2px;
    background: #e0e0e0;
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-year {
    font-size: 28px;
    font-weight: 700;
    color: #8b7355;
    font-family: 'Cormorant Garamond', serif;
}

.timeline-content h4 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #2c2c2c;
}

.timeline-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

/* ========================================
   TEAM SECTION
   ======================================== */
.team-section {
    background: #f8f6f3;
    padding: 100px 0;
}

.team-intro {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: center;
    font-size: 16px;
    line-height: 1.9;
    color: #666;
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-section {
    padding: 100px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

.contact-info h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #2c2c2c;
}

.info-block {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.info-icon {
    font-size: 32px;
    width: 50px;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #2c2c2c;
}

.info-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

.social-links-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-links-contact a {
    color: #8b7355;
    font-size: 15px;
    transition: all 0.3s ease;
}

.social-links-contact a:hover {
    color: #2c2c2c;
}

.office-hours {
    margin-top: 50px;
    padding: 30px;
    background: #f8f6f3;
    border-radius: 8px;
}

.office-hours h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #2c2c2c;
}

.office-hours table {
    width: 100%;
    font-size: 14px;
}

.office-hours table td {
    padding: 8px 0;
    color: #666;
}

.office-hours table td:first-child {
    font-weight: 600;
}

.office-hours .note {
    margin-top: 15px;
    font-size: 13px;
    font-style: italic;
    color: #999;
}

/* ========================================
   CONTACT FORM
   ======================================== */
.contact-form-wrapper h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #2c2c2c;
}

.form-intro {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
}

.contact-form {
    background: #f8f6f3;
    padding: 40px;
    border-radius: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c2c2c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    background: #ffffff;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b7355;
}

.form-group input.input-error,
.form-group select.input-error,
.form-group textarea.input-error {
    border-color: #e74c3c;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-label a {
    color: #8b7355;
    text-decoration: underline;
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
}

.success-message {
    background: #27ae60;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
    font-size: 15px;
}

/* ========================================
   MAP & VISIT CTA
   ======================================== */
.map-section {
    padding: 80px 0 0;
}

.map-placeholder {
    height: 400px;
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    border-radius: 8px;
}

.map-placeholder p {
    color: #999;
    font-size: 16px;
    margin: 10px 0;
}

.map-note {
    font-size: 13px !important;
    font-style: italic;
}

.visit-cta {
    padding: 100px 0;
    background: #f8f6f3;
}

.visit-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.visit-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #2c2c2c;
}

.visit-content p {
    font-size: 17px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-block;
    padding: 16px 40px;
    background: transparent;
    color: #8b7355;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    border: 2px solid #8b7355;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #8b7355;
    color: #ffffff;
}

/* ========================================
   FADE IN ANIMATION
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .story-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 40px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .logo-large {
        max-width: 380px;
    }

    .logo-motto {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .logo-large {
        max-width: 300px;
    }

    .logo-motto {
        font-size: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 80px 1fr;
        gap: 20px;
    }

    .timeline-year {
        font-size: 22px;
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }
}
