/* 
  Style for Beatrice Bellomo - Biologa Nutrizionista 
  Colors: Bordeaux & Crema
*/

:root {
    /* Color Palette */
    --bordeaux-primary: #800020;
    /* Classico bordeaux */
    --bordeaux-dark: #5a0016;
    --bordeaux-light: #9e1b3d;

    --crema-bg: #FDF5E6;
    /* Sfondo principale color panna */
    --crema-card: #F3E8D6;
    /* Sfondo secondario per sezioni */
    --crema-accent: #E0CEBB;
    --rosa-accent: #B84360;
    --rosa-soft: #F7EAEB;

    --text-main: #332B2A;
    /* Testo scuro ma non nero, intonato ai toni caldi */
    --text-light: #665D5B;
    --white: #ffffff;

    /* Typography */
    --font-heading: Georgia, 'Times New Roman', serif;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Effects & Spacing */
    --shadow-soft: 0 10px 30px rgba(128, 0, 32, 0.08);
    --shadow-hover: 0 15px 40px rgba(128, 0, 32, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 92px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--crema-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--bordeaux-primary);
    font-weight: 600;
    line-height: 1.2;
}

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

strong,
b {
    color: var(--bordeaux-primary);
    font-weight: 600;
}

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

.fas,
.far,
.fab {
    align-items: center;
    display: inline-flex;
    font-style: normal;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
}

.fas::before,
.far::before,
.fab::before {
    display: inline-block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    margin-bottom: 22px;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--bordeaux-primary);
    border-radius: 2px;
}

.section-heading .section-title::after,
.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

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

.bg-soft {
    background: linear-gradient(180deg, var(--white) 0%, var(--rosa-soft) 100%);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn:focus-visible,
.nav-link:focus-visible,
.menu-toggle:focus-visible,
.tab-btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(109, 139, 116, 0.55);
    outline-offset: 3px;
}

.btn-primary {
    background-color: var(--bordeaux-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.2);
}

.btn-primary:hover {
    background-color: var(--bordeaux-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(128, 0, 32, 0.3);
    color: var(--white);
}

.btn-crema {
    background-color: var(--crema-bg);
    color: var(--bordeaux-primary);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--bordeaux-primary);
    border-color: var(--bordeaux-primary);
}

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

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: var(--bordeaux-dark);
    padding: 20px 0;
}

.header.scrolled {
    background: var(--bordeaux-primary);
    box-shadow: var(--shadow-soft);
    padding: 15px 0;
}

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

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

.logo-icon {
    width: 60px;
    height: 60px;
    color: var(--crema-bg);
    flex-shrink: 0;
    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: rotate(5deg) scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--crema-bg);
}

.logo-title {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--crema-accent);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--crema-bg);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--white);
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--crema-bg);
    transition: var(--transition);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-start;
    position: relative;
    background: linear-gradient(135deg, rgba(253, 251, 247, 0.94) 0%, rgba(245, 239, 235, 0.72) 100%),
        url('img/background.jpg') center/cover no-repeat;
    padding-top: 170px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, transparent, rgba(253, 251, 247, 0.8) 60%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0;
}

.hero-kicker {
    color: var(--rosa-accent);
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(1.3rem, 6.8vw, 3.8rem);
    margin-bottom: 1.5rem;
    color: var(--bordeaux-primary);
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-image img {
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 2;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.about-lead {
    color: var(--bordeaux-primary);
    font-size: 1.15rem;
    font-weight: 600;
}

.image-accent {
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--bordeaux-light);
    border-radius: var(--radius-lg);
    z-index: 1;
}

.about-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--bordeaux-light);
}

.about-content p {
    margin-bottom: 1rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background-color: var(--crema-card);
    border: 1px solid rgba(128, 0, 32, 0.08);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    background-color: var(--white);
}

.feature-icon {
    align-items: center;
    background: var(--rosa-soft);
    border-radius: 50%;
    color: var(--rosa-accent);
    display: flex;
    font-size: 1.35rem;
    height: 48px;
    justify-content: center;
    margin-bottom: 0.5rem;
    width: 48px;
}

/* Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.service-card {
    background-color: var(--white);
    border: 1px solid rgba(128, 0, 32, 0.08);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    min-height: 240px;
    padding: 1.75rem;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    align-items: center;
    background-color: var(--rosa-soft);
    border-radius: 50%;
    color: var(--bordeaux-primary);
    display: flex;
    font-size: 1.25rem;
    height: 48px;
    justify-content: center;
    margin-bottom: 1.25rem;
    width: 48px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-light);
}

/* Process */
.process-container {
    align-items: start;
    display: grid;
    gap: 4rem;
    grid-template-columns: 0.9fr 1.1fr;
}

