/* Styles specific to the proposte.html page */

body {
    font-family: 'Open Sans', sans-serif; /* Base font */
    line-height: 1.6; /* Base line height */
    font-size: 16px; /* Base font size */
    color: #333;
}

main.container {
    padding-top: 4rem; /* Increased padding */
    padding-bottom: 4rem; /* Increased padding */
}

/* Basic styling for proposal items (Cards) */
.proposal-item {
    margin-bottom: 4rem;
    padding: 2.5rem; /* Increased padding */
    border: 1px solid #eaeaea; /* Even Lighter border */
    border-radius: 10px; /* Softer radius */
    background-color: #ffffff; /* White background */
    box-shadow: 0 5px 15px rgba(0,0,0,0.07); /* Adjusted shadow */
    text-align: left; /* Reset text-align */
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.proposal-item:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); /* Enhanced shadow on hover */
}

.proposal-item h2,
.proposal-item .proposal-subtitle,
.proposal-item .proposal-price,
.proposal-item .proposal-ref-code {
    text-align: center; /* Re-apply centering only to these header elements */
}

.proposal-item h2 {
    margin-bottom: 2rem; /* More space before icons */
    display: block; 
    font-family: 'Open Sans', sans-serif;
}

.proposal-subtitle {
     font-size: 1.1em;
     color: #555;
     margin-bottom: 1.2rem; /* More space */
     font-style: italic;
     font-family: 'Open Sans', sans-serif; 
}

.proposal-price {
    font-size: 1.6em; /* Match h2 size */
    font-weight: 700; /* Bolder */
    color: #0062cc; /* Refined blue */
    margin-bottom: 0.5rem; 
    font-family: 'Montserrat', sans-serif;
}

.proposal-ref-code {
    font-size: 0.9em;
    color: #777;
    margin-top: -0.2rem; /* Adjust */
    margin-bottom: 2rem; /* More space before icons */
    display: block; 
    font-family: 'Open Sans', sans-serif;
}

/* Gallery Grid */
.proposal-gallery {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive columns */
    gap: 15px; 
    margin-bottom: 1.5rem; 
    max-width: 860px; 
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* Subtle shadow */
}

.proposal-gallery a {
    display: block;
    aspect-ratio: 3/4; /* Vertical aspect ratio */
    overflow: hidden;
    border-radius: 6px; /* Slightly rounder */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Subtle shadow on thumbs */
}

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

 .proposal-gallery a:hover img {
    transform: scale(1.08); 
    opacity: 1;
}

/* Cover Image */
.proposal-cover-image {
    width: 100%; 
    max-width: 700px; 
    height: auto;
    margin-bottom: 1.5rem; 
    display: block;
    border-radius: 6px; 
    margin-left: auto; 
    margin-right: auto; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* Subtle shadow */
}

/* Features Icons Section */
.proposal-features {
    display: inline-flex; 
    flex-wrap: nowrap; 
    gap: 18px; /* Adjusted gap */
    margin-bottom: 2.5rem; /* More space */
    padding: 0.8rem 0; 
    border-top: 1px solid #eee; 
    border-bottom: 1px solid #eee; 
    max-width: 100%; 
}

.feature-item {
    display: flex;
    align-items: center; 
    gap: 7px; /* Adjusted gap */
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95em; /* Slightly larger */
    color: #444;
    flex-shrink: 0; 
    white-space: nowrap; 
}

.feature-item i {
    font-size: 1.05em; /* Adjusted icon size */
    color: #0062cc; /* Refined blue */
    width: 22px; /* Adjusted width */
    text-align: center;
}

/* Description Area */
.proposal-description {
     text-align: left; 
     margin-top: 2rem; 
     font-family: 'Open Sans', sans-serif;
     color: #333; /* Standard text color */
     line-height: 1.6; /* Improve readability */
}

/* Subheadings within description */
.proposal-description h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin-top: 2.5rem; /* Space above subheading */
    margin-bottom: 0.8rem; /* Space below subheading */
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #ddd; /* Subtle underline */
    display: inline-block; /* Keep underline tight */
}

.proposal-description h4:first-of-type {
    margin-top: 0; /* No top margin for the very first one */
}

 .proposal-description p {
     margin-bottom: 1.2em; /* Ensure sufficient paragraph spacing */
}

 .proposal-description ul {
     text-align: left;
     margin-top: 1em;
     padding-left: 25px; /* Slightly more indent */
     list-style: disc; /* Ensure bullets show */
     max-width: 100%; 
}

  .proposal-description ul li {
     margin-bottom: 0.6em; /* Slightly more spacing */
}

