/* =========================================
   1. Global / Typography
   ========================================= */
:root {
    --primary-color: #abde5b;
    --secondary-color: #8b4432;
    --text-color: #333;
    --light-bg: #f9f9f9;
}

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

html {
    font-size: 16px;
    /* Base size */
}

body,
button,
input,
p,
label,
h1,
h2,
h3,
h4,
select,
textarea {
    font-family: 'Noto Sans', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 500;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

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

.center {
    text-align: center;
}

.right {
    text-align: right;
}

.left {
    text-align: left;
}

.space {
    margin-top: 4rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   3. Buttons
   ========================================= */
.btn {
    display: inline-block;
    padding: 0.8em 2em;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background-color: #9ac94e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: #fff;
    color: #abde5b;
    border: 2px solid #abde5b;
}

.btn-secondary:hover {
    background-color: #abde5b;
    color: #fff;
}

.btn-tertiary {
    background-color: #8b4432;
    color: white;
}

.btn-tertiary:hover {
    background-color: #73392a;
    color: white;
}

/* =========================================
   4. Header & Navigation (Refactored)
   ========================================= */
div#social {
    background-color: #f8f9fa;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    z-index: 1001;
    position: relative;
}

div#social .container {
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

div#social a {
    color: #666;
    font-size: 1.2rem;
}

div#social a:hover {
    color: #8b4432;
}

header {
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 999;
    position: sticky;
    top: 0;
    padding: 0.5rem 0;
}

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

.logo img {
    max-height: 60px;
}

.links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.links a {
    font-weight: 500;
    color: #333;
    font-size: 1.1rem;
}

.links a:hover,
.links a.active {
    color: #abde5b !important;
}

/* Nav specific button */
.btn-nav {
    background-color: #abde5b;
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-nav:hover {
    background-color: #9ac94e !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(171, 222, 91, 0.4);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

/* =========================================
   5. Components (Sections)
   ========================================= */
section {
    padding: 4rem 0;
}

section.header {
    background-size: cover;
    background-position: center;
    padding: 15rem 0;
    position: relative;
    color: white;
    /* Often headers have white text or boxes */
}

/* Overlay for better text readability */
section.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

section.header .box {
    position: relative;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 3rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1;
    color: #333;
}

section.header h1 {
    margin-bottom: 0.5rem;
}

section.header h2 {
    font-weight: normal;
    font-size: 1.2rem;
    color: #555;
}

/* =========================================
   6. Footer (New Modern Design - Light Theme)
   ========================================= */
footer.site-footer {
    background-color: #f9f9f9;
    /* Light BG */
    color: #555;
    /* Dark Text */
    padding: 4rem 0 2rem 0;
    margin-top: auto;
    font-size: 0.95rem;
    border-top: 1px solid #eee;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 3rem;
}

.footer-col h4 {
    color: #333;
    /* Dark Heading */
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #abde5b;
}

/* Brand Column */
.footer-logo {
    max-width: 150px;
    margin-bottom: 1.5rem;
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #666;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    /* White bg for icons */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    border-radius: 50%;
    color: #555;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #abde5b;
    color: white;
    transform: translateY(-3px);
    border-color: #abde5b;
}

/* Links & Contact Columns */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: #555;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #abde5b;
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: #555;
}

.contact-list i {
    color: #abde5b;
    margin-top: 0.2rem;
}

/* Support Links */
.support-links h5 {
    color: #333;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1rem;
}

.support-link {
    display: inline-block;
    background: white;
    color: #555 !important;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.support-link:hover {
    background: #abde5b;
    color: white !important;
    border-color: #abde5b;
    padding-left: 0.8rem !important;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: inherit;
    text-decoration: underline;
}

/* =========================================
   7. Responsive
   ========================================= */
@media screen and (max-width: 768px) {

    /* Mobile Menu */
    .menu-toggle {
        display: block;
    }

    .links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 5rem 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 998;
        display: block;
        /* Override header div block */
    }

    .links.active {
        right: 0;
    }

    .links ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .links ul li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 1rem;
    }

    .links ul li:last-child {
        border-bottom: none;
    }

    .btn-nav {
        display: block;
        text-align: center;
        width: 100%;
    }

    /* Layout Adjustments */
    section.header .box {
        margin: 0 1rem;
    }

    /* Footer Responsive */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-list li {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Distance Adoption Banner */
.distance-adoption-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #9ac94e 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    color: white;
    box-shadow: 0 10px 25px rgba(171, 222, 91, 0.3);
    position: relative;
    overflow: hidden;
}

.distance-adoption-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.da-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.da-text {
    flex: 2;
    min-width: 300px;
}

.da-text h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.da-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.da-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.da-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
}

.da-action {
    flex: 1;
    min-width: 250px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-white {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background-color: transparent;
    color: white;
}

.small-note {
    font-size: 0.85rem;
    margin-top: 10px;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .da-action {
        align-items: flex-end;
    }
}

@media (max-width: 767px) {
    .da-content {
        flex-direction: column;
        text-align: center;
    }

    .da-text h2 {
        justify-content: center;
    }

}

/* Reviews Page (Recensioni) */
.reviews-section {
    padding: 60px 20px;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.review-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 1.2rem;
}

.reviewer-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.stars {
    color: #ddd;
    font-size: 0.9rem;
}

.stars .active {
    color: #ffc107;
}

.review-body p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.review-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f9f9f9;
    color: #999;
    font-size: 0.85rem;
    text-align: right;
}
/* =========================================
   Legal pages (Privacy)
   ========================================= */
.legal-content {
    padding: 3em 2%;
}

.legal-content .container {
    max-width: 860px;
}

.legal-content h2 {
    font-size: 1.4rem;
    margin-top: 1.8em;
}

.legal-content h3 {
    font-size: 1.15rem;
    margin-top: 1.4em;
}

.legal-content ul {
    padding-left: 1.2em;
}
