/*
Theme Name: Nuritalia Custom
Theme URI: https://nuritalia.it
Author: Nuritalia
Description: Tema WordPress personalizzato sviluppato da zero per Nuritalia.
Version: 2.0
Text Domain: nuritalia
*/

/* =========================================================
   VARIABILI
========================================================= */

:root {
    --bg-main: #fdf5f2;
    --bg-secondary: #fdf5f2;
    --bg-footer: #fdf5f2;

    --text-main: #800020;
    --text-secondary: #800020;
    --text-muted: #800020;
    --text-footer: #D2AE65;

    --accent: #800020;
    --border: rgba(0, 0, 0, 0.10);

    --container: 1240px;
}


/* =========================================================
   RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

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

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


/* =========================================================
   CONTAINER
========================================================= */

.container,
.header-container,
.hero-container,
.footer-container {
    width: min(var(--container), 92%);
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;

    background: rgba(255, 245, 245, 0.94);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid var(--border);

    transition:
        background 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 245, 245, 0.98);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.header-container {
    min-height: 82px;

    display: flex;
    align-items: center;

    position: relative;
}


/* =========================================================
   LOGO
========================================================= */

.site-logo img {
    display: block;

    height: 70px;
    width: auto;

    max-width: 200px;

    object-fit: contain;
}

.site-logo span {
    color: var(--accent);
}


/* =========================================================
   NAVIGATION
========================================================= */

.main-navigation {
    position: absolute !important;

    left: 55% !important;
    top: 50% !important;

    transform: translate(-50%, -50%) !important;
}


.main-navigation ul {
    list-style: none;

    display: flex;
    align-items: center;

    gap: 24px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.main-navigation a {
    white-space: nowrap;
}


.main-navigation a {
    position: relative;

    color: var(--text-main);

    font-size: 14px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.5px;

    transition: color 0.2s ease;
}

.main-navigation a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--accent);

    transition: width 0.25s ease;
}

.main-navigation a:hover {
    color: var(--accent);
}

.main-navigation a:hover::after {
    width: 100%;
}


/* =========================================================
   MOBILE BUTTON
========================================================= */

.menu-toggle {
    display: none;

    border: 0;
    background: transparent;

    color: var(--text-main);

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 720px;
    padding-top: 82px;

    display: flex;
    align-items: center;

    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
}

/* Regolazione dell'inquadratura su smartphone */
@media (max-width: 850px) {
    .hero {
        min-height: 650px;
        padding-top: 70px;
        background-position: center 30%;
    }
}

/* =========================================================
   SECTIONS
========================================================= */

.section {
    padding: 110px 0;
}

.section-header {
    margin-bottom: 55px;

    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;
}

.section-header h2 {
    font-size: clamp(36px, 5vw, 58px);

    line-height: 1;

    letter-spacing: -3px;
}

.section-header p {
    max-width: 400px;

    color: var(--text-muted);

    font-size: 15px;
}

/* =========================================================
   POSTS GRID
========================================================= */

.posts-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}

.post-card {
    overflow: hidden;

    background: var(--bg-secondary);

    border: 1px solid var(--border);

    border-radius: 8px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.post-card:hover {
    transform: translateY(-7px);

    border-color: rgba(215, 25, 32, 0.35);

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.10);
}

.post-image {
    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #eeeeee;
}

.post-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

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

.post-content {
    padding: 26px;
}

.post-meta {
    margin-bottom: 10px;

    color: var(--accent);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1px;
    text-transform: uppercase;
}

.post-title {
    margin-bottom: 12px;

    color: var(--text-main);

    font-size: 23px;

    line-height: 1.15;

    letter-spacing: -0.5px;
}

.post-excerpt {
    color: var(--text-muted);

    font-size: 14px;

    line-height: 1.65;
}


/* =========================================================
   PAGINATION
========================================================= */

.pagination {
    margin-top: 60px;

    display: flex;

    justify-content: center;
    align-items: center;

    gap: 8px;
}

.pagination a,
.pagination span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;

    padding: 0 12px;

    background: var(--bg-secondary);

    border: 1px solid var(--border);

    border-radius: 4px;

    font-size: 14px;
    font-weight: 700;
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination .current {
    background: var(--accent);

    color: #ffffff;

    border-color: var(--accent);
}


/* =========================================================
   SINGLE / PAGE
========================================================= */

.single-header {
    padding-top: 170px;
    padding-bottom: 65px;
}

