﻿/* =========================================
   HEADER CINEMATICO
========================================= */

.mr-hero-header {
    position: relative;
    background-image: url('/assets/header.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
    background-color: #050505;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 28px rgba(0,0,0,0.45);
}

/* =========================================
   MENU SOPRA
========================================= */

.mr-topbar {
    padding-top: 18px;
    padding-bottom: 10px;
    background: linear-gradient( to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0) );
}

.mr-nav-wrap {
    width: 96%;
    max-width: 1700px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* MENU */

.mr-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 26px;
}

    .mr-nav-links a {
        color: #f5f5f5;
        text-decoration: none;
        font-family: 'Lato', sans-serif;
        font-size: 1rem;
        font-weight: 700;
        transition: color 0.2s ease, opacity 0.2s ease;
    }

        .mr-nav-links a:hover {
            color: #d4af37;
        }

.mr-highlight-link {
    color: #f0c15a !important;
}

.mr-social-link {
    color: #d2a84f !important;
}

/* LOGIN */

.mr-login-link {
    font-size: 1.05rem;
}

/* LOGOUT */

.mr-logout-btn {
    background: #7b1b1b;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 7px 12px;
    cursor: pointer;
    font-weight: 700;
}

/* =========================================
   BANDIERE
========================================= */

.mr-lang-wrapper {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 12px;
    background: linear-gradient( to top, rgba(0,0,0,0.70), rgba(0,0,0,0.25) );
}

.mr-lang-wrap {
    width: 96%;
    max-width: 1700px;
    margin: auto;
}

.mr-lang-select {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    overflow: hidden;
}

    .mr-lang-select a,
    .mr-lang-panel a {
        display: inline-flex;
    }

    .mr-lang-select img,
    .mr-lang-panel img {
        width: 18px;
        height: 12px;
        object-fit: cover;
        display: block;
        border-radius: 2px;
        opacity: 0.92;
        transition: transform 0.15s ease, opacity 0.15s ease;
    }

        .mr-lang-select img:hover,
        .mr-lang-panel img:hover {
            transform: scale(1.15);
            opacity: 1;
        }

/* =========================================
   MOBILE
========================================= */

.mr-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.mr-lang-mobile {
    display: none;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .mr-hero-header {
        min-height: 240px;
        background-size: cover;
    }

    .mr-nav-wrap {
        justify-content: space-between;
    }

    .mr-nav-toggle {
        display: block;
    }

    .mr-nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 12px;
        right: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: rgba(0,0,0,0.96);
        padding: 14px 18px;
        border-radius: 12px;
        z-index: 5000;
    }

        .mr-nav-links.open {
            display: flex;
        }

        .mr-nav-links a {
            width: 100%;
            padding: 10px 0;
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }

    .mr-lang-wrapper {
        display: none;
    }

    .mr-lang-mobile {
        display: block;
        text-align: center;
        padding-bottom: 10px;
    }

    .mr-lang-toggle {
        background: none;
        border: none;
        color: white;
        font-size: 1.4rem;
    }

    .mr-lang-panel {
        display: none;
        grid-template-columns: repeat(6,1fr);
        gap: 8px;
        padding: 10px;
        background: rgba(0,0,0,0.95);
    }

        .mr-lang-panel.open {
            display: grid;
        }

        .mr-lang-panel img {
            width: 18px;
            margin: auto;
        }
}
/* =========================================================
   MATTHAEUS RUBER
   BODY + BANNER STYLE 2026
========================================================= */

