/*
Theme Name:        Aldebaran
Theme URI:         https://matteolecci.it
Author:            Matteo Lecci
Author URI:        https://matteolecci.it
Description:       Aldebaran is a lightweight, modern WordPress starter theme — responsive, WooCommerce-ready and FSE-aware. Includes customizable colors and fonts, block patterns, multiple header layouts (including a transparent menu), smooth scroll-reveal animations, a parallax engine, accessibility-focused and translation-ready markup.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      7.4
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       aldebaran
Domain Path:       /languages
Tags:              block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-site-editing, threaded-comments, translation-ready, wide-blocks, theme-options, e-commerce, blog, portfolio

Aldebaran WordPress Theme, (C) 2026 Matteo Lecci.
Aldebaran is distributed under the terms of the GNU General Public License v2 or later.
*/


/* =========================================================================
 *  TABLE OF CONTENTS
 *
 *   01. Reset & base
 *   02. Typography defaults
 *   03. Accessibility
 *   04. Layout primitives
 *   05. Site header
 *   06. Logo
 *   07. Primary navigation (menu)
 *   08. Dropdown & mega menu
 *   09. Mobile navigation
 *   10. Header quick area (search + quick menu)
 *   11. Transparent header variant
 *   12. Site footer
 *   13. Page header & archive title
 *   14. Post grid (archive)
 *   15. Post card
 *   16. Post meta
 *   17. Pagination
 *   18. Single post
 *   19. Page article
 *   20. Related posts
 *   21. Comments
 *   22. Search form
 *   23. Form fields
 *   24. 404 error page
 *   25. WhatsApp floating button
 *   26. Blocks: button overrides
 *   27. Blocks: cover, image, blockquote
 *   28. Page links (multi-page)
 *   29. Animation: load
 *   30. Animation: fade (legacy)
 *   31. Animation: reveal (v2)
 *   32. Animation: delay + duration utilities
 *   33. Animation: parallax hints
 *   34. Utility classes
 *
 *   WooCommerce styles live in /assets/css/woocommerce.css and are
 *   enqueued conditionally by inc/woocommerce/woocommerce.php.
 * ========================================================================= */


/* =========================================================================
 *  01. Reset & base
 * ========================================================================= */

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

html,
body { margin: 0; padding: 0; }

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #e6e6e6;
}

/* Cap the whole site width; light grey frame shows beyond it. */
body {
    overflow-x: hidden;
    max-width: 2560px;
    margin-inline: auto;
    position: relative;
    isolation: isolate;
}

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

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

strong,
b { font-weight: 700; }

hr {
    border: 0;
    border-top: 1px solid currentColor;
    opacity: 0.15;
}

h1, h2, h3, h4, h5, h6,
p, ol, ul {
    margin: 0;
    padding: 0;
}

ol, ul { padding-left: 1.25rem; }

/* Push body content below the WordPress admin bar when present. */
body.admin-bar .site-header__content { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .site-header__content { top: 46px; }
}


/* =========================================================================
 *  02. Typography defaults
 *
 *  Font-family, colors and font-size flow from theme.json + Customizer
 *  inline styles (inc/customizer/output.php). The rules below are only
 *  about rhythm and inline link styling.
 * ========================================================================= */

h1, h2, h3, h4, h5, h6,
p, ol, ul {
    margin-bottom: 1rem;
    line-height: 1.3;
}

p { line-height: 1.4em; }

h1, h2 { line-height: 1.1; }

a:hover,
a:focus { color: var(--aldebaran-accent-hover); }

/* Inline links inside long-form content get an underline for clarity. */
.text-content a,
.comment-content a { text-decoration: underline; }

/* Block scrolling when the mobile menu is open. */
body.menu-open { overflow: hidden; }


/* =========================================================================
 *  03. Accessibility
 * ========================================================================= */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    right: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Don't show outline on the skip-link target. */
#content[tabindex="-1"]:focus { outline: 0; }

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* =========================================================================
 *  04. Layout primitives
 * ========================================================================= */

.site-main {
    width: 100%;
    padding: 0 var(--edge);
    position: relative;
}

.site-spacer { height: 0; }

.has-no-spacer .site-spacer { height: 0; }
.has-no-spacer .site-main { padding-top: 0; }

/* Default WordPress alignfull breakout when used inside constrained content. */
body .alignfull {
    width: auto;
    max-width: 1000%;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
}


/* =========================================================================
 *  05. Site header
 * ========================================================================= */

.site-header {
    display: contents;
}

.site-header__topbar {
    padding: 10px var(--edge);
    background-color: var(--aldebaran-fg);
    color: var(--aldebaran-bg);
    text-align: right;
    font-size: 14px;
}

.site-header__topbar a {
    color: inherit;
}

.site-header__topbar a:hover,
.site-header__topbar a:focus {
    color: inherit;
}

.site-header__content {
    position: sticky;
    top: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px var(--edge);
    background-color: var(--aldebaran-bg);
}


/* =========================================================================
 *  06. Logo
 * ========================================================================= */

.site-header__logo {
    display: inline-flex;
    align-items: center;
    color: var(--aldebaran-fg);
    font-weight: 700;
    text-decoration: none;
}

.site-header__logo-img {
    width: 180px;
    height: auto;
}

.site-header__logo-img--inverse { display: none; }


/* =========================================================================
 *  07. Primary navigation (menu)
 *
 *  Styles the markup produced by wp_nav_menu( location: 'header' )
 *  which is rendered inside <nav class="site-header__nav">.
 * ========================================================================= */

.site-header__nav { display: contents; }

