/* 
* Sdolerioss Media - Main CSS Styles
* Website for an Italian plumbing service company
* Version: 1.0
*/

/* ===== CSS RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* 10px = 1rem */
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

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

a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #003d7a;
}

ul, ol {
    list-style: none;
}

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
    background: none;
}

/* ===== UTILITY CLASSES ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

.bg-light {
    background-color: #f8f9fa;
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: #0056b3;
    color: #fff;
}

.btn-primary:hover {
    background-color: #003d7a;
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    border-color: #0056b3;
    color: #0056b3;
}

.btn-outline:hover {
    background-color: #0056b3;
    color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3.6rem;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 1.5rem;
}

.section-header p {
    font-size: 1.8rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    z-index: 1000;
    display: none; /* Hidden by default, will be shown via JS */
}

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

.cookie-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cookie-options {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1rem;
}

.cookie-options label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}

.cookie-options input[type="checkbox"] {
    width: 1.6rem;
    height: 1.6rem;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.cookie-more-info {
    color: #fff;
    text-decoration: underline;
    margin-left: 1rem;
}

.cookie-more-info:hover {
    color: #ccc;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: all 0.3s ease;
}

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

.logo img {
    height: 5rem;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 3rem;
}

.main-nav a {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0056b3;
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: #0056b3;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 3rem;
    height: 2.2rem;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero-section {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/hero-background.svg') no-repeat center center;
    background-size: cover;
    color: #fff;
    display: flex;
    align-items: center;
    padding-top: 8rem; /* Account for the fixed header */
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    max-width: 600px;
}

.about-text h3 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 2rem;
}

.about-features {
    margin-top: 3rem;
    list-style: disc;
    padding-left: 2rem;
}

.about-features li {
    margin-bottom: 1rem;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.service-icon {
    margin: 0 auto 2.5rem;
    width: 8rem;
    height: 8rem;
}

.service-card h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #0056b3;
}

.service-card p {
    color: #666;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-item {
    display: none;
    padding: 0 2rem;
}

.testimonial-item.active {
    display: block;
}

.testimonial-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 6rem;
    line-height: 0;
    color: #0056b3;
    position: absolute;
}

.testimonial-text::before {
    top: 2rem;
    left: -1rem;
}

.testimonial-text::after {
    bottom: -1rem;
    right: -1rem;
    transform: rotate(180deg);
}

.testimonial-text p {
    font-size: 1.8rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.testimonial-author h4 {
    font-size: 2rem;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 0.5rem;
}

.testimonial-author p {
    color: #666;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    gap: 1rem;
}

.testimonial-prev,
.testimonial-next {
    background-color: #0056b3;
    color: #fff;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: background-color 0.3s ease;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: #003d7a;
}

/* ===== BLOG SECTION ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.blog-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.blog-content {
    padding: 2.5rem;
}

.blog-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #0056b3;
}

.blog-content p {
    color: #666;
    margin-bottom: 2rem;
}

.read-more {
    font-weight: 600;
    color: #0056b3;
    position: relative;
    display: inline-block;
}

.read-more:hover {
    color: #003d7a;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
}

.contact-info {
    padding-right: 2rem;
}

.contact-item {
    margin-bottom: 3rem;
}

.contact-item h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 1rem;
}

.contact-item p {
    color: #666;
    margin-bottom: 0.5rem;
}

.social-links h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 4rem;
    height: 4rem;
    fill: #0056b3;
    transition: fill 0.3s ease;
}

.social-icon:hover {
    fill: #003d7a;
}

.contact-form {
    background-color: #fff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0056b3;
}

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

.checkbox-group input {
    width: auto;
    margin-right: 1rem;
    margin-top: 0.4rem;
}

.required {
    color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 1.4rem;
    margin-top: 0.5rem;
    display: block;
}

.form-submit {
    margin-top: 3rem;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #0a2540;
    color: #fff;
    padding: 6rem 0 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 5rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 5rem;
    margin-bottom: 2rem;
}

.footer-logo p {
    font-size: 1.6rem;
    color: #ccc;
}

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

.footer-links-column h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #fff;
}

.footer-links-column ul li {
    margin-bottom: 1.2rem;
}

.footer-links-column a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links-column a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #ccc;
    font-size: 1.4rem;
}

/* ===== THANK YOU PAGE ===== */
.thanks-section {
    display: flex;
    align-items: center;
    height: 100vh;
    min-height: 600px;
    padding-top: 8rem;
}

.thanks-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    margin: 0 auto 3rem;
    width: 10rem;
}

