/*
Theme Name: Cellularline Services
Theme URI: https://www.cellularline.com/it-it/
Author: Cellularline Digital Team
Description: Tema WordPress leggero, responsive e compatibile con WPML, PHP 8.5 e WordPress 7.1.5 per pagine di servizio aziendali.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1.5
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cellularline-services
*/

:root {
    --cl-header-bg: #ffffff;
    --cl-header-border: #ececec;
    --cl-main-bg: #f8f9fa;
    --cl-title-color: #343a40;
    --cl-subtitle-color: #7a8187;
    --cl-cta-bg: #323639;
    --cl-cta-hover: #1e2123;
    --cl-cta-text: #ffffff;
    --cl-nav-accent: #c8102e;
    --cl-footer-bg: #2c2c2c;
    --cl-footer-bottom-bg: #242424;
    --cl-footer-title: #ffffff;
    --cl-footer-text: #9e9e9e;
    --cl-footer-bottom-text: #767676;
    --cl-font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

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

html, body {
    height: 100%;
    font-family: var(--cl-font-family);
    color: var(--cl-title-color);
    background-color: var(--cl-main-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    background-color: var(--cl-header-bg);
    border-bottom: 1px solid var(--cl-header-border);
    padding: 18px 0;
    position: relative;
    z-index: 100;
}

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

.site-branding {
    display: flex;
    align-items: center;
}

.site-branding a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #1a1a1a;
}

.site-branding img,
.site-branding svg {
    max-height: 36px;
    width: auto;
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.home-nav-link {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--cl-nav-accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.home-nav-link:hover {
    opacity: 0.75;
}

/* WPML Language Switcher Integration */
.wpml-switcher-slot {
    display: flex;
    align-items: center;
}

.wpml-switcher-slot .wpml-ls-legacy-dropdown,
.wpml-switcher-slot .wpml-ls-legacy-dropdown-click {
    width: auto;
    min-width: 58px;
}

.wpml-switcher-slot .wpml-ls-legacy-dropdown a,
.wpml-switcher-slot .wpml-ls-legacy-dropdown-click a {
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    padding: 5px 24px 5px 9px;
    font-size: 12px;
    line-height: 1.2;
}

.wpml-switcher-slot ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Main Hero Section */
.site-main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--cl-main-bg);
    padding: 96px 24px 104px;
    text-align: center;
}

.hero-content {
    max-width: 780px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--cl-title-color);
    line-height: 1.25;
    margin-bottom: 18px;
}

.hero-subtitle {
    font-size: clamp(15.5px, 2vw, 18.5px);
    font-weight: 400;
    color: var(--cl-subtitle-color);
    line-height: 1.6;
    margin-bottom: 34px;
}

.hero-cta-wrapper {
    display: inline-block;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--cl-cta-bg);
    color: var(--cl-cta-text);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 50px;
    transition: background-color 0.2s ease, transform 0.15s ease;
    letter-spacing: 0.2px;
}

.hero-cta-btn:hover,
.hero-cta-btn:focus {
    background-color: var(--cl-cta-hover);
    color: var(--cl-cta-text);
    transform: translateY(-1px);
}

/* Fallback page content if Gutenberg blocks are added */
.extra-page-content {
    margin-top: 40px;
    color: var(--cl-subtitle-color);
    font-size: 15px;
}

/* Footer */
.site-footer {
    flex-shrink: 0;
    background-color: var(--cl-footer-bg);
    color: var(--cl-footer-text);
}

.footer-main {
    padding: 64px 0 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 290px));
    justify-content: center;
    gap: 48px;
    max-width: 980px;
    margin: 0 auto;
}

.footer-col-title {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--cl-footer-title);
    margin-bottom: 22px;
}

.footer-description {
    font-size: 13px;
    line-height: 1.75;
    color: var(--cl-footer-text);
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--cl-footer-text);
}

.footer-contact-icon {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    margin-top: 3px;
    color: var(--cl-footer-text);
}

.footer-contact-item a {
    color: var(--cl-footer-text);
    text-decoration: none;
    word-break: break-word;
    transition: color 0.2s ease;
}

.footer-contact-item a:hover {
    color: #ffffff;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background-color: #ffffff;
    color: var(--cl-footer-bg);
    border-radius: 3px;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.footer-social-link:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Footer Bottom Bar */
.footer-bottom {
    background-color: var(--cl-footer-bottom-bg);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 980px;
    margin: 0 auto;
    font-size: 11px;
    letter-spacing: 0.4px;
    color: var(--cl-footer-bottom-text);
}

.footer-copyright {
    text-transform: uppercase;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-legal-links a {
    color: var(--cl-footer-bottom-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: #b5b5b5;
}

.footer-legal-sep {
    opacity: 0.45;
}

/* Responsive */
@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
        gap: 36px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }
}

@media (max-width: 540px) {
    .site-header {
        padding: 14px 0;
    }

    .header-right {
        gap: 12px;
    }

    .site-main {
        padding: 68px 20px 76px;
    }

    .hero-cta-btn {
        width: 100%;
        max-width: 300px;
    }
}
