/*
Theme Name: TwoPlusTwo
Theme URI: https://www.twoplustwo.eu
Author: TwoPlusTwo Association
Author URI: https://www.twoplustwo.eu
Description: Custom theme for Associazione TwoPlusTwo - zero plugin dependencies, bilingual IT/EN support via meta fields.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twoplustwo
*/

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */

:root {
    /* Colors - extracted from live site computed values */
    --tpt-yellow: #fcf031;          /* rgb(252,240,49) from live site */
    --tpt-navy: #080023;            /* rgb(8,0,35) footer row 2 bg */
    --tpt-navy-light: #0f1a26;      /* rgb(15,26,38) share btn bg */
    --tpt-blue: #0274be;
    --tpt-black: #000000;
    --tpt-dark-gray: #3a3a3a;
    --tpt-white: #ffffff;
    --tpt-light-gray: #eaeaea;

    /* Typography - from live site */
    --tpt-font-body: 'Assistant', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --tpt-font-nav: 'Roboto', sans-serif;

    /* Spacing */
    --tpt-container-width: 1170px;
    --tpt-section-padding: 60px 0;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

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

body {
    font-family: var(--tpt-font-body);
    color: var(--tpt-dark-gray);
    line-height: 1.6;
    background-color: var(--tpt-white);
}

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

a {
    color: var(--tpt-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.tpt-container {
    max-width: var(--tpt-container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.tpt-section {
    padding: var(--tpt-section-padding);
}

.tpt-yellow-box {
    background-color: var(--tpt-yellow);
    padding: 30px 40px;
}

.tpt-yellow-box h2,
.tpt-yellow-box h3 {
    color: var(--tpt-black);
    font-weight: 700;
    text-transform: uppercase;
}

.tpt-btn {
    display: inline-block;
    padding: 12px 40px;
    background-color: var(--tpt-yellow);
    color: var(--tpt-black);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--tpt-black);
    cursor: pointer;
    transition: background-color 0.3s;
}

.tpt-btn:hover {
    background-color: var(--tpt-black);
    color: var(--tpt-yellow);
    text-decoration: none;
}

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

.tpt-grid {
    display: grid;
    gap: 20px;
}

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

.tpt-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

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

.tpt-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    text-align: center;
    padding-top: 40px;
}

/* Logo */
.tpt-header__logo-wrap {
    margin-bottom: 20px;
}

.tpt-header__logo-link {
    display: inline-block;
}

.tpt-header__logo {
    width: 584px;
    max-width: 80vw;
    height: auto;
}

/* ==========================================================================
   FIXED HAMBURGER BUTTON (always visible, all viewports)
   ========================================================================== */

/* ==========================================================================
   HORIZONTAL NAVBAR (desktop)
   ========================================================================== */
.tpt-navbar {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    padding: 0;
}

.tpt-navbar__menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 14px 32px;
    background: rgba(8, 0, 35, 0.35);
    border-radius: 6px;
}

.tpt-navbar__item a {
    color: var(--tpt-yellow);
    text-decoration: none;
    font-family: 'Assistant', sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: capitalize;
    padding: 6px 16px;
    transition: opacity 0.2s;
}

.tpt-navbar__item a:hover {
    opacity: 0.75;
}

.tpt-navbar__lang {
    margin-left: 10px;
}

.tpt-navbar__lang .tpt-lang-toggle {
    border-color: var(--tpt-yellow);
}

.tpt-navbar__lang .tpt-lang-toggle__option {
    color: var(--tpt-yellow);
}

.tpt-navbar__lang .tpt-lang-toggle__option.is-active {
    background-color: var(--tpt-yellow);
    color: var(--tpt-navy);
}

/* ==========================================================================
   FLOATING MENU BUTTON (hidden at top, appears on scroll)
   ========================================================================== */
.tpt-sidebar-toggle {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 1000;
    background-color: var(--tpt-navy);
    border: none;
    border-radius: 28px;
    cursor: pointer;
    padding: 12px 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.tpt-sidebar-toggle.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.tpt-sidebar-toggle:hover {
    background-color: #1a0f3a;
}

/* "MENU" text label (desktop) */
.tpt-sidebar-toggle__label {
    color: var(--tpt-yellow);
    font-family: 'Assistant', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
}

/* Hamburger bars (hidden on desktop) */
.tpt-sidebar-toggle__bar {
    display: none;
    width: 22px;
    height: 2.5px;
    background-color: var(--tpt-yellow);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* X state when sidebar is open — always show as circle with X */
.tpt-sidebar-toggle.is-active {
    background-color: var(--tpt-yellow);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    padding: 0;
    flex-direction: column;
    gap: 5px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.tpt-sidebar-toggle.is-active .tpt-sidebar-toggle__label {
    display: none;
}

.tpt-sidebar-toggle.is-active .tpt-sidebar-toggle__bar {
    display: block;
    background-color: var(--tpt-navy);
}

.tpt-sidebar-toggle.is-active .tpt-sidebar-toggle__bar:nth-child(2) {
    transform: rotate(45deg) translate(5px, 5px);
}

.tpt-sidebar-toggle.is-active .tpt-sidebar-toggle__bar:nth-child(3) {
    opacity: 0;
}

.tpt-sidebar-toggle.is-active .tpt-sidebar-toggle__bar:nth-child(4) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   OVERLAY (behind sidebar)
   ========================================================================== */

.tpt-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tpt-sidebar-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   OFF-CANVAS SIDEBAR (slides from right, yellow bg)
   ========================================================================== */

.tpt-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background-color: var(--tpt-yellow);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.tpt-sidebar.is-open {
    transform: translateX(0);
}

.tpt-sidebar__header {
    padding: 30px 30px 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.tpt-sidebar__menu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    flex: 1;
}

.tpt-sidebar__menu-item a {
    display: block;
    padding: 16px 30px;
    font-family: var(--tpt-font-nav);
    font-size: 28px;
    font-weight: 600;
    color: var(--tpt-navy);
    text-decoration: none;
    letter-spacing: 1.2px;
    transition: background-color 0.2s;
}

.tpt-sidebar__menu-item a:hover {
    background-color: rgba(8, 0, 35, 0.08);
    text-decoration: none;
}

/* ==========================================================================
   LANGUAGE TOGGLE (pill switch IT / EN)
   ========================================================================== */

.tpt-lang-toggle {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--tpt-navy);
    border-radius: 30px;
    overflow: hidden;
    text-decoration: none;
    transition: opacity 0.2s;
}

.tpt-lang-toggle:hover {
    text-decoration: none;
    opacity: 0.85;
}

.tpt-lang-toggle__option {
    display: block;
    padding: 6px 16px;
    font-family: var(--tpt-font-nav);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--tpt-navy);
    transition: background-color 0.2s, color 0.2s;
}

.tpt-lang-toggle__option.is-active {
    background-color: var(--tpt-navy);
    color: var(--tpt-yellow);
}

/* ==========================================================================
   HERO (base class for page templates)
   ========================================================================== */

.tpt-hero {
    position: relative;
    min-height: 730px;
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px 100px;
}

.tpt-hero__title-box {
    background-color: var(--tpt-yellow);
    padding: 30px 50px;
    max-width: 600px;
    width: 100%;
}

.tpt-hero__title-box h1,
.tpt-hero__title-box h2 {
    font-family: var(--tpt-font-body);
    font-size: 45px;
    font-weight: 900;
    color: var(--tpt-black);
    text-transform: uppercase;
    margin: 0;
}

.tpt-hero__title-box p {
    font-size: 15px;
    color: var(--tpt-black);
    margin-top: 10px;
}

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

.tpt-footer {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #666;
    padding: 100px 0;
}

/* Footer grid */
.tpt-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: var(--tpt-container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Footer Row 1: Newsletter --- */
.tpt-footer__newsletter-row {
    margin-bottom: 31px;
}

/* Col 1: CTA yellow box */
.tpt-footer__cta {
    background-color: var(--tpt-yellow);
    padding: 40px 50px;
    display: flex;
    align-items: center;
}

.tpt-footer__cta-title {
    font-family: var(--tpt-font-body);
    font-size: 45px;
    font-weight: 900;
    color: var(--tpt-black);
    line-height: 1.1;
}

/* Col 2: Newsletter form (white box) */
.tpt-footer__form-wrap {
    background-color: var(--tpt-white);
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpt-footer__form-inner {
    width: 100%;
    text-align: center;
}

.tpt-footer__form-logo {
    margin: 0 auto 15px;
    width: 120px;
    height: auto;
    filter: brightness(0);
}

.tpt-footer__form-divider {
    border: none;
    border-top: 2px solid var(--tpt-black);
    width: 60px;
    margin: 15px auto;
}

.tpt-footer__form-heading {
    font-family: var(--tpt-font-body);
    font-size: 20px;
    font-weight: 900;
    color: var(--tpt-navy-light);
    margin-bottom: 15px;
}

/* Newsletter form */
.tpt-newsletter-form__field {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 0;
}

.tpt-newsletter-form__input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-family: var(--tpt-font-body);
    font-size: 14px;
    outline: none;
    background: transparent;
}

.tpt-newsletter-form__submit {
    background: var(--tpt-black);
    color: var(--tpt-white);
    border: none;
    padding: 10px 18px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tpt-newsletter-form__submit:hover {
    background: var(--tpt-dark-gray);
}

.tpt-newsletter-form__message {
    margin-top: 8px;
    font-size: 13px;
    min-height: 20px;
}

.tpt-newsletter-form__message--success {
    color: #2ecc71;
}

.tpt-newsletter-form__message--error {
    color: #e74c3c;
}

/* Honeypot - hidden from humans */
.tpt-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

/* Col 3: Policy links (yellow box) */
.tpt-footer__policy {
    background-color: var(--tpt-yellow);
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 5px;
}

.tpt-footer__policy-link {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--tpt-black);
    color: var(--tpt-white);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.tpt-footer__policy-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* --- Footer Row 2: Info --- */
.tpt-footer__info-row .tpt-footer__col {
    background-color: var(--tpt-navy);
    padding: 47px 50px 49px 60px;
}

.tpt-footer__heading {
    font-family: var(--tpt-font-body);
    font-size: 20px;
    font-weight: 900;
    color: var(--tpt-white);
    margin-bottom: 20px;
}

/* Col 1: Institutional sites */
.tpt-footer__inst-list {
    list-style: none;
    padding: 0;
}

.tpt-footer__inst-list li {
    margin-bottom: 10px;
    font-size: 15px;
}

.tpt-footer__inst-list a {
    color: var(--tpt-white);
    text-decoration: none;
}

.tpt-footer__inst-list a:hover {
    text-decoration: underline;
}

.tpt-footer__inst-arrow {
    color: var(--tpt-yellow);
    margin-right: 10px;
    font-weight: 700;
}

/* Col 2: Association info */
.tpt-footer__association {
    text-align: center;
}

.tpt-footer__assoc-text {
    font-size: 15px;
    color: var(--tpt-white);
    line-height: 1.6;
}

.tpt-footer__copyright {
    font-family: var(--tpt-font-body);
    font-size: 20px;
    font-weight: 900;
    color: var(--tpt-yellow);
    margin-top: 30px;
}

/* Col 3: Contacts + Share */
.tpt-footer__divider {
    border: none;
    border-top: 2px solid var(--tpt-white);
    width: 80px;
    margin: 0 0 15px;
}

.tpt-footer__social-icons {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
}

.tpt-footer__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: var(--tpt-yellow);
    color: var(--tpt-black);
    text-decoration: none;
    transition: opacity 0.2s;
}

.tpt-footer__social-icon:hover {
    opacity: 0.8;
    text-decoration: none;
}

.tpt-footer__social-icon svg {
    width: 18px;
    height: 18px;
}

.tpt-footer__heading--share {
    margin-top: 5px;
}

.tpt-footer__share-buttons {
    display: flex;
    gap: 5px;
}

.tpt-footer__share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background-color: var(--tpt-navy-light);
    color: var(--tpt-white);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.2s;
}

.tpt-footer__share-btn:hover {
    opacity: 0.8;
    text-decoration: none;
}

.tpt-footer__share-btn svg {
    width: 12px;
    height: 12px;
}

/* ==========================================================================
   HOMEPAGE
   ========================================================================== */

/* --- Hero (homepage variant) --- */
.tpt-hero--home {
    position: relative;
    min-height: 730px;
    background-size: cover;
    background-position: 50% 100%;
    background-color: var(--tpt-dark-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px 320px;
}

.tpt-hero--home__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.tpt-hero--home__bottom {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 936px;
    padding-bottom: 0px;
}

.tpt-hero--home__title {
    font-family: var(--tpt-font-body);
    font-size: 49px;
    font-weight: 900;
    color: var(--tpt-white);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 10px;
    transform: translateY(200px);
}

/* subtitle-box moved to .tpt-home-news section */

/* --- Shared: Card grid --- */
.tpt-home-news__grid,
.tpt-home-projects__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.tpt-home-news__grid {
    max-width: 936px;
    margin: -15px auto 0;
    position: relative;
    z-index: 4;
}

/* --- Shared: Card component --- */
.tpt-home-card {
    display: block;
    text-decoration: none;
    background-color: var(--tpt-yellow);
    overflow: hidden;
}

.tpt-home-card:hover {
    text-decoration: none;
}

.tpt-home-card:hover .tpt-home-card__thumb img {
    transform: scale(1.05);
}

.tpt-home-card__thumb {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.tpt-home-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.tpt-home-card__placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--tpt-light-gray);
}

.tpt-home-card__body {
    padding: 15px 10px 20px;
    text-align: center;
}

.tpt-home-card__title {
    font-family: var(--tpt-font-body);
    font-size: 29px;
    font-weight: 900;
    color: var(--tpt-black);
    margin: 0;
    line-height: 1.2;
}

/* --- Show More button (shared) --- */
.tpt-show-more-btn {
    display: inline-block;
    background-color: var(--tpt-yellow);
    color: var(--tpt-navy-light);
    font-family: var(--tpt-font-body);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 5.2px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 85px;
    transition: opacity 0.2s;
}

.tpt-show-more-btn:hover {
    opacity: 0.85;
    text-decoration: none;
}

/* --- News section (overlaps hero) --- */
.tpt-home-news {
    position: relative;
    margin-top: -100px;
    padding-top: 0;
    z-index: 10;
}

.tpt-home-news__subtitle-box {
    background-color: var(--tpt-yellow);
    padding: 20px 60px;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 3;
}

.tpt-home-news__subtitle {
    font-family: var(--tpt-font-body);
    font-size: 27px;
    font-weight: 900;
    color: var(--tpt-navy-light);
    margin: 0;
}

.tpt-home-news__action {
    text-align: center;
    padding: 40px 0;
}

.tpt-home-news__empty {
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px;
    color: var(--tpt-dark-gray);
}

/* --- Europe Direct section --- */
.tpt-home-ed {
    padding: 60px 0 80px;
    background: var(--tpt-white);
}

.tpt-home-ed__heading {
    background: var(--tpt-yellow);
    font-family: var(--tpt-font-body);
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--tpt-navy);
    text-align: center;
    padding: 30px 60px;
    max-width: 850px;
    margin: 0 auto 40px;
}

.tpt-home-ed__layout {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 40px;
    align-items: center;
    max-width: 850px;
    margin: 0 auto;
}

.tpt-home-ed__content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--tpt-dark-gray);
    margin-bottom: 30px;
}