/* =========================================================
   BODY GENERALE
========================================================= */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient( to bottom, #f2eee8 0%, #ebe5dc 100%);
    color: #352d27;
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    line-height: 1.8;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

h1, h2, h3, h4, h5 {
    font-family: 'EB Garamond', serif;
    color: #4a2d16;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.35rem;
    margin-bottom: 0.9rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

p {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: #3b342d;
}

a {
    color: #7b3f18;
    text-decoration: none;
    transition: 0.2s ease;
}

    a:hover {
        color: #c18b3b;
    }

/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: 92%;
    max-width: 1240px;
    margin: 0 auto;
}

/* =========================================================
   CONTENUTO CENTRALE
========================================================= */

.contenuto {
    max-width: 980px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
}

/* =========================================================
   BOX / SEZIONI
========================================================= */

.box,
.blog-post,
.contact-box,
.comment-form-box,
.commento,
.comment,
.admin-box,
.admin-form {
    background: linear-gradient(to bottom, rgba(255,255,255,0.94), rgba(250,247,242,0.96));
    border-radius: 18px;
    box-shadow: 0 4px 22px rgba(0,0,0,0.06), 0 1px 0 rgba(255,255,255,0.7);
    border: 1px solid rgba(120,70,20,0.08);
}

/* =========================================================
   BLOG POST
========================================================= */

.blog-post {
    padding: 2.2rem;
    margin: 3rem 0;
}

.blog-media img,
.blog-media iframe {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.blog-testo {
    font-size: 1.08rem;
    line-height: 1.85;
}

/* =========================================================
   DATA BLOG
========================================================= */

.blog-data {
    color: #8a7358;
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* =========================================================
   BANNER ROSARIO
========================================================= */

.rosario-banner {
    background: linear-gradient( 135deg, #1a120c 0%, #2e1b10 22%, #5a3418 48%, #8b5a27 72%, #2b170d 100%);
    border-top: 1px solid rgba(255,220,170,0.15);
    border-bottom: 1px solid rgba(255,220,170,0.12);
    box-shadow: 0 8px 28px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.04);
    position: relative;
    overflow: hidden;
    padding: 22px 0;
}

    .rosario-banner::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at right, rgba(255,220,160,0.14), transparent 42%);
        pointer-events: none;
    }

.rosario-banner-inner {
    position: relative;
    z-index: 2;
    width: 94%;
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 26px;
}

.rosario-banner-image img {
    width: 140px;
    height: 88px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35), 0 0 12px rgba(255,210,120,0.10);
}

.rosario-banner-text {
    flex: 1;
}

