/* FRONTEND BLOG PROFUMI — CSS COMPLETO v6
   Tema dark, post con immagini orizzontali, rating widget sulla homepage,
   riepilogo valutazioni negli articoli, footer mobile centrato.
*/

@font-face {
    font-family: 'Cormorant Garamond';
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url('fonts/cormorant-garamond-400.woff2') format('woff2')
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    src: url('fonts/cormorant-garamond-600.woff2') format('woff2')
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url('fonts/cormorant-garamond-700.woff2') format('woff2')
}

@font-face {
    font-family: 'Manrope';
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url('fonts/manrope-400.woff2') format('woff2')
}

@font-face {
    font-family: 'Manrope';
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url('fonts/manrope-500.woff2') format('woff2')
}

@font-face {
    font-family: 'Manrope';
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    src: url('fonts/manrope-600.woff2') format('woff2')
}

:root {
    --sfondo: #171819;
    --sfondo-header: #1b1c1d;
    --superficie: #242628;
    --superficie-hover: #2b2e30;
    --superficie-scura: #202224;
    --linea: #383b3d;
    --linea-chiara: #484c4f;
    --titolo: #f3f1ec;
    --testo: #d1cfcb;
    --testo-secondario: #aaa7a2;
    --accento: #00c7b5;
    --accento-hover: #56e2d3;
    --rosso-data: #e05b67;
    --nero: #131415;
    --bianco: #fff;
    --fondo-immagine: #fff;
    --ombra: 0 10px 28px rgba(0,0,0,.22)
}

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

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Manrope', Arial, sans-serif;
    background: var(--sfondo);
    color: var(--testo);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased
}

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

img {
    display: block
}

header.site-header {
    position: relative;
    padding: 34px 20px 20px;
    text-align: center;
    background: var(--sfondo-header);
    border-bottom: 1px solid var(--linea)
}

header.site-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 58px;
    height: 2px;
    transform: translateX(-50%);
    background: var(--accento)
}

header.site-header h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 6vw, 2.7rem);
    font-weight: 600;
    line-height: 1;
    color: var(--titolo)
}

header.site-header p {
    margin-top: 8px;
    color: var(--testo-secondario);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 20px 70px
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--linea)
}

.site-nav a {
    padding: 5px 1px 7px;
    border-bottom: 1px solid transparent;
    color: var(--testo-secondario);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase
}

.site-nav a.active,
.site-nav a:hover {
    border-bottom-color: var(--accento);
    color: var(--titolo)
}

.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 420px;
    margin: 20px auto 0
}

.search-icon {
    position: absolute;
    left: 14px;
    color: var(--testo-secondario);
    pointer-events: none
}

#searchInput {
    width: 100%;
    padding: 11px 16px 11px 39px;
    border: 1px solid var(--linea-chiara);
    background: var(--superficie-scura);
    color: var(--titolo);
    font-family: 'Manrope', sans-serif;
    font-size: .82rem
}

#searchInput:focus {
    border-color: var(--accento);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 199, 181, .12)
}

#searchInput::placeholder {
    color: var(--testo-secondario)
}

.search-results {
    max-width: 560px;
    margin: 0 auto 14px
}

.search-list {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.search-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px;
    border: 1px solid var(--linea);
    background: var(--superficie)
}

.search-thumb,
.search-thumb-placeholder {
    display: flex;
    flex: 0 0 54px;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    overflow: hidden;
    border: 1px solid var(--linea-chiara);
    background: var(--fondo-immagine)
}

.search-thumb-placeholder {
    background: var(--superficie-scura)
}

.search-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain
}

.search-row-text {
    min-width: 0
}

.search-row-eyebrow,
.eyebrow {
    color: var(--testo-secondario);
    font-size: .67rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase
}

.search-row-title {
    overflow: hidden;
    color: var(--titolo);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap
}

.search-load-more {
    display: block;
    margin: 16px auto 0;
    padding: 9px 22px;
    border: 1px solid var(--accento);
    background: transparent;
    color: var(--accento);
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase
}

.search-load-more:hover {
    background: var(--accento);
    color: var(--nero)
}

.search-empty {
    text-align: center;
    color: var(--testo-secondario);
    font-size: .84rem;
    padding: 16px 0
}

/* HOMEPAGE */
.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 22px
}

.article-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--linea);
    border-radius: 9px;
    background: var(--superficie);
    box-shadow: var(--ombra);
    transition: background .2s ease
}