.single-header h1 {
    max-width: 950px;

    font-size: clamp(42px, 7vw, 82px);

    line-height: 0.98;

    letter-spacing: -4px;
}

.single-meta {
    margin-top: 20px;

    color: var(--text-muted);

    font-size: 14px;
}

.single-content {
    max-width: 850px;

    margin: 0 auto;

    padding-bottom: 110px;
}

.single-content p {
    margin-bottom: 25px;

    color: var(--text-secondary);

    font-size: 18px;

    line-height: 1.8;
}

.single-content h2,
.single-content h3,
.single-content h4 {
    margin-top: 45px;
    margin-bottom: 18px;

    line-height: 1.2;
}

.single-content h2 {
    font-size: 34px;
}

.single-content h3 {
    font-size: 27px;
}

.single-content img {
    width: 100%;

    margin: 35px 0;

    border-radius: 8px;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding: 50px 0;

    background: var(--bg-footer);

    border-top: 1px solid var(--border);
}

.site-footer .footer-container {
    width: min(var(--container), 92%);

    margin: 0 auto;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;
}

.site-footer .footer-logo-link {
    display: block;

    width: 90px !important;
    height: 90px !important;

    margin: 0 auto;
}

.site-footer .footer-logo {
    display: block;

    width: 90px !important;
    height: 90px !important;

    max-width: 90px !important;
    max-height: 90px !important;

    margin: 0 auto;

    object-fit: contain;
}


/* =========================================================
   FOOTER MOTTO
========================================================= */

.site-footer .footer-motto,
.site-footer p.footer-motto {
    margin: 12px 0 0 !important;

    color: var(--text-footer) !important;

    font-size: 14px !important;

    line-height: 1.5;

    text-align: center;
}


/* =========================================================
   FOOTER LINKS
========================================================= */

.footer-links {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 15px 25px;

    margin-top: 30px;
}

.footer-links a {
    color: var(--text-main);

    font-size: 13px;
    font-weight: 700;

    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);

    text-decoration: underline;
}


/* =========================================================
   404
========================================================= */

.error-page {
    min-height: 80vh;

    padding-top: 100px;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;
}

.error-page h1 {
    margin-bottom: 10px;

    color: var(--accent);

    font-size: clamp(80px, 15vw, 160px);

    line-height: 1;

    letter-spacing: -8px;
}

.error-page p {
    margin-bottom: 30px;

    color: var(--text-muted);
}


/* =========================================================
   VIRTUAL TRY-ON
========================================================= */

.tryon-page {
    min-height: 100vh;
}

.tryon-hero {
    padding-top: 180px;
    padding-bottom: 80px;

    background:
        radial-gradient(
            circle at 85% 45%,
            rgba(128, 0, 32, 0.10),
            transparent 30%
        ),
        var(--bg-main);
}

.tryon-hero h1 {
    margin: 0 0 25px;

    font-size: clamp(55px, 9vw, 110px);

    line-height: 0.95;

    letter-spacing: -6px;

    font-weight: 900;
}

.tryon-hero h1 span {
    color: var(--accent);
}

.tryon-hero p {
    max-width: 600px;

    color: var(--text-secondary);

    font-size: 18px;
}

.tryon-section {
    padding: 70px 0 120px;
}

.tryon-box {
    max-width: 1100px;

    margin: 0 auto;

    padding: 45px;

    background: var(--bg-secondary);

    border: 1px solid var(--border);

    border-radius: 12px;
}

.tryon-intro {
    margin-bottom: 40px;
}

.tryon-intro h2 {
    margin-bottom: 10px;

    font-size: 38px;

    letter-spacing: -1.5px;
}

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

.tryon-options {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 24px;
}

.tryon-option {
    min-height: 360px;

    padding: 35px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    background: #ffffff;

    border: 1px solid var(--border);

    border-radius: 10px;

    color: var(--text-main);

    cursor: pointer;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.tryon-option:hover {
    transform: translateY(-5px);

    border-color: var(--accent);

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.10);
}

.tryon-option strong {
    margin-top: 25px;

    font-size: 21px;
}

.tryon-option span {
    margin-top: 8px;

    color: var(--text-muted);

    font-size: 14px;
}


/* =========================================================
   MANNEQUIN
========================================================= */

.mannequin-preview {
    width: 170px;
    height: 210px;

    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;
}

.mannequin-head {
    width: 58px;
    height: 58px;

    border-radius: 50%;

    background: #d8b09b;
}

.mannequin-neck {
    width: 25px;
    height: 25px;

    background: #d8b09b;
}