.rosario-banner-title {
    font-family: 'EB Garamond', serif;
    color: #f7e4c0;
    font-size: 2.35rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

.rosario-banner-subtitle {
    font-family: 'Lato', sans-serif;
    color: #f0d2a3;
    font-size: 1.08rem;
    line-height: 1.6;
    font-style: italic;
}

/* =========================================================
   BOTTONI
========================================================= */

.btn,
.blog-btn,
.contact-button,
.comment-button,
.admin-btn {
    background: linear-gradient(to bottom, #8b5a27, #6f4218);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

    .btn:hover,
    .blog-btn:hover,
    .contact-button:hover,
    .comment-button:hover,
    .admin-btn:hover {
        transform: translateY(-1px);
        background: linear-gradient(to bottom, #a56b32, #7f4a1d);
    }

/* =========================================================
   FORM
========================================================= */

input,
textarea,
select,
.form-control,
.contact-input,
.contact-textarea,
.comment-input,
.comment-textarea {
    background: #fffdfa;
    border: 1px solid rgba(120,70,20,0.18);
    border-radius: 10px;
    padding: 0.7rem;
    font-size: 1rem;
    color: #2f2a24;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}

    input:focus,
    textarea:focus,
    select:focus {
        outline: none;
        border-color: #b47a35;
        box-shadow: 0 0 0 3px rgba(180,122,53,0.12);
    }

/* =========================================================
   FOOTER
========================================================= */

footer {
    background: linear-gradient(to bottom, #120c08 0%, #050505 100%);
    color: #ddd0bf;
    padding: 4rem 0 2rem 0;
    margin-top: 5rem;
    border-top: 1px solid rgba(255,220,170,0.08);
}

    footer h4 {
        color: #f0c98a;
    }

    footer a {
        color: #e0d0bb;
    }

        footer a:hover {
            color: #f0c98a;
        }

.copy {
    margin-top: 2rem;
    color: #8c7a67;
    font-size: 0.9rem;
    text-align: center;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2.3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .contenuto {
        padding: 2rem 1rem;
    }

    .blog-post {
        padding: 1.4rem;
    }

    .rosario-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .rosario-banner-image img {
        width: 100%;
        max-width: 260px;
        height: auto;
    }

    .rosario-banner-title {
        font-size: 1.9rem;
    }

    .rosario-banner-subtitle {
        font-size: 1rem;
    }
}
/* =========================================================
   CONTENUTO BLOG REALE
========================================================= */

.contenuto {
    width: 92%;
    max-width: 1050px;
    margin: 26px auto 50px auto;
    padding: 0;
}

/* =========================================================
   BOX PRINCIPALE
========================================================= */

.contact-box {
    background: linear-gradient( to bottom, rgba(255,255,255,0.94), rgba(248,245,240,0.98));
    border-radius: 26px;
    padding: 34px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07), 0 1px 0 rgba(255,255,255,0.9);
    border: 1px solid rgba(120,70,20,0.08);
}

/* =========================================================
   TITOLO BLOG PRINCIPALE
========================================================= */

.contenuto h1 {
    font-size: 3rem;
    line-height: 1.12;
    color: #5b3a2b;
    margin-bottom: 22px;
    max-width: 850px;
}

/* =========================================================
   TITOLI ARTICOLI
========================================================= */

.contenuto h2 {
    font-size: 2.35rem;
    line-height: 1.18;
    color: #6b4334;
    margin-top: 28px;
    margin-bottom: 18px;
}

/* =========================================================
   TESTI
========================================================= */

.contenuto p {
    font-size: 1.08rem;
    line-height: 1.95;
    color: #443a34;
}

/* =========================================================
   IMMAGINI
========================================================= */

.contenuto img {
    width: 100%;
    border-radius: 22px;
    display: block;
    margin: 28px auto;
    box-shadow: 0 18px 50px rgba(0,0,0,0.16);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

    .contenuto img:hover {
        transform: scale(1.01);
        box-shadow: 0 24px 60px rgba(0,0,0,0.22);
    }

/* =========================================================
   DATA ARTICOLI
========================================================= */

.contenuto em,
.contenuto .data {
    color: #8a7461;
    font-style: italic;
}

/* =========================================================
   SPAZI TRA ARTICOLI
========================================================= */

.contenuto hr {
    border: none;
    height: 1px;
    background: linear-gradient( to right, transparent, rgba(120,70,20,0.18), transparent);
    margin: 50px 0;
}

/* =========================================================
   LINK
========================================================= */

.contenuto a {
    color: #7d4b22;
    font-weight: 700;
}

    .contenuto a:hover {
        color: #b67a3b;
    }

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .contenuto {
        width: 94%;
        margin-top: 16px;
    }

    .contact-box {
        padding: 20px;
    }

    .contenuto h1 {
        font-size: 2.25rem;
    }

    .contenuto h2 {
        font-size: 1.8rem;
    }

    .contenuto p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .contenuto img {
        border-radius: 16px;
    }
}
/* =========================================================
   PAGINA CONTATTI
========================================================= */

.contact-box {
    margin-bottom: 34px;
}

/* =========================================================
   RIGHE FORM
========================================================= */

.contact-row {
    margin-bottom: 24px;
}

    /* =========================================================
   LABEL
========================================================= */

    .contact-row label {
        display: block;
        margin-bottom: 10px;
        font-family: 'EB Garamond', serif;
        font-size: 1.35rem;
        font-weight: 700;
        color: #5d3d2c;
    }

/* =========================================================
   INPUT
========================================================= */

.contact-input,
.contact-textarea {
    width: 100%;
    background: linear-gradient( to bottom, rgba(255,255,255,0.96), rgba(250,247,243,0.98));
    border: 1px solid rgba(120,70,20,0.14);
    border-radius: 14px;
    padding: 15px 16px;
    font-size: 1.02rem;
    font-family: 'Lato', sans-serif;
    color: #342b25;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.03);
}

/* =========================================================
   TEXTAREA
========================================================= */

.contact-textarea {
    min-height: 220px;
    resize: vertical;
    line-height: 1.8;
}

    /* =========================================================
   FOCUS
========================================================= */

    .contact-input:focus,
    .contact-textarea:focus {
        outline: none;
        border-color: rgba(180,122,53,0.55);
        background: #fffdf9;
        box-shadow: 0 0 0 4px rgba(180,122,53,0.10), inset 0 1px 4px rgba(0,0,0,0.02);
    }

/* =========================================================
   BOTTONE
========================================================= */

.contact-submit {
    margin-top: 12px;
}

.contact-button {
    background: linear-gradient( 135deg, #7a4b21 0%, #9a6631 52%, #6f4119 100%);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 15px 34px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}

    .contact-button:hover {
        transform: translateY(-2px);
        filter: brightness(1.06);
        box-shadow: 0 12px 30px rgba(0,0,0,0.22);
    }

/* =========================================================
   ERRORE
========================================================= */

.contact-error {
    display: block;
    margin-bottom: 26px;
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient( to bottom, rgba(120,20,20,0.08), rgba(180,40,40,0.10));
    border: 1px solid rgba(160,50,50,0.18);
    color: #7b1d1d;
    font-weight: 700;
}

/* =========================================================
   TESTI PAGINA CONTATTI
========================================================= */

.contact-box p {
    font-size: 1.05rem;
    line-height: 1.9;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .contact-box {
        padding: 20px;
    }

    .contact-row label {
        font-size: 1.18rem;
    }

    .contact-input,
    .contact-textarea {
        padding: 13px 14px;
        font-size: 1rem;
    }

    .contact-button {
        width: 100%;
        padding: 15px 18px;
    }
}