.article-card:hover {
    background: var(--superficie-hover)
}

.article-card img {
    width: 100%;
    height: 330px;
    padding: 18px;
    border: 0;
    border-bottom: 1px solid var(--linea);
    background: var(--fondo-immagine);
    object-fit: contain;
    object-position: center;
    transition: transform .25s ease
}

.article-card img:hover {
    transform: scale(1.035)
}

.article-card img:active {
    transform: scale(1.06)
}

.article-card .card-body {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 19px 20px 21px
}

.article-card .meta {
    order: -1;
    margin-bottom: 8px;
    color: var(--rosso-data);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: 1.05px;
    text-transform: uppercase
}

.article-card h2 {
    margin-bottom: 8px;
    color: var(--titolo);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.45rem, 3.5vw, 1.9rem);
    font-weight: 600;
    line-height: 1.05;
    transition: color .2s ease
}

.article-card h2:hover {
    color: var(--accento)
}

.article-card p.excerpt {
    max-width: 650px;
    color: var(--testo);
    font-size: .86rem;
    line-height: 1.7
}

/* CARD ACTION ROW - Rating widget a destra di Leggi l'articolo */
.card-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 13px;
    padding-top: 9px;
    border-top: 1px solid var(--linea)
}

.card-read-link {
    padding-bottom: 2px;
    border-bottom: 1px solid var(--accento);
    color: var(--accento);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .9px;
    text-transform: uppercase;
    transition: all .2s ease
}

.card-rating-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
    padding: 4px 8px;
    margin: -4px -8px;
    border-radius: 3px
}

.card-rating-link:hover {
    background: rgba(0, 199, 181, 0.08)
}

.card-action-row:hover .card-read-link {
    border-bottom-color: var(--bianco);
    color: var(--bianco)
}

.card-stars {
    display: flex;
    gap: 1px;
    font-size: 0.7rem
}

.card-stars .star {
    color: var(--testo-secondario)
}

.card-stars .star.filled {
    color: var(--accento)
}

.card-rating-count {
    color: var(--testo-secondario);
    font-size: 0.65rem;
    font-weight: 500
}

.read-more {
    display: none
}

/* ARTICLE PAGE */
.article-hero img {
    width: 100%;
    max-height: 480px;
    border: 1px solid var(--linea);
    border-radius: 6px;
    background: var(--fondo-immagine);
    object-fit: contain
}

.article-page h1 {
    max-width: 760px;
    margin: 7px 0 14px;
    color: var(--titolo);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.7rem, 3.4vw, 2.35rem);
    font-weight: 600;
    line-height: 1.03
}

.article-page .body-content {
    max-width: 720px;
    color: var(--testo);
    font-size: 1rem
}

.article-page .body-content h2 {
    margin: 34px 0 11px;
    color: var(--titolo);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1.1
}

.article-page .body-content p {
    margin-bottom: 17px
}

.article-page .body-content ul {
    margin: 0 0 18px 22px
}

.article-page .body-content li {
    margin-bottom: 6px
}

.eyebrow {
    display: block
}

.back-link {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--testo-secondario);
    font-size: .76rem
}

.back-link:hover {
    color: var(--accento)
}

.cta-box {
    margin-top: 34px;
    padding: 28px 22px;
    border: 1px solid var(--linea);
    border-radius: 6px;
    background: var(--superficie);
    text-align: center;
    color: var(--testo)
}

.cta-box a.btn {
    display: inline-block;
    margin-top: 13px;
    padding: 12px 26px;
    border-radius: 3px;
    background: var(--accento);
    color: var(--nero);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase
}

.cta-box a.btn:hover {
    background: var(--accento-hover)
}

/* PRODUCT BANNER */
.product-banner {
    display: block;
    margin: 28px 0;
    padding: 16px;
    border: 1px solid var(--linea);
    border-radius: 6px;
    background: var(--superficie)
}

.product-banner-label {
    margin-bottom: 10px;
    color: var(--testo-secondario);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase
}

.product-banner-body {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 13px;
    align-items: center
}

.product-banner-photo {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border: 1px solid var(--linea-chiara);
    background: var(--fondo-immagine)
}

.product-banner-photo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain
}

.product-banner-info {
    grid-column: 2;
    grid-row: 1;
    min-width: 0
}

.product-banner-name {
    overflow: visible;
    white-space: normal;
    color: var(--titolo);
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.4
}