.mannequin-body {
    width: 130px;
    height: 125px;

    position: relative;

    background: #222;

    border-radius: 45px 45px 20px 20px;
}

.shirt {
    position: absolute;

    top: 48px;
    left: 50%;

    transform: translateX(-50%);

    color: #ffffff;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1px;
}


/* =========================================================
   PERSONAL ICON
========================================================= */

.personal-icon {
    width: 120px;
    height: 120px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(128, 0, 32, 0.08);

    font-size: 50px;
}


/* =========================================================
   TRY-ON PANELS
========================================================= */

.tryon-result,
.tryon-consent,
.tryon-upload {
    margin-top: 35px;

    padding: 35px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: #ffffff;
}

.result-header,
.consent-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}

.result-header h2,
.consent-header h2 {
    font-size: 32px;

    letter-spacing: -1px;
}

.tryon-close {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    border: 1px solid var(--border);

    background: transparent;

    border-radius: 50%;

    color: var(--text-main);

    font-size: 25px;

    cursor: pointer;

    transition: 0.2s ease;
}

.tryon-close:hover {
    background: var(--accent);

    color: #ffffff;

    border-color: var(--accent);
}


/* =========================================================
   MANNEQUIN STAGE
========================================================= */

.mannequin-stage {
    min-height: 600px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle,
            rgba(128, 0, 32, 0.08),
            transparent 60%
        );

    border-radius: 10px;
}

.large-mannequin {
    width: 260px;

    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;
}

.large-head {
    width: 95px;
    height: 95px;

    border-radius: 50%;

    background: #d8b09b;
}

.large-neck {
    width: 40px;
    height: 45px;

    background: #d8b09b;
}

.large-body {
    width: 220px;
    height: 270px;

    position: relative;

    background: #222;

    border-radius: 70px 70px 25px 25px;
}

.large-shirt {
    position: absolute;

    top: 105px;
    left: 50%;

    transform: translateX(-50%);

    color: #ffffff;

    font-size: 18px;
    font-weight: 900;

    letter-spacing: 2px;
}

.large-legs {
    width: 145px;
    height: 170px;

    background:
        linear-gradient(
            to right,
            #333 0%,
            #333 46%,
            transparent 46%,
            transparent 54%,
            #333 54%,
            #333 100%
        );
}


/* =========================================================
   CONSENT
========================================================= */

.tryon-consent p {
    margin-bottom: 15px;

    color: var(--text-secondary);
}

.policy-link {
    display: inline-block;

    margin: 5px 0 25px;

    color: var(--accent);

    font-weight: 700;
}

.policy-link:hover {
    text-decoration: underline;
}

.consent-checkbox {
    margin: 10px 0 25px;

    display: flex;

    align-items: flex-start;

    gap: 12px;

    cursor: pointer;
}

.consent-checkbox input {
    width: 18px;
    height: 18px;

    margin-top: 3px;

    accent-color: var(--accent);

    cursor: pointer;
}