.menu,
.menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
}

.menu { display: flex; }

.menu > li { position: relative; }

.menu li a {
    display: block;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--aldebaran-fg);
    opacity: 0.8;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.menu li a:hover,
.menu li a:focus { opacity: 1; }

/* Last menu item flush to the right grid line. */
.menu > li:last-child a { padding-right: 0; }


/* =========================================================================
 *  08. Dropdown & mega menu
 * ========================================================================= */

.menu > li.menu-item-has-children > a {
    position: relative;
    padding-right: 30px;
}

.menu > li.menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    position: absolute;
    top: 50%;
    right: 8px;
    margin-top: -3px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
}

.menu > li > ul {
    background: var(--aldebaran-surface);
    color: var(--aldebaran-fg);
    min-width: 220px;
    padding: 10px;
    border-radius: 10px;
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu li ul li {
    width: 100%;
    clear: both;
}

.menu li ul > li > a {
    color: var(--aldebaran-fg);
    border-radius: 7px;
    opacity: 1;
}

.menu li ul > li > a:hover { background: var(--aldebaran-bg); }

@media (min-width: 1190px) {
    .menu > li:hover > ul,
    .menu > li:focus-within > ul,
    .menu li.open-dropdown > ul {
        opacity: 1;
        visibility: visible;
    }

    .menu > li.mega-menu:hover > ul,
    .menu > li.mega-menu:focus-within > ul,
    .menu > li.mega-menu.open-dropdown > ul {
        display: flex;
        flex-wrap: wrap;
        width: 600px;
    }

    .menu > li.mega-menu > ul > li { width: 50%; }
    .menu > li.mega-menu > ul > li > a {
        padding: 12px;
        font-weight: 700;
    }
    .menu > li.mega-menu > ul .sub-menu {
        padding-left: 0;
        width: 100%;
    }
    .menu > li.mega-menu > ul .sub-menu li a {
        padding: 6px 12px;
        font-weight: 400;
        font-size: 14px;
        opacity: 0.85;
    }
}


/* =========================================================================
 *  09. Mobile navigation
 * ========================================================================= */

.site-header__toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    margin-left: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 10;
}

.site-header__toggle-bar {
    display: block;
    width: 26px;
    height: 2px;
    margin: 6px auto;
    background-color: var(--aldebaran-fg);
    transition: transform 0.3s cubic-bezier(.215, .61, .355, 1);
}

body.menu-open .site-header__toggle-bar:nth-of-type(1) {
    transform: rotate(45deg) translateY(6px);
}
body.menu-open .site-header__toggle-bar:nth-of-type(2) {
    transform: rotate(-45deg) translateY(-6px);
}

@media (max-width: 1190px) {
    .site-header__toggle { display: block; }

    .site-header__content { padding-right: 50px; }

    .site-header__logo-img { width: 140px; }

    .menu {
        position: absolute;
        top: 100%;
        left: -3%;
        right: -3%;
        flex-direction: column;
        min-height: 100vh;
        margin: 0;
        padding: 20px 5%;
        background-color: var(--aldebaran-bg);
        overflow: auto;
        transform: translateX(-100%);
        transition: transform 0.6s cubic-bezier(.215, .61, .355, 1);
    }

    body.menu-open .menu { transform: translateX(0); }

    .menu li {
        width: 100%;
        border-bottom: 1px solid var(--aldebaran-fg);
    }

    .menu > li.menu-item-has-children > a::after {
        right: 16px;
    }

    .menu li ul {
        position: relative;
        background: transparent;
        padding: 0 0 0 16px;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        display: none;
    }

    .menu li.open-dropdown > ul { display: block; }
}


/* =========================================================================
 *  10. Header quick area (search + quick menu)
 * ========================================================================= */

.site-header__quick {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--aldebaran-fg);
}

.site-header__quick .quick-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__quick .quick-menu li { display: inline-block; }

.site-header__quick .quick-menu li a {
    display: inline-block;
    padding: 10px 8px;
    color: var(--aldebaran-fg);
}

/* "evi" class converts a quick-menu item into a pill-style button. */
.site-header__quick .quick-menu li.evi a {
    color: #fff;
    background-color: var(--aldebaran-accent);
    border-radius: 100px;
    padding-left: 20px;
    padding-right: 20px;
}

.quick-search {
    display: flex;
    align-items: center;
    width: 180px;
    height: 38px;
    padding: 0 6px;
    background: var(--aldebaran-bg);
    border: 1px solid var(--aldebaran-surface);
    border-radius: 30px;
    opacity: 0.85;
    transition: opacity 0.2s ease, width 0.6s cubic-bezier(.215, .61, .355, 1);
}

.quick-search:hover,
.quick-search:focus-within { opacity: 1; }

.quick-search__input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 4px 8px;
    font: inherit;
    font-size: 13px;
    color: inherit;
    min-width: 0;
}

.quick-search__input:focus { outline: none; }

.quick-search__submit {
    border: 0;
    background: transparent;
    padding: 4px 6px;
    cursor: pointer;
    color: inherit;
}

.quick-search__icon { width: 16px; height: 16px; }

@media (max-width: 1290px) {
    .quick-search {
        width: 38px;
        position: relative;
        background: transparent;
        border-color: transparent;
        overflow: hidden;
    }
    .quick-search:focus-within {
        width: 200px;
        background: var(--aldebaran-bg);
        border-color: var(--aldebaran-surface);
    }
}

@media (max-width: 400px) {
    .site-header__quick .quick-menu .menu-item-type-custom { display: none; }
}