.product-banner-price {
    margin-top: 2px;
    color: var(--titolo);
    font-size: 1rem;
    font-weight: 700
}

.product-banner-coupon {
    display: inline-block;
    margin-top: 7px;
    padding: 3px 9px;
    border: 1px dashed var(--linea-chiara);
    color: var(--testo);
    font-size: .69rem
}

.product-banner-coupon strong {
    color: var(--accento)
}

.product-banner-cta {
    grid-column: 1/-1;
    grid-row: 2;
    display: block;
    width: 100%;
    padding: 11px 14px;
    border-radius: 3px;
    background: var(--accento);
    color: var(--nero);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .7px;
    text-align: center;
    text-transform: uppercase;
    white-space: normal
}

/* SCHEDA TECNICA */
.scheda-tecnica {
    display: flex;
    flex-direction: column;
    gap: 23px;
    margin-bottom: 32px;
    padding: 22px;
    border: 1px solid var(--linea);
    border-radius: 8px;
    background: var(--superficie);
    box-shadow: var(--ombra)
}

.scheda-foto {
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--linea-chiara);
    border-radius: 4px;
    background: var(--fondo-immagine)
}

.scheda-foto img {
    width: 100%;
    height: 100%;
    padding: 14px;
    object-fit: contain
}

.scheda-foto-placeholder {
    width: 100%;
    height: 100%;
    background: var(--superficie-scura)
}

.scheda-info {
    flex: 1
}

.scheda-info h2 {
    margin-bottom: 12px;
    color: var(--titolo);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.1
}

.scheda-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px
}

.tag {
    padding: 4px 9px;
    border: 1px solid var(--linea-chiara);
    border-radius: 14px;
    background: transparent;
    color: var(--testo);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase
}

.tag-brand {
    border-color: var(--accento);
    background: var(--accento);
    color: var(--nero)
}

.piramide {
    margin-bottom: 19px
}

.piramide-riga {
    display: flex;
    gap: 9px;
    padding: 6px 0;
    border-bottom: 1px solid var(--linea);
    font-size: .83rem
}

.piramide-label {
    flex-shrink: 0;
    width: 58px;
    color: var(--testo-secondario);
    font-weight: 600
}

.accordi-titolo {
    margin-bottom: 8px;
    color: var(--testo-secondario);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase
}

.accordo-riga {
    margin-bottom: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--superficie-scura)
}

.accordo-barra {
    padding: 5px 10px;
    color: var(--nero);
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap
}

/* ARTICLE RATING SUMMARY */
.article-rating-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 24px 0;
    padding: 18px 20px;
    border: 1px solid var(--linea);
    border-radius: 6px;
    background: var(--superficie)
}

.article-rating-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%
}

.article-rating-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px
}

.article-rating-number {
    color: var(--accento);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1
}

.article-rating-max {
    color: var(--testo-secondario);
    font-size: 0.7rem
}

.article-rating-stars {
    display: flex;
    gap: 4px;
    font-size: 1.1rem;
    align-items: center
}

.article-rating-stars .star {
    color: var(--testo-secondario)
}

.article-rating-stars .star.filled {
    color: var(--accento)
}

.article-rating-count {
    color: var(--testo-secondario);
    font-size: 0.8rem;
    font-weight: 500
}

.article-rating-empty {
    color: var(--testo-secondario);
    font-size: 0.9rem;
    font-style: italic
}

/* OTHER ARTICLES CAROUSEL */
.altri-articoli {
    margin-top: 42px;
    padding-top: 28px;
    border-top: 1px solid var(--linea)
}

.altri-articoli-titolo {
    margin-bottom: 15px;
    color: var(--titolo);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 600
}

.carosello {
    display: flex;
    gap: 14px;
    padding-bottom: 9px;
    overflow-x: auto;
    scroll-snap-type: x mandatory
}

.carosello::-webkit-scrollbar {
    height: 5px
}

.carosello::-webkit-scrollbar-thumb {
    background: var(--linea-chiara)
}

.carosello-card {
    flex: 0 0 145px;
    overflow: hidden;
    border: 1px solid var(--linea);
    border-radius: 6px;
    background: var(--superficie);
    scroll-snap-align: start
}

.carosello-foto {
    width: 145px;
    height: 145px;
    border-bottom: 1px solid var(--linea);
    background: var(--fondo-immagine)
}

.carosello-foto img {
    width: 100%;
    height: 100%;
    padding: 9px;
    object-fit: contain
}

