
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


/* VARIABILI */
:root {
    --page-brown: #584535;
    --footer-grey: #52443A;
    --main-width: 900px;
    --footer-height: 94px;
}

/* RESET */
* { box-sizing: border-box; }
html, body { min-width: 320px; margin: 0; }
body { font-family: "Montserrat", sans-serif; font-size:16px; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* DOORPAGE */
.doorpage {
    width: 100%;
    min-height: calc(100svh - var(--footer-height));
    background-color: var(--page-brown);
    color: #fff;
    padding: 0;
    display: flex;
    justify-content: center;
}

/* LAYOUT PRINCIPALE */
.hero-layout {
    width: min(var(--main-width), 100%);
    max-width: 100%;
    position: relative;
    min-height: calc(100svh - var(--footer-height));
    display: flex;
    align-items: stretch;
}

/* COLONNA PRINCIPALE */
.main-column {
    width: var(--main-width);
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

/* IMMAGINE PRINCIPALE */
.main-photo {
    width: 100%;
    height: 100%;
    min-height: calc(100svh - var(--footer-height));
    background: url('assets/img-000.png') center center / cover no-repeat;
    padding: 54px 24px 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* LOGO */
.logo { display: block; width: 100%; height: 90px; object-fit: cover; object-position: center; }

/* CONTATTI */
.contact { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; font-size: 16px; line-height: 1.2; }

/* IMMAGINE SECONDARIA */
.detail-column {
    /*width: 250px;*/
    position: absolute;
    left: -200px;
    bottom: 23px;
    z-index: 1;
}
.detail-photo { display: block; width: 100%; height: 370px; object-fit: cover; object-position: center; }

/* FOOTER */
.site-footer {
    width: 100%;
    min-height: var(--footer-height);
    background: #fff;
    color: var(--footer-grey);
    padding: 22px 0;
    display: flex;
    align-items: center;
}
.footer-layout { width: min(var(--main-width), 100%); max-width: 100%; margin-inline: auto; }
.footer-item { display: flex; flex-direction: column; justify-content: flex-start; padding: 0 18px; font-size: 14px; line-height: 1.4; }
.footer-item:not(:first-child) { border-left: 1px solid #bcb6b1; }

/* DESKTOP COMPATTO: dettaglio all’interno del pannello per evitare overflow */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .detail-column { left: 0; }
}

/* TABLET */
@media (max-width: 767.98px) {
    .doorpage { min-height: auto; padding: 20px 0 28px; }
    .hero-layout { width: 100%; max-width: 480px; min-height: auto; display: flex; flex-direction: column; align-items: center; }
    .main-column { width: 100%; max-width: 100%; }
    .main-photo { width: 100%; height: auto; min-height: 70svh; background-position: center; background-size: cover; padding: clamp(26px,7vw,54px) clamp(18px,5vw,24px) clamp(28px,6vw,44px); }
    .brand-name { font-size: clamp(34px,10.8vw,54px); }
    .brand-subtitle { font-size: clamp(8px,2.35vw,11px); letter-spacing: .28em; }
    .contact { font-size: clamp(10px,2.5vw,12px); }
    .detail-column { position: static; width: 100%; margin: 16px 0 0; align-self: flex-start; }
    .detail-photo { width: min(48%,220px); height: auto; aspect-ratio: 180/238; object-fit: cover; }
    .site-footer { min-height: auto; padding: 24px 0; }
    .footer-layout { max-width: 480px; }
    .footer-item { padding: 0 16px; font-size: 12px; }
}

/* MOBILE */
@media (max-width: 575.98px) {
    .doorpage { padding: 0 0 24px; }
    .hero-layout { max-width: 100%; }
    .main-photo { min-height: 75svh; padding: 35px 20px 30px; background-position: center; }
    .logo { height: 60px; }
    .contact { font-size: 11px; }
    .detail-column { width: 100%; margin: 16px 0 0; display: none;}
    .detail-photo { width: min(52%,200px); }
    .site-footer { padding: 24px 0; }
    .footer-item { padding: 0; font-size: 12px; }
    .footer-item:not(:first-child) { border-left: 0; border-top: 1px solid #ddd8d4; padding-top: 12px; }
}

/* SCHERMI BASSI */
@media (min-width: 768px) and (max-height: 600px) {
    .main-photo { padding-top: 30px; padding-bottom: 25px; }
    .brand-name { font-size: 46px; }
    .detail-column { margin-bottom: 15px; }
}