/* =========================================================================
 *  11. Transparent header variant
 *
 *  Applied to pages using the transparent header page templates.
 *  Body classes are added by aldebaran_page_template_body_class().
 * ========================================================================= */

@media (min-width: 1190px) {
    .has-transparent-header .site-header {
        background: transparent;
        transition: background-color 0.6s cubic-bezier(.215, .61, .355, 1);
    }

    .has-transparent-header .site-header__content { border-bottom-color: transparent; }

    .has-transparent-header .site-header__logo,
    .has-transparent-header .menu li > a,
    .has-transparent-header .site-header__quick,
    .has-transparent-header .site-header__quick .quick-menu li a { color: #fff; }

    .has-transparent-header .site-header__logo-img--default { display: none; }
    .has-transparent-header .site-header__logo-img--inverse { display: inline-block; }

    .has-transparent-header .site-header__toggle-bar { background-color: #fff; }

    /* Opaque background once the page has been scrolled past the header. */
    .has-transparent-header.scroll-down .site-header { background-color: var(--aldebaran-fg); }
}

@media (min-width: 1190px) {
    .has-no-spacer .site-spacer { display: none; }
}


/* =========================================================================
 *  12. Site footer
 * ========================================================================= */

.site-footer {
    margin-top: clamp(3rem, 6vw, 5rem);
    padding: clamp(3rem, 6vw, 5rem) var(--edge) clamp(2rem, 4vw, 2.5rem);
    background-color: var(--aldebaran-surface);
    color: var(--aldebaran-footer-text);
}

/* Main: 3 columns — menu (left) · contacts (centre) · social (right). */
.site-footer__main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

.site-footer__col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer__menu a,
.site-footer__contacts a {
    width: fit-content;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.site-footer__menu a { text-transform: uppercase; }
.site-footer__contacts a { text-transform: none; }

.site-footer__contacts { align-items: flex-start; text-align: left; padding-left: clamp(1rem, 5vw, 4.5rem); }

.site-footer__social {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.site-footer__social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid currentColor;
    background-color: transparent;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-footer__social-btn:hover,
.site-footer__social-btn:focus {
    background-color: var(--aldebaran-footer-text);
    color: var(--aldebaran-surface);
}

/* Full-width separator before the sub-footer. */
.site-footer__hr {
    border: 0;
    border-top: 1px solid var(--aldebaran-footer-text);
    opacity: 0.5;
    margin: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem);
}

/* Sub-footer: 66.66% / 33.33%. */
.site-footer__sub {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
}

.site-footer__copy { margin: 0; font-size: 0.85rem; opacity: 0.8; }

.site-footer__legal {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 0.85rem;
}

.site-footer__legal-sep {
    display: inline-block;
    width: 1px;
    height: 1em;
    background-color: currentColor;
    opacity: 0.6;
}

.site-footer a { color: inherit; transition: opacity 0.25s ease, color 0.25s ease, background-color 0.25s ease; }
.site-footer a:not(.site-footer__social-btn) { opacity: 0.8; }
.site-footer a:not(.site-footer__social-btn):hover,
.site-footer a:not(.site-footer__social-btn):focus { color: inherit; opacity: 1; }

@media (max-width: 900px) {
    .site-footer__main { grid-template-columns: 1fr; gap: clamp(2rem, 6vw, 2.5rem); }
    .site-footer__contacts { align-items: flex-start; text-align: left; padding-left: 0; }
    .site-footer__social { justify-content: flex-start; }
    .site-footer__sub { grid-template-columns: 1fr; gap: 1rem; }
    .site-footer__legal { justify-content: flex-start; }
}


/* =========================================================================
 *  13. Page header & archive title
 * ========================================================================= */

.page-header { margin-bottom: 32px; }

.archive-title {
    font-size: var(--wp--preset--font-size--large);
    margin: 0 0 8px;
}

.archive-title__tagline {
    display: block;
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 400;
    opacity: 0.7;
}

.archive-description { opacity: 0.85; }

.blog-search {
    max-width: 600px;
    margin: 0 0 32px;
}


/* =========================================================================
 *  14. Post grid (archive)
 * ========================================================================= */

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) { .post-grid { grid-template-columns: 1fr; } }


/* =========================================================================
 *  15. Post card
 * ========================================================================= */

.post-card { display: flex; flex-direction: column; }

.post-card__media {
    display: block;
    overflow: hidden;
    margin-bottom: 16px;
}

.post-card__thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(.215, .61, .355, 1);
}

.post-card:hover .post-card__thumbnail { transform: scale(1.03); }

.post-card__title {
    font-size: var(--wp--preset--font-size--medium);
    margin: 0 0 8px;
}

.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--aldebaran-accent); }

.post-card__excerpt { margin-bottom: 12px; }

.post-card__tags {
    font-size: var(--wp--preset--font-size--x-small);
    opacity: 0.75;
    margin: 0;
}

.post-card__tags a { color: inherit; }


/* =========================================================================
 *  16. Post meta
 * ========================================================================= */

.post-meta,
.post-card__meta,
.related-posts__meta,
.post-single__meta {
    font-size: var(--wp--preset--font-size--x-small);
    opacity: 0.75;
    margin: 0 0 12px;
}

.post-meta a { color: inherit; }

/* Single-post date: a touch larger than body copy, no category. */
.post-single__meta {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 24px;
}


/* =========================================================================
 *  17. Pagination
 * ========================================================================= */

.pagination {
    margin: 40px 0;
    display: flex;
    flex-wrap: wrap;
}