.carosello-testo {
    padding: 10px 11px 13px;
    color: var(--titolo);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.1
}

/* FOOTER */
.site-footer {
    margin-top: 24px;
    padding: 36px 20px 26px;
    border-top: 1px solid var(--linea);
    background: #121314
}

.site-footer-inner {
    display: flex;
    max-width: 900px;
    margin: 0 auto;
    justify-content: space-between;
    gap: 30px
}

.site-footer-block {
    flex: 1
}

.site-footer-block h3 {
    margin-bottom: 8px;
    color: var(--titolo);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600
}

.site-footer-block p,
.site-footer-block a {
    color: var(--testo);
    font-size: .78rem;
    line-height: 1.8
}

.site-footer-block a {
    display: block
}

.site-footer-block a:hover {
    color: var(--accento)
}

.site-footer-bottom {
    max-width: 900px;
    margin: 25px auto 0;
    padding-top: 16px;
    border-top: 1px solid var(--linea);
    color: var(--testo);
    font-size: .7rem;
    text-align: center
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: none;
    padding: 16px 20px 18px;
    border-top: 1px solid var(--linea-chiara);
    background: var(--superficie);
    color: var(--testo);
    box-shadow: 0 -8px 25px rgba(0, 0, 0, .3)
}

.cookie-banner.visible {
    display: block
}

.cookie-banner-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    max-width: 760px;
    margin: 0 auto;
    text-align: center
}

.cookie-banner p {
    max-width: 700px;
    margin: 0;
    color: var(--titolo);
    font-size: .78rem;
    line-height: 1.6;
    text-align: center
}

.cookie-banner p a {
    color: var(--accento);
    font-weight: 600;
    text-decoration: underline
}

.cookie-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px
}

.cookie-banner-buttons button {
    min-width: 142px;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Manrope', Arial, sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .55px;
    text-transform: uppercase
}

.cookie-btn-essential {
    border: 1px solid var(--titolo) !important;
    background: transparent;
    color: var(--titolo)
}

.cookie-btn-essential:hover {
    background: var(--linea-chiara);
    color: var(--bianco)
}

.cookie-btn-accept {
    border: 1px solid var(--accento);
    background: var(--accento);
    color: var(--nero)
}

.cookie-btn-accept:hover {
    border-color: var(--accento-hover);
    background: var(--accento-hover)
}

/* MEDIA QUERIES */
@media (min-width: 640px) {
    .scheda-tecnica {
        flex-direction: row
    }

    .scheda-foto {
        width: 230px
    }

    .carosello-card {
        flex-basis: 160px
    }

    .carosello-foto {
        width: 160px;
        height: 160px
    }
}

@media (max-width: 767px) {
    .container {
        padding: 24px 20px 140px
    }

    .site-nav {
        gap: 17px
    }

    .articles-grid {
        gap: 16px
    }

    .article-card img {
        height: 215px;
        padding: 12px
    }

    .article-card .card-body {
        padding: 16px
    }

    .article-card h2 {
        font-size: 1.35rem
    }

    .article-card p.excerpt {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        font-size: .76rem;
        line-height: 1.55
    }

    .card-action-row {
        gap: 8px
    }

    .card-read-link {
        white-space: nowrap;
        font-size: .65rem
    }

    .card-rating-link {
        margin-left: auto;
        flex-shrink: 0
    }

    .card-stars {
        font-size: 0.6rem
    }

    .card-rating-count {
        font-size: 0.6rem
    }

    .site-footer {
        padding: 34px 20px 28px
    }

    .site-footer-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100%;
        gap: 0;
        text-align: center
    }

    .site-footer-block {
        width: 100%;
        margin: 0 0 26px;
        text-align: center
    }

    .site-footer-block h3,
    .site-footer-block p,
    .site-footer-block a {
        text-align: center
    }

    .site-footer-bottom {
        width: 100%;
        margin-top: 0;
        text-align: center
    }

    .cookie-banner {
        padding: 15px 16px 17px
    }

    .cookie-banner p {
        font-size: .75rem
    }

    .cookie-banner-buttons {
        width: 100%;
        flex-wrap: nowrap
    }

    .cookie-banner-buttons button {
        min-width: 0;
        flex: 1;
        padding: 10px 8px;
        font-size: .61rem
    }

    .product-banner-body {
        grid-template-columns: 64px minmax(0, 1fr)
    }

    .product-banner-cta {
        font-size: .66rem
    }
}