:root {
    --bg: #0b0909;
    --panel: #131010;
    --gold: #d7ac68;
    --gold2: #f2d59b;
    --text: #eee7df;
    --muted: #c3b8ae;
    --line: #735735;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Georgia,'Times New Roman',serif;
    line-height: 1.55;
}

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

a:hover {
    color: var(--gold2);
}

.wrap {
    width: min(1140px,92%);
    margin: auto;
}

.site-header {
    position: relative;
    z-index: 5;
    background: #080707;
    border-bottom: 1px solid #3c3023;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
    gap: 20px;
}

.brand {
    color: var(--gold);
    font-size: 24px;
    white-space: nowrap;
}

.brand span {
    margin-left: 8px;
    letter-spacing: 2px;
}

.site-header nav {
    display: flex;
    gap: 24px;
    font: 12px Arial,sans-serif;
    letter-spacing: 1.5px;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    color: var(--gold);
    font-size: 24px;
    padding: 5px 12px;
}


.hero {
    min-height: 620px;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.60) 0%,
            rgba(0, 0, 0, 0.18) 48%,
            rgba(0, 0, 0, 0) 75%
        ),
        url('/assets/img/hero.webp') center / cover no-repeat;

    background-color: #080707;
}

.hero-inner {
    display: flex;
    align-items: center;
    min-height: 620px;
}

.hero-copy {
    width: min(600px,100%);
    text-align: center;
    padding: 55px 0;
}

.crown {
    display: block;
    width: 70px;
    height: 70px;
    margin: 0 auto;
    line-height: 0;
}

.crown img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.closing .crown {
    width: 60px;
    height: 60px;
    margin: 0;
}

.hero h1 {
    font-size: clamp(55px,7vw,95px);
    font-weight: normal;
    line-height: 1;
    margin: 4px 0;
    color: var(--gold2);
    letter-spacing: 3px;
}

.eyebrow {
    font: 11px Arial,sans-serif;
    letter-spacing: 2px;
}

.ornament {
    color: var(--gold);
    margin: 20px auto;
    font-size: 22px;
}

.hero h2 {
    font-size: clamp(24px,3vw,38px);
    font-weight: normal;
    line-height: 1.2;
}

.hero h2 em {
    font-style: normal;
    color: var(--gold);
}

.hero-copy>p:not(.eyebrow) {
    font-size: 17px;
}