.pagination__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination__item a,
.pagination__item span {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border: 1px solid var(--aldebaran-fg);
    text-decoration: none;
    color: var(--aldebaran-fg);
    transition: background 0.2s ease, color 0.2s ease;
}

.pagination__item a:hover { background: var(--aldebaran-fg); color: var(--aldebaran-bg); }

.pagination__item .current {
    background: var(--aldebaran-fg);
    color: var(--aldebaran-bg);
}


/* =========================================================================
 *  18. Single post
 * ========================================================================= */

.site-content--single { max-width: 850px; margin: 0 auto; padding-top: clamp(2.5rem, 5vw, 4rem); }

.post-single__header { margin-bottom: 24px; }

.post-single__title {
    font-family: var(--wp--preset--font-family--headings);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: -0.01em;
    font-size: clamp(2.5rem, 6.5vw, 6rem);
    margin: 0 0 8px;
    color: #111111;
}

.post-single__media {
    margin-bottom: 32px;
}

.post-single__thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.post-single__content { margin-bottom: 24px; }

/* Space content headings from the paragraph above them… */
.post-single__content h2,
.post-single__content h3,
.post-single__content h4,
.post-single__content h5,
.post-single__content h6 {
    margin-top: 30px;
    margin-bottom: 10px;
}

/* …but not when a heading is the very first thing in the content. */
.post-single__content > :first-child { margin-top: 0; }

.post-single__footer {
    margin: 24px 0;
    padding: 16px 0;
    border-top: 1px solid currentColor;
}

.post-tags { font-size: var(--wp--preset--font-size--small); opacity: 0.8; }
.post-tags__label { font-weight: 700; }
.post-tags a { color: inherit; text-decoration: underline; }


/* =========================================================================
 *  19. Page article
 * ========================================================================= */

.site-content--page { max-width: 850px; margin: 0 auto; }

.page-article__header { margin-bottom: 24px; }

.page-article__title {
    font-size: var(--wp--preset--font-size--x-large);
    margin: 0;
}

.page-article__media {
    margin-bottom: 32px;
    overflow: hidden;
}

.page-article__thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* "No title" template: drop the constrained column, content size is
   already enforced by theme.json. */
.site-content--no-title { width: 100%; }

/* "Blank" template: zero padding, full canvas for landing pages. */
.site-content--blank {
    width: 100%;
    padding: 0;
}
.site-content--blank > .page-article__content {
    max-width: none;
}


/* =========================================================================
 *  20. Related posts
 * ========================================================================= */

.related-posts {
    margin: 64px 0 32px;
    padding-top: 32px;
    border-top: 1px solid currentColor;
}

.related-posts__title {
    text-align: center;
    font-size: var(--wp--preset--font-size--medium);
    margin-bottom: 24px;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) { .related-posts__grid { grid-template-columns: 1fr; } }

.related-posts__item { display: flex; flex-direction: column; }

.related-posts__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.related-posts__thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 12px;
    border-radius: 6px;
}

.related-posts__heading {
    font-size: var(--wp--preset--font-size--base);
    margin: 0 0 8px;
}


/* =========================================================================
 *  21. Comments
 * ========================================================================= */

.comments-area { margin-top: 48px; }

.comments-area__title {
    font-size: var(--wp--preset--font-size--medium);
    margin-bottom: 24px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.comment-list .comment {
    padding: 16px 0;
    border-top: 1px solid currentColor;
}

.comment-list .children {
    list-style: none;
    margin: 16px 0 0 32px;
    padding: 0;
    border-left: 2px solid currentColor;
    padding-left: 16px;
}

.comment-author .avatar {
    border-radius: 50%;
    float: left;
    margin-right: 16px;
}

.comment-meta { font-size: var(--wp--preset--font-size--x-small); opacity: 0.75; }

.comment-content { margin-top: 8px; }

.comment-reply-title { font-size: var(--wp--preset--font-size--medium); margin-bottom: 16px; }

.comment-form-comment textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
}

.no-comments { font-style: italic; opacity: 0.75; }


/* =========================================================================
 *  22. Search form
 * ========================================================================= */

.search-form {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 6px;
    background: var(--aldebaran-bg);
    border: 1px solid var(--aldebaran-fg);
    border-radius: 100px;
}

.search-form__field {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 8px 16px;
    font: inherit;
    font-size: 16px;
    color: inherit;
    min-width: 0;
}

.search-form__field:focus { outline: none; }

.search-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: inherit;
}

.search-form__icon { width: 20px; height: 20px; }


/* =========================================================================
 *  23. Form fields
 * ========================================================================= */

input[type="text"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="password"],
input[type="email"],
input[type="url"],
textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--aldebaran-bg);
    border: 1px solid var(--aldebaran-fg);
    border-radius: 6px;
    font: inherit;
    color: inherit;
    -webkit-appearance: none;
    appearance: none;
}

input[type="submit"],
button[type="submit"] {
    padding: 12px 20px;
    background: var(--aldebaran-fg);
    color: var(--aldebaran-bg);
    border: 0;
    border-radius: var(--aldebaran-button-radius, 6px);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
}


/* =========================================================================
 *  24. 404 error page
 * ========================================================================= */

.site-content--error {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 0;
}

.error-404__code {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 16px;
    opacity: 0.15;
}

.error-404__title {
    font-size: var(--wp--preset--font-size--large);
    margin: 0 0 16px;
}

.error-404__description {
    font-size: var(--wp--preset--font-size--base);
    margin-bottom: 32px;
}

.error-404__search { max-width: 480px; margin: 0 auto; }