.process-copy {
    position: sticky;
    top: 120px;
}

.process-copy .btn {
    margin-top: 1.5rem;
}

.process-steps {
    display: grid;
    gap: 1rem;
}

.process-step {
    background-color: rgba(255, 255, 255, 0.82);
    border-left: 4px solid var(--rosa-accent);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
}

.process-step span {
    color: var(--rosa-accent);
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Location / Map Section */
.location-container {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    height: 100%;
    min-height: 100%;
}

.map-wrapper iframe,
.map-placeholder {
    display: block;
    height: 100%;
    width: 100%;
}

.map-placeholder {
    align-items: center;
    background: linear-gradient(135deg, var(--rosa-soft), var(--white));
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.map-placeholder i {
    color: var(--rosa-accent);
    font-size: 3rem;
}

.map-placeholder p {
    max-width: 420px;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
}

.location-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.info-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-card p {
    margin-bottom: 0.5rem;
}

.highlight-card {
    background-color: var(--bordeaux-primary);
    color: var(--white);
}

.highlight-card h3 {
    color: var(--crema-bg);
}

/* Location Tabs */
.location-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 24px;
    background-color: transparent;
    border: 2px solid var(--bordeaux-primary);
    border-radius: 50px;
    color: var(--bordeaux-primary);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    background-color: rgba(128, 0, 32, 0.1);
}

.tab-btn.active {
    background-color: var(--bordeaux-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.2);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-methods {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    min-width: 0;
}

.contact-method a,
.contact-method span:last-child {
    overflow-wrap: anywhere;
}

.contact-method .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--crema-card);
    border-radius: 50%;
    color: var(--bordeaux-primary);
    font-size: 1.5rem;
}

.contact-form-wrapper {
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    position: relative;
}


.form-title {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #faf9f7;
}

.privacy-check {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
}

.privacy-check input {
    flex: 0 0 auto;
    margin-top: 0.25rem;
    width: auto;
}

.privacy-check label {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 0;
}

.honeypot {
    left: -9999px;
    opacity: 0;
    position: absolute;
}

.form-feedback {
    color: var(--text-light);
    font-weight: 600;
    margin-top: 1rem;
    min-height: 1.5rem;
}

.form-feedback.success {
    color: var(--rosa-accent);
}

.form-feedback.error {
    color: var(--bordeaux-primary);
}

/* Legal Modals */
.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.legal-modal.active {
    display: flex;
}

.legal-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(51, 43, 42, 0.6);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.legal-modal-content {
    position: relative;
    background-color: var(--crema-bg);
    width: 100%;
    max-width: 700px;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 10;
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    animation: modalFadeIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: var(--bordeaux-primary);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.legal-modal-close:hover {
    color: var(--bordeaux-dark);
    transform: scale(1.15);
}

.legal-modal-content .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.legal-modal-content .section-title::after {
    display: none;
}

.legal-modal-body {
    overflow-y: auto;
    padding-right: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    text-align: left;
}

.legal-modal-body p {
    margin-bottom: 1.25rem;
    color: var(--text-light);
}

.legal-modal-body strong {
    color: var(--bordeaux-primary);
}

.legal-modal-body::-webkit-scrollbar {
    width: 6px;
}

.legal-modal-body::-webkit-scrollbar-track {
    background: var(--crema-card);
    border-radius: 10px;
}

.legal-modal-body::-webkit-scrollbar-thumb {
    background: var(--bordeaux-primary);
    border-radius: 10px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--bordeaux-primary);
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
    background-color: var(--white);
}

/* Footer */
.footer {
    background-color: var(--bordeaux-dark);
    color: var(--white);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--crema-bg);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a,
.footer-legal a {
    color: var(--crema-accent);
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-legal {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translate(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        padding-top: 140px;
    }

    .about-container,
    .location-container,
    .contact-container,
    .process-container,
    .legal-container {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }



    .image-accent {
        display: none;
    }

    .process-copy {
        position: static;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        height: 100vh;
        background-color: var(--bordeaux-dark);
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 2rem;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
    }



    .hero-buttons {
        flex-direction: column;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

    .section {
        padding: 76px 0;
    }

    .slide-in-left,
    .slide-in-right {
        transform: translateY(30px);
    }

    .service-grid,
    .location-grid {
        grid-template-columns: 1fr;
    }

    .map-wrapper {
        aspect-ratio: 4 / 3;
        height: auto;
        min-height: 320px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 0 18px;
    }

    .logo-name {
        font-size: 1.25rem;
    }

    .logo-title {
        font-size: 0.72rem;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
    }

    .hero {
        min-height: 640px;
        padding-top: 130px;
    }

    .btn-large,
    .btn {
        width: 100%;
    }

    .location-actions {
        flex-direction: column;
    }
}