.btn {
    display: inline-block;
    border: 1px solid #c79b55;
    border-radius: 5px;
    padding: 13px 25px;
    margin-top: 20px;
    background: linear-gradient(#efd095,#aa722d);
    color: #1b1209;
    font-size: 13px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
}

.btn:hover {
    color: #160f08;
    filter: brightness(1.14);
}

.section {
    padding: 68px 0;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.section h2,.courtesy h2 {
    color: var(--gold);
    font-weight: normal;
    font-size: clamp(22px,2.5vw,30px);
    line-height: 1.25;
}

.intro p {
    font-size: 17px;
}

.gold {
    color: var(--gold);
}

.rule {
    height: 1px;
    width: 220px;
    background: var(--line);
    margin: 20px 0;
}

.photo {
    min-height: 490px;
    border: 1px solid var(--line);
    background: #1c1515 url('/assets/img/intro.webp') center / cover no-repeat;
}

.statement {
    padding: 35px 0 20px;
    text-align: center;
    border-block: 1px solid var(--line);
    background: linear-gradient(120deg,#161111,#070606,#231b1a);
}

.statement p {
    font-size: clamp(22px,3vw,36px);
    line-height: 1.2;
    margin: 0;
}

.statement span {
    color: var(--gold);
}

.statement .ornament {
    margin: 12px auto 0;
}

.center {
    text-align: center;
}

.center-rule {
    margin: 16px auto 25px;
}

.narrow {
    max-width: 630px;
    margin: 0 auto 30px;
}

.operator-placeholder {
    border: 1px solid var(--line);
    padding: 45px 20px;
    text-align: center;
    background: #120f0f;
}

.operator-placeholder p {
    font-size: 20px;
}

.operator-placeholder small {
    color: var(--muted);
}

.numbers {
    border-top: 1px solid #392d21;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 14px;
    margin-top: 30px;
}

.number-card {
    border: 1px solid var(--line);
    padding: 20px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 300px;
}

.card-icon {
    color: var(--gold);
    border: 1px solid var(--gold);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 32px;
}

.number-card h3 {
    color: var(--gold);
    font-size: clamp(19px,2vw,27px);
    font-weight: normal;
    line-height: 1.15;
    overflow-wrap: anywhere;
    margin: 18px 0 8px;
}

.number-card p {
    font-size: 12px;
    min-height: 38px;
}

.number-card small {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 12px;
}

.number-card .btn {
    margin-top: auto;
}

.btn.small {
    padding: 8px 20px;
}

.more {
    margin-top: 25px;
    color: var(--gold);
    letter-spacing: 1px;
}

.mood {
    border-block: 1px solid var(--line);
    background: #110d0d;
}

.mood-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.mood-photo {
    min-height: 330px;
    background-image: url('/assets/img/mood.webp');
    background-color: #0b0909;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.mood h2 {
    color: var(--gold);
    font-weight: normal;
    font-size: 22px;
}

.courtesy {
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}

.courtesy-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    text-align: center;
}

.courtesy-inner>div {
    flex: 1;
}

.courtesy h2,.courtesy p {
    margin: 3px;
}

.courtesy strong {
    font-size: 36px;
    font-weight: normal;
    color: var(--gold);
}

.courtesy small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.closing {
    padding: 45px 0;
    background: linear-gradient(100deg, #17110d, #080707);
    border-top: 1px solid var(--line);
}

.closing-inner {
    display: grid;
    grid-template-columns: 340px 1fr auto;
    align-items: center;
    gap: 28px;
}

.closing-visual {
    min-height: 210px;
    background-image: url('/assets/img/closing.webp');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: cover;
}

.closing-copy h2 {
    margin: 0 0 14px;
    font-size: 30px;
    font-weight: normal;
    color: var(--gold);
    line-height: 1.15;
}

.closing-copy p {
    margin: 0;
    line-height: 1.5;
}

.closing .btn.outline {
    white-space: nowrap;
}

.outline {
    background: none;
    color: var(--gold);
}

.outline:hover {
    color: var(--gold2);
}

.footer {
    text-align: center;
    border-top: 1px solid var(--line);
    padding: 28px 0 35px;
    color: #8d8178;
    font: 12px Arial,sans-serif;
}

/* =========================================
   FOOTER - LOGO VERTICALE
   ========================================= */

.footer-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 22px;
}

.footer-brand a {
    display: inline-block;
    line-height: 0;
}

.footer-brand picture {
    display: block;
}

.footer-brand img {
    display: block;
    width: 150px;
    max-width: 100%;
    height: auto;
}

.footer nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer p {
    max-width: 700px;
    margin: 14px auto;
}

.age {
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin: auto;
    font-size: 19px;
}

.simple-page {
    min-height: 55vh;
    padding: 65px 0;
}

.simple-page h1 {
    color: var(--gold);
    font-weight: normal;
}

.tariff-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.tariff-table th,.tariff-table td {
    border: 1px solid var(--line);
    padding: 13px;
    text-align: left;
}

.tariff-table th {
    color: var(--gold);
}

/* Tabella tariffe: numeri telefonici su una sola riga */
.tariff-table th:nth-child(2),
.tariff-table td:nth-child(2) {
    white-space: nowrap;
    min-width: 115px;
}

/* Adattamento mobile */
@media (max-width: 600px) {
    .tariff-table th:nth-child(2),
    .tariff-table td:nth-child(2) {
        min-width: 100px;
    }
}

@media(max-width:950px) {
    .number-grid {
        grid-template-columns: repeat(3,1fr);
    }
    .site-header nav {
        gap: 12px;
    }
}

@media(max-width:700px) {
    .header-inner {
        min-height: 62px;
    }
    .menu-toggle {
        display: block;
    }
    .site-header nav {
        display: none;
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        padding: 20px 4%;
        background: #0b0909;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
    }
    .site-header nav.open {
        display: flex;
    }
    .hero,.hero-inner {
        min-height: 570px;
    }
    .hero {
        background-position: 60% center;
    }
    .hero-copy {
        background: rgba(0,0,0,.48);
        padding: 35px 14px;
    }
    .split,.mood-inner {
        grid-template-columns: 1fr;
    }
    .photo {
        min-height: 340px;
    }
    .section {
        padding: 45px 0;
    }
    .number-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .number-card {
        min-height: 290px;
    }
    .mood-photo {
        min-height: 280px;
        background-position: 65% center;
    }
    .mood-inner {
        gap: 12px;
        padding-bottom: 28px;
    }
    .courtesy-inner,.closing-inner {
        flex-direction: column;
    }
    .closing-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    .closing-visual {
        min-height: 170px;
        background-position: center center;
        background-size: cover;
    }
    .closing-copy h2 {
        font-size: 24px;
    }
    .closing .btn.outline {
        justify-self: center;
    }
    .courtesy strong {
        font-size: 30px;
    }
    .tariff-table {
        font-size: 13px;
    }
    
    /* Footer mobile */

    .footer-brand {
        margin-bottom: 18px;
    }

    .footer-brand img {
        width: 115px;
    }

}

@media(max-width:390px) {
    .number-grid {
        grid-template-columns: 1fr;
    }
    .number-card {
        min-height: 260px;
    }
    .hero h1 {
        font-size: 52px;
    }
    .brand {
        font-size: 20px;
    }
    .closing-visual {
        min-height: 145px;
    }
}

/* LOGO HEADER DESKTOP E MOBILE */

.brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    font-size: initial;
    line-height: 1;
}

.brand picture {
    display: block;
}

.brand img {
    display: block;
    width: 240px;
    max-width: 100%;
    height: auto;
}

/* Tablet e desktop stretti */
@media (max-width: 950px) {
    .brand img {
        width: 195px;
    }
}

/* Smartphone */
@media (max-width: 700px) {
    .brand img {
        width: 158px;
    }
}

/* Smartphone molto piccoli */
@media (max-width: 390px) {
    .brand img {
        width: 138px;
    }
}


/* ==========================================
   OPERATORI ONLINE - IFRAME
   ========================================== */

.operator-container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

.operatori-frame {
    display: block;
    width: 100%;
    height: 100px;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: transparent;
}


/* ==========================================
   SEZIONE NUMERI - GRIGLIA FOTOGRAFICA
   ========================================== */

.numbers .number-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 32px;
    align-items: stretch;
}