.tpt-home-ed__content p {
    margin-bottom: 1em;
}

.tpt-home-ed__btn-wrap {
    text-align: center;
}

.tpt-home-ed__cta {
    display: inline-block;
    font-family: var(--tpt-font-body);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--tpt-navy);
    background: var(--tpt-yellow);
    padding: 14px 40px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.tpt-home-ed__cta:hover {
    background: var(--tpt-navy);
    color: var(--tpt-yellow);
    transform: translateY(-2px);
    text-decoration: none;
}

.tpt-home-ed__image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* --- Video section --- */
.tpt-home-video {
    padding: 0;
    max-width: 936px;
    margin: 0 auto;
}

.tpt-home-video__wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background-color: var(--tpt-black);
}

.tpt-home-video__wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Projects section --- */
.tpt-home-projects {
    position: relative;                                                                                                                            
    z-index: 2;    
    padding-top: 60px;
    max-width: 936px;
    margin: 0 auto;
}

.tpt-home-projects__header {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--tpt-yellow);
    padding: 15px 30px;
    margin: 0 0 0px;
}

.tpt-home-projects__icon {
    display: block;
    color: var(--tpt-navy);
    flex-shrink: 0;
}

.tpt-home-projects__title {
    font-family: var(--tpt-font-body);
    font-size: 24px;
    font-weight: 900;
    color: var(--tpt-navy);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin: 0;
}