/* Icons within description */
.description-icon {
    margin-right: 8px; /* Increased from 6px */
    margin-left: 3px; 
    color: #0062cc; /* Refined blue */
    font-size: 0.9em; 
    width: 1.1em; 
    display: inline-block; 
    text-align: center; 
    vertical-align: -1px; 
}

/* Renovation Ideas - Mobile Responsive Styles */
.renovation-comparison {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.renovation-before,
.renovation-after {
    flex: 1;
    text-align: center;
}

.renovation-before h5,
.renovation-after h5 {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 1.1em;
    font-weight: 600;
}

.renovation-image-link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

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

.renovation-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.renovation-arrow {
    flex: 0 0 80px;
    text-align: center;
    font-size: 3em;
    color: #27ae60;
    font-weight: bold;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .renovation-comparison {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .renovation-before,
    .renovation-after {
        width: 100%;
    }
    
    .renovation-arrow {
        flex: 0 0 auto;
        font-size: 2em;
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    
    .renovation-image {
        height: 200px;
    }
    
    .renovation-before h5,
    .renovation-after h5 {
        font-size: 1em;
    }
    
    /* Proposte page container adjustments */
    main.container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .proposal-item {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .proposal-item h2 {
        font-size: 1.4em;
        margin-bottom: 1rem;
    }
    
    .proposal-subtitle {
        font-size: 1em;
        margin-bottom: 1rem;
    }
    
    .proposal-price {
        font-size: 1.4em;
        margin-bottom: 0.5rem;
    }
    
    .proposal-ref-code {
        margin-bottom: 1.5rem;
    }
    
    /* Gallery adjustments */
    .proposal-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 1rem;
    }
    
    .proposal-gallery a {
        aspect-ratio: 3/4; /* Maintain vertical aspect ratio on mobile */
    }
    
    /* Cover image adjustments */
    .proposal-cover-image {
        margin-bottom: 1rem;
    }
    
    /* Info grid adjustments */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Description adjustments */
    .proposal-description {
        margin-top: 1.5rem;
    }
    
    .proposal-description h4 {
        font-size: 1.1em;
        margin-top: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .proposal-description p {
        margin-bottom: 1em;
        font-size: 0.95em;
    }
    
    .proposal-description ul {
        padding-left: 20px;
    }
    
    .proposal-description ul li {
        margin-bottom: 0.5em;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .renovation-comparison {
        padding: 1rem;
        gap: 1rem;
    }
    
    .renovation-image {
        height: 150px;
    }
    
    .renovation-arrow {
        font-size: 1.5em;
    }
    
    .proposal-item {
        padding: 1rem;
    }
    
    .proposal-item h2 {
        font-size: 1.2em;
    }
    
    .proposal-subtitle {
        font-size: 0.95em;
    }
    
    .proposal-price {
        font-size: 1.2em;
    }
    
    .proposal-gallery {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .proposal-gallery a {
        aspect-ratio: 3/4; /* Maintain vertical aspect ratio on small mobile */
    }
    
    .proposal-description p {
        font-size: 0.9em;
    }
    
    .proposal-description ul li {
        font-size: 0.9em;
    }
}

/* Contact Link Button */
.proposal-contact-link {
    display: inline-block;
    padding: 12px 30px; /* Consistent padding */
    background-color: #0062cc; /* Refined blue */
    color: white;
    text-decoration: none;
    border-radius: 8px; /* Consistent radius */
    margin-top: 2rem; /* More space */
    transition: background-color 0.3s ease, transform 0.2s ease, font-weight 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1.05em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.proposal-contact-link:hover {
    background-color: #0062cc !important; /* Keep same blue */
    color: white !important; /* Force white text */
    font-weight: 700 !important; /* Bold white text */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}


/* Contact Form Section */
#contatti-proposte {
    margin-top: 4rem; 
    padding: 3rem; /* Increased padding */
    background-color: #f8f9fa; /* Light grey background */
     border-radius: 10px; /* Match card radius */
     border-top: 4px solid #0062cc; /* Thicker accent border */
}

/* Added spacing for Advisor section inside form */
#contatti-proposte .form-advisor {
    margin-top: -1.5rem; /* Adjust relative to padding */
    margin-bottom: 2.5rem; /* More space before form fields */
    padding-bottom: 1.5rem; /* Space below advisor */
    border-bottom: 1px dashed #ccc; /* Separator line */
}

 #contatti-proposte h2 {
     margin-bottom: 1rem; /* Reduced as advisor sits below */
     text-align: center; 
     font-family: 'Montserrat', sans-serif;
     font-weight: 600;
     font-size: 1.8em;
 }

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

.form-group label {
    display: block;
    margin-bottom: 0.7rem; /* Increased spacing */
    font-weight: 600; /* Bolder labels */
    font-family: 'Open Sans', sans-serif;
    color: #333; /* Darker label */
    text-align: left !important; 
}

.form-group label[for^="interest_"] {
     font-weight: normal; 
     display: inline-block; /* Use inline-block for better spacing control */
     margin-left: 8px; 
     vertical-align: middle; 
     margin-bottom: 0; /* Remove bottom margin for these labels */
}

.checkbox-group br {
    display: block; /* Ensure <br> works */
    margin-bottom: 0.6rem; /* Space between checkbox lines */
}

.form-group input[type="checkbox"] {
    width: auto; 
    margin-right: 5px;
    vertical-align: middle; 
}


.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.9rem; /* Increased padding */
    border: 1px solid #ced4da; /* Standard border color */
    border-radius: 8px; /* Match button/card radius */
    box-sizing: border-box; 
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
     border-color: #80bdff; /* Lighter blue focus */
     box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); 
     outline: 0;
}


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

/* Submit Button */
.submit-button {
     display: block; 
     width: fit-content; 
     margin-left: auto; 
     margin-right: auto; 
     margin-top: 1.5rem; /* Added top margin */
     padding: 12px 30px; /* Consistent padding */
     background-color: #28a745; 
     color: white;
     text-decoration: none;
     border: none;
     border-radius: 8px; /* Consistent radius */
     cursor: pointer;
     font-size: 1.1em; 
     transition: background-color 0.3s ease, transform 0.2s ease;
     font-family: 'Montserrat', sans-serif;
     font-weight: 500;
     box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.submit-button:hover {
     background-color: #218838;
     transform: translateY(-2px); 
     box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Checkbox Alignment Fix Div */
.checkbox-group {
    text-align: left;
    padding-left: 5px; /* Slight indent for the group */
}
/* Removed br style, use structure */

/* Advisor Section above form */
.form-advisor {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: -1.5rem; /* Pull form closer */
    padding: 1rem;
}

.advisor-image {
    width: 120px; /* Size */
    height: 120px;
    border-radius: 50%; /* Circular image */
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #fff; /* Optional white border */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* Shadow for image */
}

.form-advisor h3 {
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #333;
}

.form-advisor p {
    font-size: 0.95em;
    color: #555;
    max-width: 450px; /* Limit width */
    margin-left: auto;
    margin-right: auto;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.5;
}

/* Structured Info Sections Styling */
.structured-info {
    margin-bottom: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.info-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-top: 2rem; 
    margin-bottom: 1.2rem; 
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #0062cc; /* Stronger underline */
    display: inline-block; 
}

.structured-info h4:first-of-type {
     margin-top: 0; /* No top margin for the very first info title */
}

.info-grid {
    display: grid;
    gap: 1rem 1.5rem; /* Row gap, Column gap */
}

/* Grid for characteristics - 2 columns */
.characteristics-info {
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive 2 columns */
     gap: 0.5rem 2.5rem; /* Reduced row gap, Increased column gap */
}

/* Grid for price/energy info - can stay 1 or 2 col */
.price-info,
.energy-info {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.info-item {
    display: flex;
    /* align-items: center; */ /* Remove center align */
    align-items: flex-start; /* Align items to top */
    gap: 10px;
    font-size: 0.95em;
    padding: 0.6rem 0; /* Adjusted padding */
    border-bottom: 1px solid #f0f0f0; /* Light separator between items */
}

.info-grid .info-item:last-child {
    border-bottom: none; /* Remove border on last item */
}


.info-icon {
    color: #0062cc; 
    font-size: 1.1em;
    width: 25px; 
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px; /* Align icon slightly better with text */
}

.info-label {
    color: #666; /* Lighter label color */
    /* flex-grow: 1; */ 
    margin-right: 0.5em; /* Add space after label */
}

.info-label::after {
    content: ":"; /* Add colon automatically */
}

.info-value {
    font-weight: 600;
    color: #333;
    /* margin-left: auto; */ /* Removed push to right */
    text-align: left; /* Align value left */
}

/* Specific styling for energy classes */
.energy-class-g {
    background-color: #d9534f; /* Reddish color for G */
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
}

.energy-class-a {
    background-color: #2e7d32; /* Green color for A */
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
}

.contact-form-section {
    max-width: 700px; /* Increased max-width slightly */
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* Center the h3 and button */
}

.contact-form-section h3 {
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #333;
} 

/* Sold/Venduto badges */
.badge-venduto {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    vertical-align: middle;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.badge-venduto i {
    font-size: 1.1em;
}

.badge-venduto-lg {
    font-size: 1.15rem;
    padding: 10px 18px;
}

.venduto-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(231, 76, 60, 0.95);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}