.thanks-content h1 {
    font-size: 3.6rem;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 2rem;
}

.thanks-content p {
    font-size: 1.8rem;
    color: #666;
    margin-bottom: 1rem;
}

.back-home {
    margin-top: 4rem;
}

/* ===== LEGAL PAGES (PRIVACY, TERMS, COOKIES) ===== */
.legal-section {
    padding-top: 12rem; /* Account for the fixed header */
}

.legal-header {
    text-align: center;
    margin-bottom: 5rem;
}

.legal-header h1 {
    font-size: 3.6rem;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 1rem;
}

.legal-header p {
    font-size: 1.6rem;
    color: #666;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0056b3;
    margin: 4rem 0 2rem;
}

.legal-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin: 3rem 0 1.5rem;
}

.legal-content p {
    margin-bottom: 2rem;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 2rem;
    padding-left: 3rem;
}

.legal-content ul li,
.legal-content ol li {
    margin-bottom: 1rem;
    list-style-type: disc;
}

.legal-content ol li {
    list-style-type: decimal;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.cookie-table th,
.cookie-table td {
    padding: 1.2rem;
    text-align: left;
    border: 1px solid #ddd;
}

.cookie-table th {
    background-color: #f8f9fa;
    font-weight: 700;
}

.manage-cookies-container {
    margin-top: 5rem;
    padding: 3rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.cookie-preferences-form {
    margin-top: 2rem;
}

.cookie-option {
    margin-bottom: 2rem;
}

.cookie-option label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.cookie-option p {
    margin-left: 2.6rem;
    color: #666;
}

/* ===== BLOG POST PAGES ===== */
.blog-post-section {
    padding-top: 12rem; /* Account for the fixed header */
}

.blog-post-header {
    margin-bottom: 4rem;
}

.back-to-blog {
    display: inline-block;
    margin-bottom: 2rem;
    font-weight: 600;
    color: #0056b3;
}

.blog-post-header h1 {
    font-size: 3.6rem;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 1.5rem;
}

.blog-post-meta {
    color: #666;
    font-size: 1.6rem;
}

.blog-post-meta span {
    margin-right: 2rem;
}

.blog-post-featured-image {
    margin-bottom: 4rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-post-text h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0056b3;
    margin: 4rem 0 2rem;
}

.blog-post-text h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin: 3rem 0 1.5rem;
}

.blog-post-text p {
    margin-bottom: 2rem;
}

.blog-post-text strong {
    font-weight: 700;
}

.blog-post-text ul,
.blog-post-text ol {
    margin-bottom: 2rem;
    padding-left: 3rem;
}

.blog-post-text ul li,
.blog-post-text ol li {
    margin-bottom: 1rem;
    list-style-type: disc;
}

.blog-post-text ol li {
    list-style-type: decimal;
}

.blog-post-cta {
    margin-top: 5rem;
    padding: 3rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.blog-post-cta h3 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 1.5rem;
}

.blog-post-cta p {
    margin-bottom: 2rem;
}

.blog-post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid #ddd;
}

.prev-post,
.next-post {
    font-weight: 600;
    color: #0056b3;
}

.prev-post {
    margin-right: auto;
}

.next-post {
    margin-left: auto;
}

.related-posts-section {
    margin-top: 5rem;
}

.related-posts-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 3rem;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

/* Animation classes for page transitions */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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