.tpt-home-projects__action {
    text-align: center;
    padding: 40px 0;
}

.tpt-home-projects__empty {
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px;
    color: var(--tpt-dark-gray);
}

/* --- Quote section --- */
.tpt-home-quote {
    position: relative;
    margin-top: -200opx;
    min-height: 600px;
    background-size: cover;
    background-position: 50% 0%;
    background-attachment: fixed;
    background-color: var(--tpt-dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 200px 20px 190px;
}

.tpt-home-quote::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.tpt-home-quote__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.tpt-home-quote__text {
    font-family: var(--tpt-font-body);
    font-size: 37px;
    font-weight: 300;
    font-style: italic;
    color: var(--tpt-white);
    line-height: 1.4;
    margin: 0;
    quotes: none;
}

.tpt-home-quote__author {
    display: block;
    font-family: var(--tpt-font-body);
    font-size: 20px;
    font-weight: 600;
    font-style: normal;
    color: var(--tpt-white);
    margin-top: 30px;
}

/* ==========================================================================
   ABOUT US
   ========================================================================== */

/* --- Hero (about variant) --- */
.tpt-hero--about {
    position: relative;
    min-height: 730px;
    background-size: cover;
    background-position: 50% 0%;
    background-color: var(--tpt-dark-gray);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0 0 100px;
}

.tpt-hero--about__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(8, 0, 35, 0.25);
    pointer-events: none;
}

.tpt-hero--about__bottom {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: var(--tpt-container-width);
    margin: 0 auto;
    width: 100%;
}

.tpt-hero--about__mission-box {
    background-color: var(--tpt-yellow);
    padding: 40px 50px;
    max-width: 550px;
}

.tpt-hero--about__title {
    font-family: var(--tpt-font-body);
    font-size: 80px;
    font-weight: 900;
    color: var(--tpt-navy);
    text-transform: uppercase;
    margin: 0 0 15px;
    line-height: 1;
}

.tpt-hero--about__mission-text {
    font-size: 22px;
    color: var(--tpt-navy);
    line-height: 1.5;
}

.tpt-hero--about__mission-text p {
    margin: 0 0 10px;
}

/* --- Intro text --- */
.tpt-about-intro__content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.7;
    color: var(--tpt-navy-light);
    text-align: center;
}

.tpt-about-intro__content p {
    margin-bottom: 25px;
}

/* --- Founding Values --- */
.tpt-about-fv__header {
    display: flex;
    gap: 30px;
    align-items: stretch;
    margin-bottom: 40px;
}

.tpt-about-fv__image-wrap {
    flex: 1;
}

.tpt-about-fv__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tpt-about-fv__title-box {
    background-color: var(--tpt-yellow);
    padding: 40px 50px;
    display: flex;
    align-items: flex-start;
    min-width: 300px;
}

.tpt-about-fv__title {
    font-family: var(--tpt-font-body);
    font-size: 45px;
    font-weight: 900;
    color: var(--tpt-navy);
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
}

.tpt-about-fv__content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.7;
    color: var(--tpt-dark-gray);
    text-align: center;
}

.tpt-about-fv__content h3,
.tpt-about-fv__content h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--tpt-dark-gray);
    margin: 40px 0 15px;
    text-align: center;
}

.tpt-about-fv__content h4 b,
.tpt-about-fv__content h4 strong {
    font-weight: 700;
}

.tpt-about-fv__content img {
    display: block;
    margin: 30px auto 10px;
    max-width: 90px;
}

.tpt-about-fv__content p {
    margin-bottom: 20px;
}

