/* 
* ConsedisBR Media - Stylesheet principale
* Data: Ottobre 2023
*/

/* ========== RESET E REGOLE BASE ========== */
:root {
    --primary-color: #3a3a3a;
    --secondary-color: #8b5a2b;
    --accent-color: #c8a27c;
    --light-color: #f8f8f8;
    --dark-color: #333333;
    --text-color: #4a4a4a;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --section-padding: 80px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

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

button, .btn {
    cursor: pointer;
    border: none;
    outline: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.4rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding);
}

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-line {
    height: 3px;
    width: 70px;
    background-color: var(--secondary-color);
    margin: 0 auto 20px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

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

.center-button {
    text-align: center;
    margin-top: 40px;
}

/* ========== COMPONENTI ========== */

/* Bottoni */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    padding: 10px 24px;
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-content h3 {
    margin-bottom: 5px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-buttons button {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

#accept-all {
    background-color: var(--secondary-color);
    color: white;
}

#accept-all:hover {
    background-color: var(--primary-color);
}

#accept-necessary, #cookie-settings {
    background-color: #f1f1f1;
    color: var(--primary-color);
}

#accept-necessary:hover, #cookie-settings:hover {
    background-color: #e0e0e0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1010;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 50px auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.cookie-options {
    margin: 20px 0;
}

.cookie-option {
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.cookie-option label {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 5px;
}

.cookie-option input {
    margin-right: 10px;
}

.cookie-option p {
    margin-left: 25px;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #666;
}

#save-preferences {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    display: block;
    width: 100%;
    transition: var(--transition);
}

#save-preferences:hover {
    background-color: var(--primary-color);
}

/* ========== HEADER ========== */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
}

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

nav ul li a:hover:after, nav ul li a.active:after {
    width: 100%;
}

nav ul li a.active {
    color: var(--secondary-color);
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

/* ========== HERO SECTION ========== */
.hero {
    padding: 80px 0;
    background-color: var(--light-color);
}

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

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-content h1 {
    margin-bottom: 20px;
    font-size: 3.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    text-align: right;
}

/* ========== ABOUT SECTION ========== */
.about .flex-container {
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-content {
    flex: 1;
}

.about-content h3 {
    margin-bottom: 20px;
}

/* ========== COLLECTIONS SECTION ========== */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.collection-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.collection-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.collection-image {
    height: 250px;
    overflow: hidden;
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.collection-content {
    padding: 20px;
}

.collection-content h3 {
    margin-bottom: 10px;
}

.collection-content p {
    margin-bottom: 0;
}

/* ========== SERVICES SECTION ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon img {
    height: 60px;
    margin: 0 auto;
}

.service-item h3 {
    margin-bottom: 15px;
}

.service-item p {
    margin-bottom: 0;
}

/* ========== BLOG PREVIEW SECTION ========== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    margin-bottom: 5px;
}

.date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--secondary-color);
}

.read-more:hover {
    text-decoration: underline;
}

/* ========== TESTIMONIAL SECTION ========== */
.testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.testimonial {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author h4 {
    margin-bottom: 5px;
}

.testimonial-author p {
    margin-bottom: 0;
    font-style: normal;
    color: #888;
}

/* ========== CONTACT SECTION ========== */
.contact-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.contact-icon i {
    color: var(--secondary-color);
}

.contact-item h3 {
    margin-bottom: 5px;
}

.contact-item p {
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
}

.social-links a img {
    width: 20px;
    height: 20px;
}

.contact-form h3 {
    margin-bottom: 5px;
}

.contact-form p {
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

/* ========== FOOTER ========== */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-logo span {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
}

address p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #ccc;
}

address p i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

#cookie-settings-footer {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    text-decoration: underline;
}

#cookie-settings-footer:hover {
    color: white;
}

/* ========== THANKS PAGE ========== */
.thanks-section {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.thanks-content {
    max-width: 600px;
}

.thanks-icon {
    font-size: 5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.thanks-content h1 {
    margin-bottom: 20px;
}

.thanks-details {
    margin: 30px 0;
    text-align: left;
}

.thanks-details ul {
    list-style: disc;
    padding-left: 20px;
}

.thanks-details li {
    margin-bottom: 10px;
}

.thanks-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* ========== LEGAL PAGES ========== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-header {
    text-align: center;
    margin-bottom: 50px;
}

.last-updated {
    color: #888;
    font-style: italic;
}

.legal-body h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-body h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-body ul, .legal-body ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.legal-body ul li, .legal-body ol li {
    margin-bottom: 10px;
}

.legal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.legal-body table th, .legal-body table td {
    border: 1px solid var(--border-color);
    padding: 10px;
    text-align: left;
}

.legal-body table th {
    background-color: var(--light-color);
}

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.privacy-table th, .privacy-table td {
    border: 1px solid var(--border-color);
    padding: 10px;
    text-align: left;
}

.privacy-table th {
    background-color: var(--light-color);
}

address {
    font-style: normal;
    margin: 20px 0;
}

/* ========== RESPONSIVE STYLES ========== */
@media screen and (max-width: 1024px) {
    h1 {
        font-size: 2.4rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.6rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

@media screen and (max-width: 768px) {
    nav {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .about .flex-container {
        flex-direction: column;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .collection-item {
        margin-bottom: 20px;
    }
    
    .testimonials-slider {
        flex-direction: column;
    }
    
    .testimonial {
        margin-bottom: 20px;
    }
    
    .contact-flex {
        flex-direction: column;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .collection-item {
        min-width: 100%;
    }
    
    .blog-card {
        min-width: 100%;
    }
    
    .service-item {
        min-width: 100%;
    }
    
    .footer-column {
        min-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.article-featured-image img,
.article-image img{
    margin: 0 auto;
}