/*
Theme Name: Sammy Style
Description: Tema personalizzato per Sammy Style, basato su GeneratePress.
Template: generatepress
Version: 1.0.0
*/

:root {
    --sammy-dark: #292929;
    --sammy-accent: #b64f2c;
    --sammy-accent-hover: #913c20;
    --sammy-light: #f7f5f2;
    --sammy-border: #e5dfd9;
}

body {
    background: var(--sammy-light);
    color: var(--sammy-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.7;
}

h1, h2, h3, h4 {
    color: var(--sammy-dark);
    font-weight: 650;
    line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }

a { color: var(--sammy-accent); }
a:hover { color: var(--sammy-accent-hover); }

button,
input[type="submit"],
a.button,
.wp-block-button__link {
    background: var(--sammy-accent);
    color: #fff;
    border-radius: 6px;
    padding: 14px 24px;
    font-weight: 600;
    text-decoration: none;
}

button:hover,
input[type="submit"]:hover,
a.button:hover,
.wp-block-button__link:hover {
    background: var(--sammy-accent-hover);
    color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--sammy-accent);
    outline-offset: 4px;
}

.site-header,
.main-navigation,
.main-navigation ul ul {
    background: #fff;
}

.main-title a,
.main-title a:hover {
    color: var(--sammy-dark);
}

.main-navigation .main-nav ul li a {
    color: var(--sammy-dark);
    font-weight: 600;
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a {
    color: var(--sammy-accent);
    background: transparent;
}

.site-info {
    background: var(--sammy-dark);
    color: #fff;
}

.site-info a { color: #fff; }

.site-branding .site-description { display: none; }

.inside-header { padding: 24px 30px; }

@media (max-width: 768px) {
    .inside-header { padding: 18px 20px; }
}

/* Logo nell’intestazione */
.site-header .header-image {
    width: 260px;
    max-width: 100%;
    height: auto;
}

.site-header .site-branding-container .site-branding {
    display: none;
}

@media (max-width: 768px) {
    .site-header .header-image {
        width: 210px;
    }
}

body.page-template-page-home .site.grid-container {
    max-width: none;
}

body.page-template-page-home .site-content {
    padding: 0;
    display: block;
}

body.page-template-page-home #primary {
    width: 100%;
}

body.page-template-page-home .site-main {
    margin: 0;
}

body.page-template-page-home .entry-content {
    margin: 0;
}

.sammy-footer {
    background: #242424;
    color: #ddd7d1;
    padding: 65px 24px 24px;
    font-size: 15px;
    line-height: 1.75;
}

.sammy-footer,
.sammy-footer * {
    box-sizing: border-box;
}

.sammy-footer-grid,
.sammy-footer-bottom {
    max-width: 1160px;
    margin: 0 auto;
}

.sammy-footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1.1fr;
    gap: 65px;
}

.sammy-footer h2 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 22px;
}

.sammy-footer p {
    margin: 0 0 16px;
}

.sammy-footer-brand p {
    max-width: 350px;
}

.sammy-footer-name {
    display: inline-block;
    color: #fff;
    font-size: 32px;
    font-weight: 750;
    letter-spacing: -1px;
    text-decoration: none;
    margin-bottom: 12px;
}

.sammy-footer-name span {
    color: #edaa8e;
}

.sammy-footer ul {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.sammy-footer li {
    margin-bottom: 5px;
}

.sammy-footer a {
    color: #fff;
    text-decoration: none;
}

.sammy-footer a:hover {
    color: #edaa8e;
}

.sammy-footer-link {
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

.sammy-footer-phone {
    display: inline-block;
    font-size: clamp(23px, 3vw, 30px);
    font-weight: 700;
    margin-bottom: 16px;
}

.sammy-footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 45px;
    padding-top: 22px;
    border-top: 1px solid #48423e;
    font-size: 13px;
    color: #c4bdb7;
}

@media (max-width: 800px) {
    .sammy-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .sammy-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 550px) {
    .sammy-footer {
        padding-top: 45px;
    }

    .sammy-footer-grid {
        grid-template-columns: 1fr;
    }

    .sammy-footer-brand {
        grid-column: auto;
    }
}

body.page-id-18 .site-content {
    max-width: 1000px;
    margin: 0 auto;
}

body.page-id-18 .inside-article {
    padding: clamp(25px, 5vw, 65px);
}

body.page-id-18 .entry-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.page-id-18 .entry-content h2 {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--sammy-border);
    scroll-margin-top: 30px;
}

body.page-id-18 .entry-content p {
    max-width: 780px;
}

/* Pulsanti compatti nel banner cookie. */
.cmplz-cookiebanner .cmplz-buttons {
    align-items: center !important;
    gap: 10px !important;
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
    height: auto !important;
    min-height: 44px !important;
    max-height: none !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    align-self: center !important;
}

.sammy-footer-legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.sammy-footer-legal .sammy-cookie-settings {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    color: #fff;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sammy-footer-legal .sammy-cookie-settings:hover {
    background: transparent;
    color: #edaa8e;
}