/* --- Vision --- */
.tpt-about-vision__layout {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.tpt-about-vision__image-wrap {
    flex: 1;
}

.tpt-about-vision__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tpt-about-vision__box {
    background-color: var(--tpt-yellow);
    padding: 40px 50px;
    min-width: 350px;
    max-width: 450px;
}

.tpt-about-vision__title {
    font-family: var(--tpt-font-body);
    font-size: 50px;
    font-weight: 900;
    color: var(--tpt-navy);
    text-transform: uppercase;
    margin: 0 0 15px;
}

.tpt-about-vision__text {
    font-size: 16px;
    color: var(--tpt-navy);
    line-height: 1.6;
}

.tpt-about-vision__text p {
    margin-bottom: 10px;
}

/* --- Section headings (TEAM, REGULATION) --- */
.tpt-about-section-heading {
    font-family: var(--tpt-font-body);
    font-size: 45px;
    font-weight: 900;
    color: var(--tpt-yellow);
    text-transform: uppercase;
    margin: 0 0 20px;
    padding: 10px 20px;
    background-color: var(--tpt-yellow);
    color: var(--tpt-navy);
    display: inline-block;
}

/* --- Team --- */
.tpt-about-team__content {
    font-size: 18px;
    line-height: 1.7;
    color: var(--tpt-dark-gray);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.tpt-about-team__content p {
    margin-bottom: 20px;
}

/* --- Regulation --- */
.tpt-about-regulation__content {
    font-size: 18px;
    line-height: 1.7;
    color: var(--tpt-dark-gray);
    max-width: 800px;
    margin-bottom: 30px;
}

.tpt-about-regulation__action {
    margin-top: 20px;
}

/* ==========================================================================
   PROJECTS LISTING
   Extracted from twoplustwo.eu/open-calls/ - 2-column card grid
   ========================================================================== */

/* --- Hero --- */
.tpt-hero--projects {
    min-height: 730px;
    background-size: cover;
    background-position: 50% 0%;
    background-color: var(--tpt-dark-gray);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.tpt-hero--projects__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.tpt-hero--projects__bottom {
    position: relative;
    z-index: 2;
    padding-bottom: 0;
}

.tpt-hero--projects__box {
    background: var(--tpt-yellow);
    padding: 40px 73px 40px 73px;
    max-width: var(--tpt-container-width);
    margin: 0 auto;
    width: 100%;
}

.tpt-hero--projects__title {
    font-family: var(--tpt-font-body);
    font-size: 80px;
    font-weight: 900;
    color: var(--tpt-navy);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 15px;
}

.tpt-hero--projects__description {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--tpt-navy);
}

/* --- Project Grid --- */
.tpt-projects-listing {
    padding: 60px 0;
}

.tpt-projects-listing__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.tpt-project-card {
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.tpt-project-card:hover {
    transform: translateY(-3px);
}

.tpt-project-card__thumb {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--tpt-light-gray);
}

.tpt-project-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tpt-project-card__placeholder {
    width: 100%;
    height: 100%;
    background: var(--tpt-light-gray);
}

.tpt-project-card__title-bar {
    background: var(--tpt-yellow);
    padding: 15px 20px;
}

.tpt-project-card__title {
    font-family: var(--tpt-font-nav);
    font-size: 30px;
    font-weight: 600;
    color: var(--tpt-black);
    text-align: center;
    margin: 0;
}

.tpt-project-card__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 12px;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--tpt-dark-gray);
}

.tpt-project-card__type {
    font-weight: 600;
}

.tpt-project-card__type[data-href] {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.tpt-project-card__type[data-href]:hover {
    text-decoration-style: solid;
    color: var(--tpt-navy);
}

.tpt-project-card__duration {
    font-style: italic;
}

.tpt-projects-listing__action {
    text-align: center;
    margin-top: 50px;
}

.tpt-projects-listing__empty {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 18px;
    color: var(--tpt-dark-gray);
}

/* ==========================================================================
   SINGLE PROJECT
   Extracted from twoplustwo.eu/progetti/tomorrow-today/
   ========================================================================== */

/* --- Hero --- */
.tpt-hero--single-project {
    min-height: 400px;
    background-size: cover;
    background-position: center center;
    background-color: var(--tpt-dark-gray);
    position: relative;
}

.tpt-hero--single-project__overlay {
    position: absolute;
    inset: 0;
    background: rgba(16, 0, 71, 0.25);
}

/* --- Title Bar (yellow) --- */
/* --- Title Box (navy, boxed ~1200px, overlaps hero) --- */
.tpt-sp-title-section {
    position: relative;
    z-index: 2;
    margin-top: -120px;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.tpt-sp-title-section__box {
    background: var(--tpt-navy);
    max-width: 1200px;
    width: 100%;
    padding: 50px 60px 30px;
}

.tpt-sp-title-section__title {
    font-family: var(--tpt-font-body);
    font-size: 60px;
    font-weight: 900;
    color: var(--tpt-yellow);
    line-height: 1.1;
    margin-bottom: 25px;
}

/* --- Meta (inside navy box) --- */
.tpt-sp-meta__row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.tpt-sp-meta__label {
    font-size: 18px;
    font-weight: 600;
    color: var(--tpt-yellow);
}

.tpt-sp-meta__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tpt-sp-meta__tag {
    color: var(--tpt-white);
    font-size: 16px;
    font-weight: 400;
}

.tpt-sp-meta__tag--link {
    color: var(--tpt-yellow);
    text-decoration: underline;
    text-decoration-style: dotted;
}

.tpt-sp-meta__tag--link:hover {
    color: var(--tpt-white);
    text-decoration-style: solid;
}

.tpt-sp-meta__sep {
    color: var(--tpt-white);
    font-size: 16px;
}

.tpt-sp-meta__flags {
    display: flex;
    gap: 6px;
    font-size: 28px;
}

.tpt-sp-meta__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.tpt-sp-meta__date {
    font-size: 18px;
    font-weight: 700;
    color: var(--tpt-yellow);
}

.tpt-sp-meta__where {
    font-size: 18px;
    font-weight: 700;
    color: var(--tpt-yellow);
}

.tpt-sp-meta__where-label {
    margin-right: 4px;
}

/* --- Content blocks (Objectives, The Project) --- */
.tpt-sp-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.tpt-sp-block__heading-bar {
    background: var(--tpt-yellow);
    padding: 25px 60px;
    max-width: 1200px;
    width: 100%;
    margin-top: 40px;
}

.tpt-sp-block__heading {
    font-family: var(--tpt-font-body);
    font-size: 45px;
    font-weight: 900;
    color: var(--tpt-navy);
    margin: 0;
}

.tpt-sp-block__content {
    font-size: 18px;
    line-height: 1.85;
    color: var(--tpt-black);
    max-width: 1200px;
    width: 100%;
    padding: 40px 60px;
}

.tpt-sp-block__content ul {
    padding-left: 20px;
    margin: 15px 0;
}

.tpt-sp-block__content li {
    margin-bottom: 8px;
}

/* --- WordPress image alignment (Classic & Gutenberg editors) --- */
.tpt-sp-block__content img,
.tpt-sp-conditions__content img {
    max-width: 100%;
    height: auto;
}

.tpt-sp-block__content .alignleft,
.tpt-sp-conditions__content .alignleft {
    float: left;
    margin: 0.5em 1.5em 1em 0;
    max-width: 50%;
}

.tpt-sp-block__content .alignright,
.tpt-sp-conditions__content .alignright {
    float: right;
    margin: 0.5em 0 1em 1.5em;
    max-width: 50%;
}

.tpt-sp-block__content .aligncenter,
.tpt-sp-conditions__content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
    clear: both;
}

.tpt-sp-block__content .alignnone,
.tpt-sp-conditions__content .alignnone {
    display: block;
    margin-bottom: 1em;
}

/* WP captions */
.tpt-sp-block__content .wp-caption,
.tpt-sp-conditions__content .wp-caption {
    max-width: 100%;
}

.tpt-sp-block__content .wp-caption-text,
.tpt-sp-conditions__content .wp-caption-text {
    font-size: 14px;
    color: var(--tpt-dark-gray);
    text-align: center;
    margin-top: 6px;
}

/* Gutenberg image block */
.tpt-sp-block__content .wp-block-image,
.tpt-sp-conditions__content .wp-block-image {
    margin-bottom: 1em;
}

.tpt-sp-block__content .wp-block-image.alignleft,
.tpt-sp-conditions__content .wp-block-image.alignleft {
    float: left;
    margin-right: 1.5em;
}

.tpt-sp-block__content .wp-block-image.alignright,
.tpt-sp-conditions__content .wp-block-image.alignright {
    float: right;
    margin-left: 1.5em;
}

/* Clear floats after content sections */
.tpt-sp-block__content::after,
.tpt-sp-conditions__content::after {
    content: "";
    display: table;
    clear: both;
}

/* --- Conditions --- */
.tpt-sp-conditions__heading {
    font-size: 30px;
    font-weight: 400;
    color: var(--tpt-dark-gray);
    margin-bottom: 25px;
}

.tpt-sp-conditions__content {
    font-size: 18px;
    line-height: 1.85;
    color: var(--tpt-black);
    max-width: 800px;
}

.tpt-sp-conditions__content ul {
    padding-left: 20px;
    margin: 15px 0;
}

.tpt-sp-conditions__content li {
    margin-bottom: 8px;
}

.tpt-sp-conditions__content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 15px;
}