/* =========================================================================
 *  25. WhatsApp floating button
 * ========================================================================= */

.whatsapp-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 990;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-fab:hover {
    transform: scale(1.05);
    color: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.whatsapp-fab__icon { width: 28px; height: 28px; }


/* =========================================================================
 *  26. Blocks: button overrides
 *
 *  Most button styling is driven by Customizer values (see
 *  inc/customizer/output.php). Below: layout-only fallbacks.
 * ========================================================================= */

.wp-block-button__link {
    text-decoration: none !important;
    color: #fff;
}
.wp-block-button__link:hover,
.wp-block-button__link:focus {
    text-decoration: none !important;
    color: #fff;
}


/* =========================================================================
 *  27. Blocks: cover, image, blockquote
 * ========================================================================= */

.wp-block-cover { min-height: 300px; }

.wp-caption {
    margin-bottom: 20px;
    padding: 10px;
    max-width: 97%;
    border: 1px solid var(--aldebaran-surface);
    text-align: center;
}

.wp-caption p.wp-caption-text {
    margin: 0;
    padding: 8px;
    font-size: var(--wp--preset--font-size--x-small);
    opacity: 0.8;
}

blockquote {
    font-style: italic;
    font-weight: 300;
    margin: 1.5em 0;
    padding-left: 24px;
    border-left: 4px solid var(--aldebaran-accent);
    line-height: 1.45;
}

.sticky {
    border-right: 3px solid var(--aldebaran-surface);
    border-bottom: 3px solid var(--aldebaran-surface);
}


/* =========================================================================
 *  28. Page links (multi-page navigation)
 * ========================================================================= */

.page-links {
    margin: 32px 0;
    font-weight: 700;
}

.page-links__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    margin: 0 4px;
    padding: 0 8px;
    border: 1px solid var(--aldebaran-fg);
    border-radius: 4px;
}


/* =========================================================================
 *  29. Animation: load (page entry)
 * ========================================================================= */

@keyframes aldebaran-load-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.site-main.load {
    opacity: 0;
    animation: aldebaran-load-in 0.5s cubic-bezier(0.385, 0.135, 0.15, 0.86) forwards;
}

@media (prefers-reduced-motion: reduce) {
    .site-main.load { animation: none; opacity: 1; }
}


/* =========================================================================
 *  30. Animation: fade (legacy)
 * ========================================================================= */

.fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    will-change: transform, opacity;
}

.fadeIn { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .fade, .fadeIn { opacity: 1 !important; transform: none !important; transition: none !important; }
}


/* =========================================================================
 *  31. Animation: reveal (v2)
 * ========================================================================= */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s ease-out,
        transform 0.8s cubic-bezier(.2, .7, .25, 1),
        filter 0.8s cubic-bezier(.2, .7, .25, 1);
    will-change: opacity, transform, filter;
}

.reveal.reveal-up    { transform: translateY(30px); }
.reveal.reveal-down  { transform: translateY(-30px); }
.reveal.reveal-left  { transform: translateX(30px); }
.reveal.reveal-right { transform: translateX(-30px); }
.reveal.reveal-zoom  { transform: scale(.95); }
.reveal.reveal-skew  { transform: translateY(20px) skewY(5deg); }
.reveal.reveal-blur  { filter: blur(6px); }

.reveal.is-inview {
    opacity: 1;
    transform: none;
    filter: none;
}

.reveal.reveal-clip {
    clip-path: inset(0 0 100% 0);
    -webkit-clip-path: inset(0 0 100% 0);
    will-change: clip-path;
}

@keyframes aldebaran-reveal-clip {
    to { clip-path: inset(0 0 0 0); }
}

.reveal.reveal-clip.is-inview {
    animation: aldebaran-reveal-clip 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    will-change: clip-path;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        clip-path: none !important;
    }
}


/* =========================================================================
 *  32. Animation: delay + duration utilities
 * ========================================================================= */

.delay-01 { transition-delay: .1s !important; }
.delay-02 { transition-delay: .2s !important; }
.delay-03 { transition-delay: .3s !important; }
.delay-04 { transition-delay: .4s !important; }
.delay-05 { transition-delay: .5s !important; }
.delay-06 { transition-delay: .6s !important; }
.delay-07 { transition-delay: .7s !important; }
.delay-08 { transition-delay: .8s !important; }
.delay-09 { transition-delay: .9s !important; }
.delay-10 { transition-delay: 1s !important; }
.delay-11 { transition-delay: 1.1s !important; }
.delay-12 { transition-delay: 1.2s !important; }
.delay-13 { transition-delay: 1.3s !important; }
.delay-14 { transition-delay: 1.4s !important; }
.delay-15 { transition-delay: 1.5s !important; }

