/* Custom Styles - Social Manager Arezzo - Massively */

/* Lato Font */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

/* Brand Colors */
:root {
    --brand-primary: #1e40bf;    /* Blu titoli */
    --brand-secondary: #ff1474;   /* Rosa CTA/sfondi */
    --brand-primary-dark: #1a3570;
    --text-color: #000000;       /* Nero testo */
}

/* Font settings */
body {
    font-family: 'Lato', sans-serif;
    font-size: 0.95em;
    line-height: 1.65;
    color: var(--text-color);
}

/* Headings - Blu */
h1, h2, h3, h4, h5, h6 {
    color: var(--brand-primary);
}

/* Links */
a {
    color: var(--brand-primary);
}

a:hover {
    color: var(--brand-primary-dark);
}

/* Override primary color for buttons - Blu */
.button.primary,
.button {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
}

.button.primary:hover,
.button:hover {
    background-color: var(--brand-primary-dark) !important;
}

/* Button secondary (CTA) - Rosa */
.button.secondary {
    background-color: var(--brand-secondary) !important;
    color: #ffffff !important;
}

/* Intro - Rosa */
#intro {
    background-color: var(--brand-secondary);
    background-image: linear-gradient(135deg, #ff1474 0%, #d6105f 100%);
}

#intro h1 {
    color: #ffffff;
}

#intro p {
    color: #ffffff;
}

#intro a {
    color: #ffffff;
    text-decoration: underline;
}

/* Nav */
#nav .links .active a {
    color: var(--brand-primary);
}

/* Post featured */
.post.featured .button {
    background-color: var(--brand-primary) !important;
}

/* Form inputs */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: var(--brand-primary) !important;
}

/* Section backgrounds - optional Rosa accents */
.posts article {
    border-left: 3px solid var(--brand-secondary);
}

/* CTA button in content */
#main .button.primary {
    background-color: var(--brand-secondary) !important;
}

#main .button.primary:hover {
    background-color: #d6105f !important;
}

/* Lists - allineati a sinistra */
#main ul, #main ol {
    margin-left: 0;
    padding-left: 1.5em;
    text-align: left;
}

#main ul li, #main ol li {
    padding-left: 0.5em;
}

/* Form labels */
#main .post form label {
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 0.5em;
    display: block;
    font-size: 0.9em;
}

/* Checkbox styling */
#main .post form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-weight: normal;
    color: var(--text-color);
    font-size: 0.85em;
    cursor: pointer;
}

#main .post form .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--brand-primary);
}

#main .post form .checkbox-label a {
    color: var(--brand-primary);
    text-decoration: underline;
}

/* Form contatti - moderno e compatto */
#main .post form {
    max-width: 600px;
    margin: 0 auto;
}

#main .post form .row {
    margin-bottom: 0.75em;
}

#main .post form input[type="text"],
#main .post form input[type="email"],
#main .post form input[type="tel"],
#main .post form textarea,
#main .post form select {
    width: 100%;
    padding: 0.75em 1em;
    font-size: 0.9em;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-family: 'Lato', sans-serif;
}

#main .post form input[type="text"]:focus,
#main .post form input[type="email"]:focus,
#main .post form input[type="tel"]:focus,
#main .post form textarea:focus,
#main .post form select:focus {
    border-color: var(--brand-primary) !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 64, 191, 0.1);
}

#main .post form textarea {
    resize: vertical;
    min-height: 100px;
}

#main .post form .col-6 {
    width: 48%;
    float: left;
    margin-right: 4%;
}

#main .post form .col-6:last-child {
    margin-right: 0;
}

#main .post form .col-6:after {
    content: "";
    display: table;
    clear: both;
}

#main .post form .actions {
    margin-top: 1.5em;
    text-align: center;
}

#main .post form .button {
    padding: 0.75em 2em;
    font-size: 0.95em;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#main .post form .button.primary {
    background-color: var(--brand-secondary) !important;
    color: #ffffff !important;
}

#main .post form .button.primary:hover {
    background-color: #d6105f !important;
}

#main .post form .button:not(.primary) {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
    margin-left: 1em;
}

#main .post form .button:not(.primary):hover {
    background-color: var(--brand-primary-dark) !important;
}

/* hCaptcha container */
#main .post form .h-captcha {
    display: flex;
    justify-content: center;
    margin: 1em 0;
}

/* Form labels piccoli */
#main .post form label {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 0.25em;
    display: block;
}

/* CTA Box - Rosa */
.cta-box {
    background-color: var(--brand-secondary);
    padding: 2em;
    border-radius: 8px;
    margin: 2em 0;
    text-align: center;
}

.cta-box h2,
.cta-box p {
    color: #ffffff;
    text-align: center;
}

.cta-box h2 {
    margin-bottom: 0.5em;
}

.cta-box p {
    margin-bottom: 1.5em;
}

.cta-box .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75em 2em;
    border-radius: 4px;
    height: auto;
    line-height: 1.4;
}

/* CTA Box Blue */
.cta-box.cta-blu {
    background-color: var(--brand-primary);
}

.cta-box.cta-blu .col-6 {
    text-align: center;
    color: #ffffff;
    padding: 1em;
}

.cta-box.cta-blu .col-6 h3 {
    color: #ffffff;
    margin: 0.5em 0;
}

.cta-box.cta-blu .col-6 p {
    color: #ffffff;
    font-size: 0.9em;
}

.cta-box.cta-blu .icon {
    margin-bottom: 0.5em;
}

/* Servizi Grid */
.servizi-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.servizi-grid .col-6 {
    width: calc(50% - 1em);
    text-align: center;
    padding: 1em;
    box-sizing: border-box;
}

.servizi-grid .icon {
    font-size: 2em;
    color: var(--brand-primary);
    margin-bottom: 0.5em;
}

.servizi-grid article {
    margin: 0;
    padding: 0.75em;
}

.servizi-grid article.special {
    padding: 1em 0.75em;
}

.servizi-grid .row,
#main > section > div.row.gtr-50 {
    margin-left: 0;
    padding-left: 0;
}

/* Footer */
#footer {
    padding: 2rem 0;
    background-color: #f5f5f5;
}

#footer .split.contact {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

#footer .split.contact h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#footer .split.contact p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

#footer .split.contact ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#footer .split.contact .icons li {
    display: block;
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

#footer .split.contact .icons a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#footer .split.contact .icons .icon {
    font-size: 1rem;
}

@media (max-width: 768px) {
    #footer .split.contact {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
