/* ==========================================================================
   Marianna Messa — mariannamessa.it
   ========================================================================== */

:root {
    --color-teal-dark: #003d4d;
    --color-teal: #004b57;
    --color-teal-mid: #0a5a68;
    --color-teal-card: #0d6575;
    --color-teal-light: #e8f2f4;
    --color-gold: #d4af6d;
    --color-white: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.85);

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', system-ui, sans-serif;

    --container: 1200px;
    --radius: 16px;
    --radius-pill: 999px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-teal-dark);
    background: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    line-height: 1.2;
    margin: 0 0 1rem;
}

p { margin: 0 0 1rem; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

.section {
    padding: 5rem 0;
}

.section--light {
    background: var(--color-teal-light);
    color: var(--color-teal-dark);
}

.section__header {
    margin-bottom: 3rem;
}

.section__header--center {
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
    margin-bottom: 3rem;
}

.section__header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.section__header p {
    font-size: 1.05rem;
    opacity: 0.9;
}

.section__eyebrow {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.section__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.section__divider::before,
.section__divider::after {
    content: '';
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}

.section__divider span {
    width: 24px;
    height: 24px;
    color: var(--color-white);
}

.icon-inline {
    display: inline-flex;
    width: 1.1em;
    height: 1.1em;
    vertical-align: middle;
}

.icon-inline svg,
.hero__trust-icon svg,
.hero__tag span svg,
.keyfact-card__icon svg,
.area-card__icon svg,
.locations__pin svg,
.section__divider span svg {
    width: 100%;
    height: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
    white-space: nowrap;
}

.btn svg {
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
}

.btn--primary {
    background: var(--color-white);
    color: var(--color-teal-dark);
    border-color: var(--color-white);
}

.btn--primary:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
}

.btn--small {
    padding: 0.55rem 1.25rem;
    font-size: 0.8rem;
}

.btn--large {
    padding: 1.1rem 2.25rem;
    font-size: 1rem;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 61, 77, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 1rem;
}

.site-logo img {
    height: 56px;
    width: auto;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-nav a {
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color var(--transition);
}

.site-nav a:hover { color: var(--color-gold); }

.site-nav .btn--primary {
    color: var(--color-teal-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition);
}

.mobile-nav {
    background: var(--color-teal-dark);
    padding: 1rem 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-nav a {
    color: var(--color-white);
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #004e5b;
    background-image: url('../images/bgmm-site.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
    padding: 7rem 0 4rem;
    overflow: hidden;
}

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

.hero h1 {
    font-size: clamp(2rem, 3.5vw, 2.85rem);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero__lead {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero__trust {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.5rem;
    margin-bottom: 2rem;
}

.hero__trust li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.hero__trust-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    opacity: 0.9;
}

.hero__reviews {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.hero__stars {
    color: var(--color-gold);
    letter-spacing: 2px;
}

.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero__portrait-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__portrait-base {
    display: none;
}

.hero__portrait {
    max-height: 85vh;
    width: auto;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.hero__tags {
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero__tag {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 30, 38, 0.75);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
    padding: 0.6rem 1.1rem;
    font-size: 0.75rem;
    max-width: 240px;
    line-height: 1.3;
}

.hero__tag span {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.hero__scroll {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    color: var(--color-white);
    font-size: 0.8rem;
    opacity: 0.8;
    transition: opacity var(--transition);
}

.hero__scroll:hover { opacity: 1; }

.hero__scroll-arrow {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Key Facts */
.keyfacts {
    background: var(--color-teal);
    color: var(--color-white);
}

.keyfacts .section__header h2 {
    text-transform: uppercase;
}

.keyfacts__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.keyfact-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: background var(--transition);
}

.keyfact-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.keyfact-card__icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 12px;
}

.keyfact-card__divider {
    width: 1px;
    align-self: stretch;
    background: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.keyfact-card h3 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.4rem;
}

.keyfact-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Narrative */
.narrative {
    background: var(--color-teal);
    color: var(--color-white);
}

.narrative__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.narrative h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.narrative p {
    color: var(--color-text-muted);
    font-size: 1rem;
}

.narrative__visual {
    position: relative;
}

.narrative__image-wrap {
    border-radius: 120px 20px 120px 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.narrative__decor {
    position: absolute;
    top: -20px;
    left: -30px;
    width: 120px;
    height: 120px;
    opacity: 0.3;
    color: var(--color-white);
}

/* About */
.about {
    background: var(--color-teal);
    color: var(--color-white);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about__visual img {
    max-height: 600px;
    width: auto;
    margin-inline: auto;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.25));
}

.about h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about p {
    color: var(--color-text-muted);
}

/* Areas */
.areas {
    background: var(--color-teal-dark);
    color: var(--color-white);
}

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

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

.area-card__image {
    margin-bottom: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.area-card__image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 1rem;
}

.area-card__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-teal-mid);
    border-radius: 50%;
    padding: 8px;
}

.area-card h3 {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.area-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

/* Method */
.method__illustration {
    margin-bottom: 2.5rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.method__illustration img {
    width: 100%;
}

.method__subtitle {
    font-style: italic;
    color: var(--color-teal-mid);
    font-size: 1.1rem;
}

.method__text {
    max-width: 800px;
    margin-inline: auto;
    text-align: center;
}

.method__text p {
    font-size: 1rem;
    line-height: 1.75;
}

/* Reviews */
.reviews {
    background: var(--color-teal-dark);
    color: var(--color-white);
}

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

.review-card {
    background: var(--color-teal-card);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-card__quote {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-family: var(--font-serif);
}

.review-card__stars {
    color: var(--color-gold);
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.review-card blockquote {
    margin: 0 0 1.25rem;
    flex: 1;
}

.review-card blockquote p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.review-card footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.review-card cite {
    font-style: normal;
    font-weight: 600;
    font-size: 0.9rem;
}

.review-card__avatar {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* Locations */
.locations__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: start;
}

.locations h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    text-transform: uppercase;
    color: var(--color-teal-dark);
}

.locations__subtitle {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.locations__divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.locations__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 61, 77, 0.2);
}

.locations__divider span {
    width: 24px;
    height: 24px;
    color: var(--color-teal);
}

.locations__intro {
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.locations__list li {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0, 61, 77, 0.1);
    font-size: 0.9rem;
}

.locations__pin {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-teal);
    margin-top: 2px;
}

.locations__list strong {
    display: inline-block;
    min-width: 140px;
    font-weight: 700;
}

.locations__map img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* FAQ */
.faq {
    background: var(--color-teal);
    color: var(--color-white);
}

.faq .section__divider::before,
.faq .section__divider::after {
    background: rgba(255, 255, 255, 0.3);
}

.faq__list {
    max-width: 800px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq__item {
    background: var(--color-teal-mid);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    list-style: none;
}

.faq__question::-webkit-details-marker { display: none; }

.faq__toggle::before {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
}

.faq__item[open] .faq__toggle::before {
    content: '−';
}

.faq__answer {
    padding: 0 1.5rem 1.25rem;
}

.faq__answer p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* Final CTA */
.cta-final {
    background: var(--color-teal-dark);
    color: var(--color-white);
    text-align: center;
}

.cta-final__inner {
    max-width: 760px;
}

.cta-final h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.cta-final p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.cta-final__highlight {
    font-weight: 600;
    color: var(--color-white) !important;
    margin: 1.5rem 0 2rem !important;
}

/* Footer */
.site-footer {
    background: #002a35;
    color: var(--color-white);
    padding: 3rem 0 2rem;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.site-footer__brand img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.site-footer__brand p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.site-footer h2 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.site-footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer__links a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.site-footer__links a:hover { color: var(--color-gold); }

.site-footer__legal {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: right;
}

.site-footer__legal a {
    color: var(--color-gold);
}

/* Privacy page */
.privacy-page {
    padding: 8rem 0 4rem;
}

.privacy-page__header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 61, 77, 0.15);
}

.privacy-page h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--color-teal-dark);
}

.privacy-page h2 {
    font-size: 1.35rem;
    color: var(--color-teal);
    margin-top: 2rem;
}

.privacy-page ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-page li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.privacy-page a {
    color: var(--color-teal-mid);
    text-decoration: underline;
}

.privacy-page__back {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 61, 77, 0.15);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero__grid,
    .narrative__grid,
    .about__grid,
    .locations__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero__visual { order: -1; }

    .hero__portrait {
        max-height: 50vh;
        margin-inline: auto;
    }

    .keyfacts__grid { grid-template-columns: 1fr; }

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

    .reviews__grid { grid-template-columns: 1fr; }

    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__legal {
        grid-column: 1 / -1;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .site-nav { display: none; }

    .nav-toggle { display: flex; }

    .hero { min-height: auto; padding-top: 6rem; }

    .hero__visual {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero__portrait-wrap {
        width: 100%;
        align-items: center;
    }

    .hero__portrait {
        max-height: 42vh;
        margin-inline: auto;
        position: relative;
        z-index: 2;
    }

    .hero__portrait-base {
        display: block;
        width: min(78%, 300px);
        height: 24px;
        background: #003e4d;
        border-radius: 0 0 14px 14px;
        margin-top: -8px;
        position: relative;
        z-index: 1;
        box-shadow: 0 6px 20px rgba(0, 30, 38, 0.35);
    }

    .hero__tags {
        position: static;
        transform: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 340px;
        margin-top: 1.5rem;
        gap: 0.75rem;
    }

    .hero__tag {
        max-width: none;
        width: 100%;
    }

    .hero__trust { grid-template-columns: 1fr; }

    .hero__cta { flex-direction: column; }

    .hero__cta .btn { justify-content: center; }

    .areas__grid { grid-template-columns: 1fr; }

    .keyfact-card { flex-direction: column; text-align: center; }

    .keyfact-card__divider {
        width: 60px;
        height: 1px;
        align-self: center;
    }

    .about__visual { order: -1; }

    .locations__list strong {
        min-width: auto;
        display: block;
    }

    .site-footer__inner { grid-template-columns: 1fr; }

    .section { padding: 3.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .hero__scroll-arrow { animation: none; }

    .btn:hover { transform: none; }
}