/* --- Apply Button --- */
.tpt-sp-apply {
    padding: 40px 0;
}

.tpt-sp-apply__center {
    text-align: center;
}

.tpt-sp-apply__btn {
    display: inline-block;
    background: var(--tpt-yellow);
    color: var(--tpt-black);
    font-family: var(--tpt-font-body);
    font-size: 23px;
    font-weight: 900;
    padding: 30px 140px;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
}

.tpt-sp-apply__btn:hover {
    opacity: 0.85;
}

/* --- Food for Thought + Video --- */
.tpt-sp-extra__layout {
    display: flex;
    gap: 60px;
}

.tpt-sp-extra__col {
    flex: 1;
}

.tpt-sp-extra__title {
    font-family: var(--tpt-font-body);
    font-size: 27px;
    font-weight: 900;
    color: var(--tpt-navy-light);
    margin-bottom: 20px;
}

.tpt-sp-extra__text {
    font-size: 18px;
    line-height: 1.85;
    color: var(--tpt-black);
}

.tpt-sp-extra__video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.tpt-sp-extra__video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Gallery --- */
.tpt-sp-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.tpt-sp-gallery__item {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
}

.tpt-sp-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.tpt-sp-gallery__item:hover img {
    transform: scale(1.05);
}

/* --- Files section --- */
.tpt-sp-files__content {
    font-size: 18px;
    line-height: 1.85;
    color: var(--tpt-black);
    max-width: 800px;
}

.tpt-sp-files__content a {
    color: var(--tpt-navy);
    font-weight: 600;
    text-decoration: underline;
}

/* --- EU Logo + Partner Logos --- */
.tpt-sp-logos {
    padding: 40px 0;
    text-align: center;
}

.tpt-sp-logos__eu {
    margin-bottom: 30px;
}

.tpt-sp-logos__eu img {
    max-width: 280px;
    height: auto;
}

.tpt-sp-logos__partners {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.tpt-sp-logos__partner-img {
    max-width: 160px;
    max-height: 80px;
    height: auto;
    object-fit: contain;
}

/* --- Lightbox --- */
.tpt-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tpt-lightbox.is-active {
    opacity: 1;
    visibility: visible;
}

.tpt-lightbox__img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    cursor: default;
}

.tpt-lightbox__close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--tpt-white);
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.tpt-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tpt-white);
    font-size: 50px;
    cursor: pointer;
    padding: 20px;
    z-index: 10;
    user-select: none;
}

.tpt-lightbox__nav--prev {
    left: 10px;
}

.tpt-lightbox__nav--next {
    right: 10px;
}

/* ==========================================================================
   NEWS LISTING
   ========================================================================== */

/* --- Hero --- */
.tpt-hero--news {
    position: relative;
    min-height: 730px;
    background-size: cover;
    background-position: 50% 0%;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}

.tpt-hero--news__overlay {
    position: absolute;
    inset: 0;
    background: var(--tpt-navy);
    opacity: 0.7;
    z-index: 1;
}

.tpt-hero--news__bottom {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 0 60px;
}

.tpt-hero--news__box {
    background: var(--tpt-yellow);
    max-width: 869px;
    padding: 83px 84px 70px 73px;
}

.tpt-hero--news__title {
    font-family: var(--tpt-font-body);
    font-size: 80px;
    font-weight: 900;
    color: var(--tpt-navy);
    line-height: 1;
    margin-bottom: 20px;
}

.tpt-hero--news__description {
    font-size: 18px;
    font-weight: 400;
    color: var(--tpt-dark-gray);
    line-height: 1.6;
}

/* --- Category Filter (pills/chips) --- */
.tpt-news-filter {
    padding: 20px 0 24px;
}

.tpt-news-filter__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.tpt-news-filter__item {
    display: inline-block;
    font-family: var(--tpt-font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--tpt-dark-gray);
    text-decoration: none;
    padding: 8px 22px;
    border: 1.5px solid #ccc;
    border-radius: 20px;
    background: var(--tpt-white);
    transition: all 0.2s ease;
}

.tpt-news-filter__item:hover {
    border-color: var(--tpt-navy);
    color: var(--tpt-navy);
    text-decoration: none;
}

.tpt-news-filter__item.is-active {
    background: var(--tpt-yellow);
    border-color: var(--tpt-navy);
    color: var(--tpt-navy);
    font-weight: 700;
    text-decoration: none;
}

/* --- News Grid --- */
.tpt-news-listing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px 20px;
    max-width: 1120px;
    margin: 0 auto;
}