.duration-01 { transition-duration: .1s !important; animation-duration: .1s !important; }
.duration-02 { transition-duration: .2s !important; animation-duration: .2s !important; }
.duration-03 { transition-duration: .3s !important; animation-duration: .3s !important; }
.duration-04 { transition-duration: .4s !important; animation-duration: .4s !important; }
.duration-05 { transition-duration: .5s !important; animation-duration: .5s !important; }
.duration-06 { transition-duration: .6s !important; animation-duration: .6s !important; }
.duration-07 { transition-duration: .7s !important; animation-duration: .7s !important; }
.duration-08 { transition-duration: .8s !important; animation-duration: .8s !important; }
.duration-09 { transition-duration: .9s !important; animation-duration: .9s !important; }
.duration-10 { transition-duration: 1s !important;  animation-duration: 1s !important; }
.duration-11 { transition-duration: 1.1s !important; animation-duration: 1.1s !important; }
.duration-12 { transition-duration: 1.2s !important; animation-duration: 1.2s !important; }
.duration-13 { transition-duration: 1.3s !important; animation-duration: 1.3s !important; }
.duration-14 { transition-duration: 1.4s !important; animation-duration: 1.4s !important; }
.duration-15 { transition-duration: 1.5s !important; animation-duration: 1.5s !important; }
.duration-16 { transition-duration: 1.6s !important; animation-duration: 1.6s !important; }
.duration-17 { transition-duration: 1.7s !important; animation-duration: 1.7s !important; }
.duration-18 { transition-duration: 1.8s !important; animation-duration: 1.8s !important; }
.duration-19 { transition-duration: 1.9s !important; animation-duration: 1.9s !important; }
.duration-20 { transition-duration: 2s !important;   animation-duration: 2s !important; }
.duration-25 { transition-duration: 2.5s !important; animation-duration: 2.5s !important; }
.duration-30 { transition-duration: 3s !important;   animation-duration: 3s !important; }


/* =========================================================================
 *  33. Animation: parallax hints
 *
 *  The actual movement is computed in JS (assets/js/script.js).
 *  CSS only provides will-change hints and respects reduced motion.
 * ========================================================================= */

[class*="parallax-start-"],
.parallax-cover .wp-block-cover__image-background {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    [class*="parallax-"] { transform: none !important; }
}


/* =========================================================================
 *  34. Utility classes
 * ========================================================================= */

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

@media (max-width: 768px) {
    .sma-text-center { text-align: center; float: none; }
}

/* Display helpers */
@media (min-width: 1190px) {
    .hide-desktop,
    .desk-hide { display: none !important; }
}

@media (max-width: 1190px) {
    .hide-mobile,
    .sma-hide { display: none !important; }
}

.hide-all,
.all-hide { display: none !important; }

/* Reverse a flex/columns block on mobile (useful for media+text). */
@media (max-width: 781px) {
    .sma-column-reverse { flex-direction: column-reverse; }
}


/* Split feature: oversized title left, short text + media right, full-height. */

.split-feature {
    height: calc(100vh - var(--header-h));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: 0;
    row-gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 5vw, 4rem);
}

.split-feature > * { margin: 0; }

/* Oversized display heading — home hero + simple page headers (portfolio). */
.split-feature__title,
.page-hero__title {
    margin: 0 0 0 -0.05em;
    font-family: var(--wp--preset--font-family--headings);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.015em;
    font-size: clamp(3rem, 11vw, 11rem);
    color: #111111;
}

.split-feature__title {
    grid-column: 1 / 3;
    grid-row: 1;
    align-self: start;
    transform: translateY(2.5rem);
}

/* Simple page header: big title with normal vertical spacing (no full-height). */
.page-hero {
    padding-block: clamp(3rem, 7vw, 6rem) 0;
}

.split-feature__text {
    grid-column: 2 / 3;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    text-align: right;
    max-width: 34ch;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.6;
    font-size: clamp(0.9rem, 1vw, 1.05rem);
    color: #111111;
}

.split-feature__media {
    position: relative;
    grid-column: 3 / 4;
    grid-row: 2;
    align-self: end;
    height: calc(100% + 80px);
    max-height: 46vh;
    min-height: 0;
    margin-left: -200px;
}

.split-feature__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero media as a background video (Vimeo background mode covers the box). */
.split-feature__media--video {
    overflow: hidden;
    background-size: cover;      /* poster (video first frame) set inline on the figure */
    background-position: center;
    container-type: size;        /* enables cqw/cqh sizing for the iframe below */
}

.split-feature__media--video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 16:9 iframe scaled to COVER the box, so the 16:9 video never letterboxes. */
    width: max(100cqw, 177.78cqh);
    height: max(100cqh, 56.25cqw);
    border: 0;
    display: block;
    pointer-events: none; /* cannot be interrupted */
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* Faded in by JS once the video actually starts playing (see the hero block). */
.split-feature__media--video iframe.is-loaded { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .split-feature__media--video iframe { opacity: 1; transition: none; }
}

@media (max-width: 900px) {
    .split-feature {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        row-gap: clamp(1.5rem, 6vw, 2.5rem);
        height: auto;
        min-height: 0;
    }
    .split-feature__title { grid-column: 1 / -1; grid-row: 1; font-size: clamp(3rem, 16vw, 6rem); transform: none; }
    .page-hero__title { font-size: clamp(3rem, 16vw, 6rem); }
    .split-feature__text  { grid-column: 1 / -1; grid-row: 2; justify-self: start; text-align: left; }
    .split-feature__media { grid-column: 1 / -1; grid-row: 3; align-self: start; margin-left: 0; margin-top: 0; height: auto; max-height: none; }
    .split-feature__media img { position: static; height: auto; }
    .split-feature__media--video { aspect-ratio: 16 / 9; }
}


:root { --edge: clamp(1.25rem, 2.5vw, 3rem); --header-h: 113px; }
@media (max-width: 1190px) { :root { --header-h: 104px; } }

/* Site-wide background texture (repeating SVG tile), behind all content. */
body::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: url("assets/images/background/paolo-laku-background.svg");
    background-repeat: repeat;
    background-size: 600px 600px;
}


/* Reusable display section title (hero style, smaller). */
.section-title {
    margin: 0 0 clamp(2rem, 4vw, 3rem) -0.05em;
    font-family: var(--wp--preset--font-family--headings);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: -0.01em;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    color: #111111;
}