.hero-button:disabled {
    opacity: 0.45;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* =========================================================
   UPLOAD
========================================================= */

.upload-area {
    min-height: 220px;

    padding: 30px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 10px;

    border: 2px dashed rgba(128, 0, 32, 0.35);

    border-radius: 10px;

    background: rgba(128, 0, 32, 0.03);

    cursor: pointer;

    text-align: center;

    transition: 0.2s ease;
}

.upload-area:hover {
    background: rgba(128, 0, 32, 0.08);

    border-color: var(--accent);
}

.upload-icon {
    font-size: 45px;
}

.upload-area strong {
    font-size: 18px;
}

.upload-area span:last-child {
    color: var(--text-muted);

    font-size: 13px;
}


/* =========================================================
   PHOTO PREVIEW
========================================================= */

.photo-preview {
    margin-top: 25px;

    position: relative;

    overflow: hidden;

    border-radius: 10px;

    background: #eeeeee;
}

.photo-preview img {
    width: 100%;

    max-height: 700px;

    object-fit: contain;

    margin: 0 auto;
}

.photo-overlay {
    position: absolute;

    bottom: 15px;
    left: 15px;

    padding: 7px 12px;

    border-radius: 20px;

    background: rgba(0, 0, 0, 0.7);

    color: #ffffff;

    font-size: 12px;
}

.tryon-demo-message {
    margin-top: 25px;

    padding: 20px;

    border-left: 4px solid var(--accent);

    background: rgba(128, 0, 32, 0.06);
}

.tryon-demo-message strong {
    display: block;

    margin-bottom: 5px;
}

.tryon-demo-message p {
    margin: 0;

    color: var(--text-secondary);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 850px) {

    .header-container {
        min-height: 70px;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;

        position: absolute !important;

        left: 0 !important;
        top: 70px !important;

        width: 100%;

        transform: none !important;

        background: var(--bg-main);

        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        padding: 25px;

        flex-direction: column;

        align-items: flex-start;

        gap: 22px;
    }

    .main-navigation a {
        font-size: 14px;
    }

    .hero {
        min-height: 650px;

        padding-top: 70px;
    }

    .hero-container {
        padding: 80px 0;
    }

    .hero h1 {
        letter-spacing: -4px;
    }

    .section {
        padding: 80px 0;
    }

    .section-header {
        display: block;
    }

    .section-header p {
        margin-top: 15px;
    }

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

    .single-header {
        padding-top: 130px;
    }

    .single-header h1 {
        letter-spacing: -2px;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}


@media (max-width: 700px) {

    .tryon-hero {
        padding-top: 140px;
    }

    .tryon-hero h1 {
        letter-spacing: -4px;
    }

    .tryon-box {
        padding: 25px;
    }

    .tryon-options {
        grid-template-columns: 1fr;
    }

    .tryon-option {
        min-height: 300px;
    }

    .tryon-section {
        padding-top: 40px;
    }
}
/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    background: var(--bg-footer);
    color: var(--text-main);
}

.footer-brand {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo-link {
    display: inline-block;
}

.footer-logo {
    display: block;
    width: auto;
    max-width: 420px;
    height: auto;
    margin: 0 auto;
}

/* SOLO IL MOTTO È DORATO */
.footer-motto {
    margin: 12px 0 0;
    color: #D2AE65;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.footer-links a {
    color: var(--text-main);
}

.footer-links a:hover {
    opacity: 0.75;
}

.footer-bottom {
    color: var(--text-main);
}

/* Selettore lingua con bandiere */
.language-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px 30px;
    margin: 0;
}

.language-form label {
    color: #800020;
    font-size: 13px;
    font-weight: 600;
}

.language-form select {
    appearance: auto;
    -webkit-appearance: auto;
    background-color: #fdf5f2;
    color: #800020;
    border: 1px solid rgba(128, 0, 32, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    max-width: 100%;
}

.language-form select:focus {
    outline: 2px solid #800020;
    outline-offset: 2px;
}

@media (max-width: 850px) {
    .language-form {
        justify-content: center;
        padding: 8px 16px 12px;
    }
}

/* =========================================
   SARAH MAGAZINE - MINIMAL DROPDOWN
========================================= */

.menu-item-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.dropdown-trigger:hover {
    opacity: 0.7;
}

/* Pannello */

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 310px;
    max-height: min(65vh, 450px);
    overflow-y: auto;

    padding: 20px 22px;
    margin-top: 0;

    background: #fdf5f2;
    border: 1px solid rgba(128, 0, 32, 0.08);
    border-radius: 4px;

    box-shadow: 0 12px 28px rgba(80, 20, 35, 0.07);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(-50%) translateY(5px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}

/* Area invisibile che collega voce e pannello */

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
}

.menu-item-dropdown.is-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Titolo */

.dropdown-heading {
    margin-bottom: 12px;
    padding-bottom: 12px;

    border-bottom: 1px solid rgba(128, 0, 32, 0.12);

    color: #800020;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

/* Articoli */

.main-navigation .dropdown-article {
    display: block;
    padding: 11px 0;

    color: #49383d;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;

    transition: color 0.2s ease;
}

.main-navigation .dropdown-article:hover {
    color: #800020;
}

.main-navigation .dropdown-article::after,
.main-navigation .dropdown-all::after {
    display: none;
}

/* Link finale */

.main-navigation .dropdown-all {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 12px;
    padding-top: 15px;

    border-top: 1px solid rgba(128, 0, 32, 0.12);

    color: #800020;
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    white-space: normal;
}

.dropdown-empty {
    display: block;
    padding: 10px 0;
    font-size: 13px;
}

/* Smartphone */

@media (max-width: 850px) {

    .menu-item-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        max-height: none;
        margin-top: 12px;
        padding: 15px;

        border: none;
        border-left: 2px solid rgba(128, 0, 32, 0.2);
        border-radius: 0;
        box-shadow: none;

        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }

    .menu-item-dropdown.is-open .dropdown-menu {
        display: block;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dropdown-menu {
        transition: none;
    }
}