/* Scheda singola */

.numbers .number-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    background: #1d1917;
    border: 1px solid #5b4834;
    border-radius: 8px;
    text-align: center;
    transition:
        border-color 0.25s ease,
        transform 0.25s ease;
}

.numbers .number-card:hover {
    border-color: #c6a36b;
    transform: translateY(-3px);
}

/* Fotografia superiore */

.numbers .number-card__image {
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    background: #100e0d;
}

.numbers .number-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Contenuto della scheda */

.numbers .number-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    padding: 22px 20px 24px;
}

/* Numero telefonico */

.numbers .number-card h3 {
    margin: 0 0 14px;
    color: #c6a36b;
    font-size: clamp(22px, 2.2vw, 29px);
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
}

/* Denominazione servizio */

.numbers .number-card__service {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0 0 14px;
    color: #f1e7d8;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

/* Indicazione tariffaria */

.numbers .number-card small {
    display: block;
    margin: 0 0 22px;
    color: #c3b4a0;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

/* Pulsante sempre in fondo */

.numbers .number-card .btn {
    margin-top: auto;
    min-width: 110px;
    text-align: center;
}

/* ==========================================
   TABLET - DUE COLONNE
   ========================================== */

@media (max-width: 1000px) {

    .numbers .number-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .numbers .number-card h3 {
        font-size: 25px;
    }

}

/* ==========================================
   SMARTPHONE - UNA COLONNA
   ========================================== */

@media (max-width: 600px) {

    .numbers .number-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        margin-top: 26px;
    }

    .numbers .number-card__body {
        padding: 20px 18px 22px;
    }

    .numbers .number-card h3 {
        font-size: 27px;
    }

    .numbers .number-card__service {
        min-height: 0;
        margin-bottom: 12px;
    }

    .numbers .number-card small {
        margin-bottom: 20px;
    }

    .numbers .number-card .btn {
        min-width: 130px;
    }

}

/* ==========================================
   ACCESSIBILITÀ - MOVIMENTO RIDOTTO
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    .numbers .number-card {
        transition: none;
    }

    .numbers .number-card:hover {
        transform: none;
    }

}