/* Home projects section spacing. */
.home-projects { padding-block: clamp(3rem, 8vw, 7rem); }

/* News follows Projects directly — drop its top padding so the gap isn't doubled. */
.home-news { padding-top: 0; }

/* Body copy boxed inside the central grid column (aligns to the 33/66% lines). */
.bio {
    padding-block: clamp(3rem, 7vw, 6rem);
}

.bio__body {
    max-width: 600px;
    margin-inline: auto;
}

/* Blog grid — 4:3 image with the title below; the whole box hovers together. */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
    row-gap: clamp(2rem, 4vw, 3rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 991px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card { margin: 0; }

.blog-card__link {
    display: block;
    text-decoration: none !important; /* beats the global content-link underline */
    color: inherit;
}

.blog-card__media {
    display: block;
    margin: 0 0 16px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #ececec;
}

.blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.4s ease, transform 0.6s ease;
}

.blog-card__title {
    margin: 0;
    font-family: var(--wp--preset--font-family--body, sans-serif);
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--aldebaran-fg, #111111);
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

/* Whole box hovers together: image blur (as on projects) + title to full colour. */
@media (hover: hover) {
    .blog-card__link:hover .blog-card__media img,
    .blog-card__link:focus-visible .blog-card__media img {
        filter: blur(6px) brightness(0.82);
        transform: scale(1.04);
    }
    .blog-card__link:hover .blog-card__title,
    .blog-card__link:focus-visible .blog-card__title {
        opacity: 1;
    }
}

/* Blog "Carica altro" button wrapper (outline style comes from the customizer). */
.blog-loadmore-wrap {
    display: flex;
    justify-content: center;
    margin-top: clamp(2rem, 5vw, 3.5rem);
}
.blog-loadmore-wrap[hidden] { display: none; }
.blog-loadmore-btn {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

/* Related articles ("Potresti leggere…") — reuses the blog card.
   Desktop/laptop: 3 cols (3 shown) · tablet: 2 cols (3rd hidden) · mobile: 1 col (3 shown). */
.related-articles {
    margin-top: clamp(4.5rem, 9vw, 7.5rem);
    padding-bottom: clamp(3rem, 8vw, 7rem);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
    row-gap: clamp(2rem, 4vw, 3rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) and (max-width: 991px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid > :nth-child(3) { display: none; }
}

@media (max-width: 767px) {
    .related-grid { grid-template-columns: 1fr; }
}


/* =========================================================================
 *  Contact Form 7
 * ========================================================================= */

.contact-form-section {
    max-width: 600px;
    margin-inline: auto;
    padding-block: clamp(3rem, 7vw, 6rem);
}

/* Contact page: phone / whatsapp / e-mail in a 3-column info section. */
.contact-info {
    padding-block: clamp(3rem, 7vw, 6rem);
}

.contact-info__grid {
    max-width: 600px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
}

.contact-info__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.contact-info__icon { color: var(--aldebaran-fg, #111111); }
.contact-info__icon svg { display: block; width: 44px; height: 44px; }

.contact-info__label {
    margin: 6px 0 0;
    font-family: var(--wp--preset--font-family--headings, sans-serif);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--aldebaran-fg, #111111);
}

.contact-info__value {
    font-size: 1.1rem;
    color: var(--aldebaran-fg, #111111);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contact-info__value:hover,
.contact-info__value:focus-visible { opacity: 1; text-decoration: underline; }

/* Tablet & mobile (≤1024px): single column, same sizes as desktop. */
@media (max-width: 1024px) {
    .contact-info__grid {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 6vw, 3rem);
    }
}

.cf7-row { margin-bottom: clamp(1rem, 2.5vw, 1.5rem); }

.cf7-row--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

@media (max-width: 600px) {
    .cf7-row--split { grid-template-columns: 1fr; }
}

.wpcf7-form label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
}

.wpcf7-form-control-wrap { display: block; }

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(17, 21, 15, 0.25);
    border-radius: 0;
    background-color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    color: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.wpcf7-form textarea { min-height: 160px; resize: vertical; }

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--aldebaran-fg, #111111);
}

/* Privacy acceptance checkbox. */
.cf7-acceptance .wpcf7-list-item { margin: 0; }

.cf7-acceptance label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
}

.cf7-acceptance input[type="checkbox"] {
    flex: 0 0 auto;
    margin-top: 0.15em;
    width: 18px;
    height: 18px;
    accent-color: var(--aldebaran-fg, #111111);
}

.cf7-acceptance a { text-decoration: underline; }

/* Submit — outline button matching the site (overrides the generic submit rule). */
.wpcf7-form .wpcf7-submit {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    display: inline-block;
    background-color: transparent;
    border: 1px solid var(--aldebaran-button-border-color, #17150f);
    border-radius: var(--aldebaran-button-radius, 0);
    color: var(--aldebaran-fg, #111111);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 40px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.wpcf7-form .wpcf7-submit:hover,
.wpcf7-form .wpcf7-submit:focus {
    background-color: var(--aldebaran-button-hover-bg, #17150f);
    color: var(--aldebaran-button-hover-text, #fff);
}

.wpcf7-not-valid-tip { margin-top: 4px; font-size: 0.85rem; color: #d63638; }

.wpcf7 form .wpcf7-response-output {
    margin: 1.5rem 0 0;
    padding: 12px 16px;
    border: 1px solid currentColor;
    font-size: 0.9rem;
}


/* =========================================================================
 *  Area Riservata — password gate (full-height hero + form)
 * ========================================================================= */

/* Full-height access page: big title (top-left, like other pages) + centered form. */
.aldbr-gate-page > .page-article__content {
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    display: flex;
    flex-direction: column;
}

.aldbr-gate__body {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: clamp(2rem, 6vw, 4rem);
}

.aldbr-gate__form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: min(100%, 360px);
    margin-inline: auto;
}

.aldbr-gate__label {
    display: block;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: normal;
    color: var(--aldebaran-fg, #17150f);
}

.aldbr-gate__form .aldbr-gate__input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(17, 21, 15, 0.25);
    border-radius: 0;
    background-color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    text-align: center;
    letter-spacing: 0.1em;
    -webkit-appearance: none;
    appearance: none;
}

.aldbr-gate__form .aldbr-gate__input:focus {
    outline: none;
    border-color: var(--aldebaran-fg, #111111);
}

.aldbr-gate__form .aldbr-gate__submit {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    display: inline-block;
    background-color: transparent;
    border: 1px solid var(--aldebaran-button-border-color, #17150f);
    border-radius: var(--aldebaran-button-radius, 0);
    color: var(--aldebaran-fg, #111111);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 40px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.aldbr-gate__form .aldbr-gate__submit:hover,
.aldbr-gate__form .aldbr-gate__submit:focus {
    background-color: var(--aldebaran-button-hover-bg, #17150f);
    color: var(--aldebaran-button-hover-text, #fff);
}

.aldbr-gate__error {
    margin: 0;
    color: #d63638;
    font-size: 0.9rem;
}


/* =========================================================================
 *  Area Riservata — unlocked views (category boxes + archives)
 * ========================================================================= */

/* Full-width canvas for the unlocked pages (title top-left like other pages). */
.aldbr-page > .page-article__content {
    padding-bottom: clamp(3rem, 7vw, 5rem);
}

/* Category archive header: breadcrumb + title + description, centered & boxed
   like the single reserved post. Title matches the blog/portfolio post title. */
/* Boxed like the single reserved post (850px column), left-aligned text. */
.aldbr-cat-header {
    max-width: 850px;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
    padding-top: clamp(3rem, 7vw, 6rem);
}

.aldbr-cat-desc {
    margin: 16px 0 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--aldebaran-fg, #17150f);
}
.aldbr-cat-desc p { margin: 0; }

/* Reserved single content: match the blog/portfolio block-paragraph style
   (16px / 1.4) even when the content is a plain (non-block) paragraph. */
body.single-aldbr_item .post-single__content p {
    font-size: 16px;
    line-height: 1.4;
    color: var(--aldebaran-fg, #17150f);
}

/* Breadcrumb — same colours as the header menu links: normal = menu colour
   (fg @ .8), hover & current page = menu hover (fg @ 1). */
.aldbr-breadcrumb {
    margin-bottom: 16px;
    font-size: calc(0.8rem - 2px);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--aldebaran-fg, #17150f);
}

.aldbr-breadcrumb a {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease, color 0.2s ease;
}
.aldbr-breadcrumb a:hover,
.aldbr-breadcrumb a:focus { opacity: 1; }
.aldbr-breadcrumb [aria-current] { opacity: 1; }
.aldbr-breadcrumb__sep { margin: 0 8px; opacity: 0.45; }

/* Category / sub-category boxes: 2 cols (desktop/laptop/tablet), 1 col mobile. */
.aldbr-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 24px;
    row-gap: clamp(2rem, 4vw, 3rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 767px) { .aldbr-boxes { grid-template-columns: 1fr; } }

/* Space between the big landing title and the boxes below it. */
.page-hero + .aldbr-boxes { margin-top: clamp(2rem, 4vw, 3rem); }

.aldbr-empty {
    margin: 2rem 0;
    color: rgba(17, 21, 15, 0.6);
}


/* =========================================================================
 *  Legal pages (Privacy / Cookie Policy) — boxed long-form body
 *
 *  The header reuses the .page-hero title (see .split-feature__title /
 *  .page-hero__title). The body is boxed to the same central column as the
 *  "Chi sono" bio, with smaller, scoped headings and list items that read
 *  exactly like the paragraphs around them. All rules are namespaced under
 *  .legal-content so no other H2/H3/list on the site is affected.
 * ========================================================================= */

.legal-content {
    max-width: 600px;
    margin-inline: auto;
    padding-block: clamp(2.5rem, 6vw, 5rem);
}

.legal-content > :first-child { margin-top: 0; }

/* Fixed heading scale, aligned to the Complianz cookie-statement (H2 = 22px
 * at every breakpoint), then stepping down. Scoped to legal pages only. */
.legal-content h2 {
    font-size: 22px;
    line-height: 1.3;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.legal-content h3 {
    font-size: 20px;
    line-height: 1.3;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.legal-content h4 {
    font-size: 18px;
    line-height: 1.35;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content h5,
.legal-content h6 {
    font-size: 16px;
    line-height: 1.4;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Lists read like the surrounding paragraphs (same size / line-height). */
.legal-content ul,
.legal-content ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.legal-content li {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

/* Complianz (cookie-statement) forces its body text to 14px via an #id rule
 * (#cmplz-document p/li/td). Bring paragraphs and list items back to the
 * theme's 16px so the Cookie Policy reads like the Privacy Policy. The #id in
 * the selector outranks Complianz; !important guards against load-order/inline
 * quirks. Tables (td) are intentionally left to the later Complianz pass. */
.legal-content #cmplz-document p,
.legal-content #cmplz-document li {
    font-size: 16px !important;
    line-height: 1.4;
}