/* --- News Card (shared between listing + featured) --- */
.tpt-news-card {
    display: block;
    background: var(--tpt-yellow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tpt-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tpt-news-card__thumb {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.tpt-news-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tpt-news-card__placeholder {
    width: 100%;
    height: 100%;
    background: var(--tpt-light-gray);
}

.tpt-news-card__text {
    padding: 15px 20px 20px;
}

.tpt-news-card__title {
    font-family: var(--tpt-font-nav);
    font-size: 24px;
    font-weight: 600;
    color: var(--tpt-black);
    line-height: 1.3;
    margin-bottom: 8px;
}

.tpt-news-card__excerpt {
    font-size: 15px;
    font-weight: 400;
    color: var(--tpt-dark-gray);
    line-height: 1.85;
    margin-bottom: 10px;
}

.tpt-news-card__more {
    font-size: 15px;
    font-weight: 500;
    color: var(--tpt-black);
}

.tpt-news-listing__empty {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 18px;
    color: var(--tpt-dark-gray);
    padding: 60px 0;
}

/* --- Pagination --- */
.tpt-news-listing__pagination {
    text-align: center;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.tpt-news-listing__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 16px;
    font-weight: 600;
    color: var(--tpt-black);
    text-decoration: none;
    border: 1px solid var(--tpt-light-gray);
    transition: background 0.2s ease;
}

.tpt-news-listing__pagination .page-numbers.current,
.tpt-news-listing__pagination .page-numbers:hover {
    background: var(--tpt-yellow);
    border-color: var(--tpt-yellow);
}

/* ==========================================================================
   SINGLE NEWS
   ========================================================================== */

/* --- Hero --- */
.tpt-hero--single-news {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: 50% 100%;
    background-repeat: no-repeat;
}

/* --- Title Section (navy, overlaps hero) --- */
.tpt-sn-title-section {
    position: relative;
    z-index: 2;
    margin-top: -120px;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.tpt-sn-title-section__box {
    background: var(--tpt-navy);
    max-width: 1200px;
    width: 100%;
    padding: 60px 60px 40px;
}

.tpt-sn-title-section__title {
    font-family: var(--tpt-font-body);
    font-size: 69px;
    font-weight: 900;
    color: var(--tpt-yellow);
    line-height: 1.15;
    margin-bottom: 15px;
}

.tpt-sn-title-section__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.tpt-sn-title-section__meta {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 20px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.tpt-sn-title-section__tag {
    font-size: 20px;
    font-weight: 700;
    color: var(--tpt-white);
}

.tpt-sn-title-section__tag-sep {
    color: var(--tpt-white);
    font-size: 20px;
}

/* --- Share Buttons --- */
.tpt-sn-share {
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.tpt-sn-share__box {
    background: var(--tpt-yellow);
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 60px;
}

.tpt-sn-share__heading {
    font-family: var(--tpt-font-nav);
    font-size: 26px;
    font-weight: 700;
    color: var(--tpt-black);
    margin: 0;
    white-space: nowrap;
}

.tpt-sn-share__buttons {
    display: flex;
    gap: 5px;
}

.tpt-sn-share__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: var(--tpt-white);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.tpt-sn-share__btn:hover {
    opacity: 0.8;
}

.tpt-sn-share__btn--facebook { background: #3b5998; }
.tpt-sn-share__btn--twitter { background: #1da1f2; }
.tpt-sn-share__btn--linkedin { background: #0077b5; }
.tpt-sn-share__btn--email { background: #35465c; }

/* --- Article Body --- */
.tpt-sn-body {
    display: flex;
    justify-content: center;
    padding: 40px 20px 60px;
}

.tpt-sn-body__box {
    max-width: 1200px;
    width: 100%;
    padding: 0 60px;
}

.tpt-sn-body__content {
    max-width: 100%;
    font-size: 20px;
    font-weight: 400;
    color: var(--tpt-black);
    line-height: 1.85;
}

.tpt-sn-body__content p {
    margin-bottom: 1.5em;
}

.tpt-sn-body__content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.tpt-sn-body__content h2,
.tpt-sn-body__content h3 {
    font-weight: 900;
    color: var(--tpt-navy);
    margin: 1.5em 0 0.5em;
}

.tpt-sn-body__content h2 {
    font-size: 32px;
}

.tpt-sn-body__content h3 {
    font-size: 26px;
}

.tpt-sn-body__content a {
    color: var(--tpt-blue);
    text-decoration: underline;
}

.tpt-sn-body__content blockquote {
    border-left: 4px solid var(--tpt-yellow);
    padding-left: 20px;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--tpt-dark-gray);
}

/* --- Featured Articles --- */
.tpt-sn-featured {
    padding: 50px 0 60px;
    border-top: 1px solid var(--tpt-light-gray);
}

.tpt-sn-featured__heading {
    font-family: var(--tpt-font-body);
    font-size: 27px;
    font-weight: 900;
    color: var(--tpt-navy-light);
    margin-bottom: 30px;
}

.tpt-sn-featured__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 31px 22px;
}

/* ==========================================================================
   MEMBERSHIP
   ========================================================================== */

.tpt-hero--membership {
    position: relative;
    min-height: 640px;
    background-size: cover;
    background-position: 50% 0%;
    background-repeat: no-repeat;
}

.tpt-mem-header {
    padding-top: 60px;
}

.tpt-mem-header__layout {
    max-width: var(--tpt-container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.tpt-mem-header__image-col {
    position: relative;
    display: flex;
    align-items: flex-start;
}

.tpt-mem-header__image {
    width: 60%;
    display: block;
}

.tpt-mem-header__box {
    background: var(--tpt-yellow);
    padding: 50px 60px;
    margin-left: -60px;
    margin-top: 60px;
    align-self: flex-start;
}

.tpt-mem-header__box--standalone {
    margin: 0 auto;
    display: block;
    text-align: center;
}

.tpt-mem-header__title {
    font-family: var(--tpt-font-body);
    font-size: 45px;
    font-weight: 900;
    color: var(--tpt-navy);
    line-height: 1.1;
}

.tpt-mem-body {
    padding: 60px 0;
}

.tpt-mem-body__content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
    color: var(--tpt-dark-gray);
}

.tpt-mem-body__content h2,
.tpt-mem-body__content h3 {
    font-family: var(--tpt-font-body);
    font-weight: 900;
    color: var(--tpt-navy);
    margin: 1.5em 0 0.5em;
}

.tpt-mem-body__content h2 {
    font-size: 28px;
}

.tpt-mem-body__content h3 {
    font-size: 22px;
}

.tpt-mem-body__content p {
    margin-bottom: 1.2em;
}

.tpt-mem-body__content strong {
    font-weight: 700;
    color: var(--tpt-black);
}

.tpt-mem-body__content a {
    color: var(--tpt-blue);
    text-decoration: underline;
}

/* ==========================================================================
   CONTACTS
   ========================================================================== */

.tpt-hero--contacts {
    position: relative;
    min-height: 350px;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

/* --- Yellow Header Box --- */
.tpt-contact-header {
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.tpt-contact-header__box {
    background: var(--tpt-yellow);
    max-width: 1200px;
    width: 100%;
    padding: 40px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.tpt-contact-header__title {
    font-family: var(--tpt-font-body);
    font-size: 80px;
    font-weight: 900;
    color: var(--tpt-navy);
    line-height: 1;
}

.tpt-contact-header__social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tpt-contact-header__follow {
    font-family: var(--tpt-font-body);
    font-size: 24px;
    font-weight: 900;
    color: var(--tpt-navy);
}

.tpt-contact-header__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--tpt-yellow);
    color: var(--tpt-navy);
    border: 2px solid var(--tpt-navy);
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.tpt-contact-header__icon:hover {
    background: var(--tpt-navy);
    color: var(--tpt-yellow);
}

/* --- Address + Map --- */
.tpt-contact-info {
    padding: 60px 0;
}

.tpt-contact-info__layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.tpt-contact-info__details {
    background: var(--tpt-yellow);
    padding: 30px 35px;
    border-radius: 4px;
}

.tpt-contact-info__group {
    margin-bottom: 30px;
}

.tpt-contact-info__group:last-child {
    margin-bottom: 0;
}

.tpt-contact-info__label {
    font-family: var(--tpt-font-body);
    font-size: 20px;
    font-weight: 900;
    color: var(--tpt-navy);
    margin-bottom: 8px;
}

.tpt-contact-info__text {
    font-size: 16px;
    color: var(--tpt-dark-gray);
    line-height: 1.8;
}

.tpt-contact-info__text a {
    color: var(--tpt-blue);
    text-decoration: underline;
}

.tpt-contact-info__map {
    border-radius: 4px;
    overflow: hidden;
}

.tpt-contact-info__map iframe {
    display: block;
    width: 100%;
}

/* --- Membership Section (text left + image right) --- */
.tpt-membership {
    background: var(--tpt-white);
    padding: 60px 0 80px;
}

.tpt-membership__heading {
    background: var(--tpt-yellow);
    font-family: var(--tpt-font-body);
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--tpt-navy);
    margin-bottom: 40px;
    text-align: center;
    padding: 30px 60px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.tpt-membership__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.tpt-membership__content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--tpt-dark-gray);
    margin-bottom: 30px;
}

.tpt-membership__content p {
    margin-bottom: 1em;
}

.tpt-membership__btn-wrap {
    text-align: center;
}

.tpt-membership__btn {
    display: inline-block;
    background: var(--tpt-yellow);
    color: var(--tpt-navy);
    font-family: var(--tpt-font-body);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 14px 40px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.tpt-membership__btn:hover {
    background: var(--tpt-navy);
    color: var(--tpt-yellow);
    transform: translateY(-2px);
}

.tpt-membership__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 350px;
}

/* --- Sign-up Section (image left + yellow box right) --- */
.tpt-contact-signup {
    background: var(--tpt-white);
    padding: 60px 0 80px;
}

.tpt-contact-signup__layout {
    display: flex;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 0;
    position: relative;
}

.tpt-contact-signup__image {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
    z-index: 1;
}

.tpt-contact-signup__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 400px;
}

.tpt-contact-signup__box {
    flex: 1;
    background: var(--tpt-yellow);
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    margin-left: -30px;
    margin-top: 40px;
    margin-bottom: -20px;
}

.tpt-contact-signup__title {
    font-family: var(--tpt-font-body);
    font-size: 30px;
    font-weight: 900;
    color: var(--tpt-navy);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.tpt-contact-signup__separator {
    width: 60px;
    height: 3px;
    background: var(--tpt-navy);
    margin-bottom: 25px;
}

.tpt-contact-signup__content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--tpt-dark-gray);
}

.tpt-contact-signup__content a {
    color: var(--tpt-blue);
    text-decoration: underline;
}

.tpt-contact-signup__content p {
    margin-bottom: 1em;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .tpt-header__logo {
        width: 400px;
    }

    .tpt-footer__cta-title {
        font-size: 32px;
    }

    /* Homepage */
    .tpt-home-news__grid,
    .tpt-home-projects__grid {
        max-width: 100%;
        padding: 0 20px;
    }

    .tpt-home-card__title {
        font-size: 22px;
    }

    .tpt-home-ed__layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tpt-home-ed__heading {
        font-size: 28px;
        padding: 22px 25px;
        margin-bottom: 25px;
    }

    .tpt-home-ed__image img {
        min-height: 280px;
    }

    .tpt-home-quote__text {
        font-size: 28px;
    }

    /* Projects Listing */
    .tpt-hero--projects__title {
        font-size: 55px;
    }

    .tpt-hero--projects__box {
        padding: 30px 40px;
    }

    .tpt-hero--projects__description {
        font-size: 18px;
    }

    /* Single Project */
    .tpt-sp-title-section__title {
        font-size: 42px;
    }

    .tpt-sp-block__heading {
        font-size: 35px;
    }

    .tpt-sp-apply__btn {
        padding: 25px 80px;
        font-size: 20px;
    }

    /* News Listing */
    .tpt-hero--news__title {
        font-size: 55px;
    }

    .tpt-hero--news__box {
        padding: 30px 40px;
    }

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

    /* Single News */
    .tpt-sn-title-section__title {
        font-size: 48px;
    }

    .tpt-sn-share__heading {
        font-size: 24px;
    }

    .tpt-sn-body__content {
        font-size: 18px;
    }

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

    /* Membership */
    .tpt-mem-header__title {
        font-size: 35px;
    }

    /* Contacts */
    .tpt-contact-header__title {
        font-size: 55px;
    }
}

@media (max-width: 768px) {
    /* Grid */
    .tpt-grid--2,
    .tpt-grid--3 {
        grid-template-columns: 1fr;
    }

    /* Hide desktop navbar on mobile */
    .tpt-navbar {
        display: none;
    }

    /* Mobile: always hamburger style (visible via is-visible class from JS) */
    .tpt-sidebar-toggle {
        border-radius: 50%;
        width: 48px;
        height: 48px;
        padding: 0;
        flex-direction: column;
        gap: 5px;
        top: 15px;
        right: 15px;
    }

    .tpt-sidebar-toggle__label {
        display: none;
    }

    .tpt-sidebar-toggle__bar {
        display: block;
    }

    /* Header */
    .tpt-header {
        padding-top: 20px;
    }

    .tpt-header__logo {
        width: 250px;
    }

    /* Sidebar adjustments */
    .tpt-sidebar {
        width: 280px;
    }

    .tpt-sidebar__menu-item a {
        font-size: 22px;
        padding: 14px 25px;
    }

    /* Hero */
    .tpt-hero {
        min-height: 500px;
        padding-bottom: 60px;
    }

    .tpt-hero__title-box h1,
    .tpt-hero__title-box h2 {
        font-size: 28px;
    }

    /* Homepage */
    .tpt-hero--home {
        min-height: 500px;
    }

    .tpt-hero--home__title {
        font-size: 32px;
    }

    /* About Us */
    .tpt-hero--about {
        min-height: 500px;
        padding-bottom: 60px;
    }

    .tpt-hero--about__title {
        font-size: 45px;
    }

    .tpt-hero--about__mission-text {
        font-size: 16px;
    }

    .tpt-about-fv__header {
        flex-direction: column;
    }

    .tpt-about-fv__title-box {
        min-width: auto;
    }

    .tpt-about-fv__title {
        font-size: 32px;
    }

    .tpt-about-vision__layout {
        flex-direction: column;
    }

    .tpt-about-vision__box {
        min-width: auto;
        max-width: none;
    }

    .tpt-about-vision__title {
        font-size: 32px;
    }

    .tpt-about-section-heading {
        font-size: 32px;
    }

    .tpt-hero--home {
        padding-bottom: 180px;
    }

    .tpt-home-news {
        margin-top: -150px;
    }

    .tpt-home-news__subtitle-box {
        max-width: 100%;
        padding: 15px 20px;
    }

    .tpt-home-news__subtitle {
        font-size: 20px;
    }

    .tpt-home-news__grid,
    .tpt-home-projects__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: -10px auto 0;
        gap: 15px;
        padding: 0 20px;
    }

    .tpt-home-card__thumb {
        aspect-ratio: 4 / 5;
    }

    .tpt-show-more-btn {
        padding: 12px 50px;
        letter-spacing: 3px;
    }

    .tpt-home-quote {
        min-height: 400px;
        padding: 100px 20px;
    }

    .tpt-home-quote__text {
        font-size: 22px;
    }

    .tpt-home-quote__author {
        font-size: 16px;
    }

    .tpt-home-video {
        padding: 0 20px;
    }

    /* Projects Listing */
    .tpt-hero--projects {
        min-height: 500px;
    }

    .tpt-hero--projects__title {
        font-size: 40px;
    }

    .tpt-hero--projects__box {
        padding: 25px 20px;
    }

    .tpt-hero--projects__description {
        font-size: 16px;
    }

    .tpt-projects-listing__grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        gap: 25px;
    }

    .tpt-project-card__title {
        font-size: 22px;
    }

    /* Single Project */
    .tpt-hero--single-project {
        min-height: 250px;
    }

    .tpt-sp-title-section__title {
        font-size: 32px;
    }

    .tpt-sp-block__heading {
        font-size: 28px;
    }

    .tpt-sp-title-section__box {
        padding: 30px 25px 20px;
    }

    .tpt-sp-block__heading-bar {
        padding: 20px 25px;
    }

    .tpt-sp-block__content {
        padding: 25px 25px 30px;
    }

    .tpt-sp-extra__layout {
        flex-direction: column;
        gap: 30px;
    }

    .tpt-sp-apply__btn {
        padding: 20px 60px;
        font-size: 18px;
    }

    .tpt-sp-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tpt-sp-conditions__heading {
        font-size: 24px;
    }

    /* News Listing */
    .tpt-hero--news {
        min-height: 500px;
    }

    .tpt-hero--news__title {
        font-size: 40px;
    }

    .tpt-hero--news__box {
        padding: 25px 20px;
    }

    .tpt-hero--news__description {
        font-size: 16px;
    }

    .tpt-news-listing__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
        gap: 25px;
    }

    .tpt-news-card__title {
        font-size: 20px;
    }

    .tpt-news-filter__list {
        gap: 8px;
    }

    .tpt-news-filter__item {
        font-size: 14px;
        padding: 6px 16px;
    }

    /* Single News */
    .tpt-hero--single-news {
        min-height: 300px;
    }

    .tpt-sn-title-section {
        margin-top: -80px;
        padding: 0 15px;
    }

    .tpt-sn-title-section__box {
        padding: 40px 25px 30px;
    }

    .tpt-sn-title-section__title {
        font-size: 32px;
    }

    .tpt-sn-title-section__tag {
        font-size: 16px;
    }

    .tpt-sn-share {
        padding: 0 15px;
    }

    .tpt-sn-share__box {
        padding: 15px 25px;
    }

    .tpt-sn-share__heading {
        font-size: 22px;
    }

    .tpt-sn-body {
        padding: 30px 15px 40px;
    }

    .tpt-sn-body__box {
        padding: 0 25px;
    }

    .tpt-sn-body__content {
        font-size: 17px;
    }

    .tpt-sn-featured__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .tpt-sn-featured__heading {
        font-size: 22px;
    }

    /* Membership */
    .tpt-hero--membership {
        min-height: 400px;
    }

    .tpt-mem-header__title {
        font-size: 30px;
    }

    .tpt-mem-body__content {
        font-size: 16px;
        text-align: left;
    }

    /* Contacts */
    .tpt-hero--contacts {
        min-height: 250px;
    }

    .tpt-contact-header {
        padding: 0 15px;
    }

    .tpt-contact-header__box {
        padding: 30px 25px;
        flex-direction: column;
        align-items: flex-start;
    }

    .tpt-contact-header__title {
        font-size: 40px;
    }

    .tpt-contact-info__layout {
        grid-template-columns: 1fr;
    }

    .tpt-membership__layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tpt-membership__heading {
        font-size: 28px;
        margin-bottom: 25px;
        padding: 22px 25px;
    }

    .tpt-membership__image img {
        min-height: 280px;
    }

    .tpt-contact-signup__layout {
        flex-direction: column;
    }

    .tpt-contact-signup__image {
        flex: none;
        max-width: 100%;
    }

    .tpt-contact-signup__image img {
        min-height: 280px;
    }

    .tpt-contact-signup__box {
        margin-left: 0;
        margin-top: -30px;
        margin-bottom: 0;
        padding: 35px 25px;
    }

    .tpt-contact-signup__title {
        font-size: 26px;
    }

    /* Footer */
    .tpt-footer {
        padding: 50px 0;
    }

    .tpt-footer__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tpt-footer__cta-title {
        font-size: 28px;
    }

    .tpt-footer__info-row .tpt-footer__col {
        padding: 30px;
    }

    .tpt-footer__policy {
        align-items: flex-start;
        padding: 20px 30px;
    }

    .tpt-footer__association {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .tpt-header__logo {
        width: 180px;
    }

    .tpt-sidebar-toggle__bar {
        width: 20px;
    }

    .tpt-footer__cta-title {
        font-size: 24px;
    }

    .tpt-footer__share-buttons {
        flex-wrap: wrap;
    }
}

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

.tpt-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--tpt-navy);
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.tpt-404::before {
    content: '404';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(200px, 40vw, 500px);
    font-weight: 900;
    color: rgba(252, 240, 49, 0.04);
    line-height: 1;
    pointer-events: none;
    font-family: var(--tpt-font-body);
}

.tpt-404__inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.tpt-404__number {
    font-size: clamp(80px, 15vw, 140px);
    font-weight: 900;
    color: var(--tpt-yellow);
    line-height: 1;
    margin: 0;
    letter-spacing: -2px;
}

.tpt-404__divider {
    width: 60px;
    height: 4px;
    background-color: var(--tpt-yellow);
    margin: 24px auto;
}

.tpt-404__title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: var(--tpt-white);
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tpt-404__text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin: 0 0 40px;
}

.tpt-404__btn {
    display: inline-block;
    padding: 14px 40px;
    background-color: var(--tpt-yellow);
    color: var(--tpt-black);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.tpt-404__btn:hover {
    background-color: #e8dc2d;
    transform: translateY(-2px);
}

.tpt-404__suggestions {
    margin: 0 0 40px;
    padding: 24px 32px;
    background: rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--tpt-yellow);
}

.tpt-404__suggestions-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--tpt-yellow);
    margin: 0 0 12px;
}

.tpt-404__suggestions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tpt-404__suggestions-list li {
    margin: 0 0 8px;
}

.tpt-404__suggestions-list li:last-child {
    margin-bottom: 0;
}

.tpt-404__suggestions-list a {
    color: var(--tpt-white);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.tpt-404__suggestions-list a:hover {
    color: var(--tpt-yellow);
}
