/*
 * VeryESG - Home page
 * File statico servito da public/css/home.css.
 * Le variabili dinamiche dello sfondo sono impostate nella Blade.
 */


    :root {
        --very-blue: #111936;
        --very-blue-2: #172143;
        --very-yellow: #ffd400;
        --very-green: #54b948;
        --very-text: #ffffff;
        --very-muted: rgba(255, 255, 255, 0.78);
        --modal-surface: #c5c8d1;
        --modal-blue: #213b8f;
    }

    * { box-sizing: border-box; }

    body {
        margin: 0;
        min-height: 100vh;
        font-family: 'Figtree', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        color: var(--very-text);
        background: var(--very-blue);
    }

	.home-shell {
		position: relative;
		min-height: 100vh;
		overflow: hidden;
		background:
			linear-gradient(
				90deg,
				rgba(17, 25, 54, 0.88) 0%,
				rgba(17, 25, 54, 0.70) 38%,
				rgba(17, 25, 54, 0.18) 100%
			),
			var(--home-hero-background);
		background-size: cover;
		background-position: center right;
		background-repeat: no-repeat;
	}

	.home-shell::after {
		content: none;
		display: none;
	}
	.dot-orbits {
		display: none;
	}

    .dot-orbits::before,
    .dot-orbits::after {
        content: '';
        position: absolute;
        border-radius: 999px;
        background:
            radial-gradient(circle at 50% 50%, rgba(255, 212, 0, .95) 0 7px, transparent 8px),
            radial-gradient(circle at 50% 50%, transparent 0 18%, rgba(255, 212, 0, .75) 18.2% 21.2%, transparent 21.7% 100%),
            radial-gradient(circle at 50% 50%, transparent 0 32%, rgba(73, 143, 174, .72) 32.2% 35.5%, transparent 36% 100%),
            radial-gradient(circle at 50% 50%, transparent 0 48%, rgba(255, 212, 0, .7) 48.2% 51.4%, transparent 52% 100%);
        opacity: .8;
        mask-image: radial-gradient(circle, transparent 0 9%, #000 10% 57%, transparent 58% 100%);
    }

    .dot-orbits::before {
        width: 280px;
        height: 280px;
        left: -70px;
        bottom: 80px;
    }

    .dot-orbits::after {
        width: 320px;
        height: 320px;
        right: 35px;
        bottom: -145px;
    }

    .main-header {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        gap: clamp(22px, 3vw, 54px);
        min-height: 82px;
        padding: 10px clamp(14px, 2.2vw, 34px);
    }

    .brand-card {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-width: 205px;
        height: 64px;
        padding: 7px 12px;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
        text-decoration: none;
    }

    .brand-shield {
        width: 40px;
        height: 44px;
        flex: 0 0 auto;
    }

    .brand-wordmark {
        display: flex;
        align-items: baseline;
        font-weight: 800;
        letter-spacing: -1.4px;
        line-height: 1;
        color: #4b4d55;
        font-size: 31px;
        white-space: nowrap;
    }

    .brand-wordmark .green { color: #48bb36; }
    .brand-wordmark .blue { color: #084dff; }
    .brand-wordmark .orange { color: #ff9b00; }

    .main-nav {
        display: flex;
        align-items: center;
        gap: clamp(22px, 2.6vw, 50px);
        flex: 1;
    }

    .main-nav a {
        color: rgba(255,255,255,.92);
        font-weight: 600;
        font-size: 18px;
        text-decoration: none;
        transition: color .18s ease;
    }

    .main-nav a:hover,
    .main-nav a.active {
        color: var(--very-yellow);
    }

    .header-actions {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 18px;
    }

    .btn-login,
    .btn-register,
    .btn-logout {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
        padding: 0 21px;
        border-radius: 6px;
        text-decoration: none;
        font-weight: 800;
        font-size: 22px;
        line-height: 1;
        transition: transform .16s ease, background .16s ease, border-color .16s ease;
        cursor: pointer;
        font-family: inherit;
    }

    .btn-login {
        color: #ffffff;
        border: 1px solid rgba(255,255,255,.45);
        background: rgba(255,255,255,.18);
    }

    .btn-register {
        color: #151b2f;
        background: var(--very-yellow);
        border: 1px solid var(--very-yellow);
    }

    .btn-logout {
        color: #ffffff;
        border: 1px solid rgba(255,255,255,.38);
        background: rgba(255,255,255,.08);
    }

    .logout-inline-form {
        margin: 0;
    }

    .btn-login:hover,
    .btn-register:hover,
    .btn-logout:hover { transform: translateY(-1px); }

    .lang-pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #ffffff;
        font-weight: 700;
        font-size: 18px;
    }

    .italy-dot {
        width: 27px;
        height: 27px;
        border-radius: 999px;
        display: inline-block;
        background: linear-gradient(90deg, #1fa463 0 33%, #ffffff 33% 66%, #e24444 66% 100%);
        box-shadow: 0 0 0 1px rgba(255,255,255,.3);
    }

    .icon-link {
        width: 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        opacity: .95;
        text-decoration: none;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        min-height: calc(100vh - 82px);
        display: grid;
        grid-template-rows: 1fr auto 1fr;
        align-items: center;
        padding: clamp(24px, 4vw, 84px) clamp(20px, 8vw, 195px) clamp(72px, 8vw, 150px);
    }

    .hero-title {
        grid-row: 2;
        margin: 0;
        max-width: 1320px;
        font-size: clamp(38px, 4.1vw, 66px);
        line-height: 1.08;
        font-weight: 800;
        letter-spacing: -1.6px;
        text-shadow: 0 5px 22px rgba(0,0,0,.30);
    }

    .hero-kicker {
        grid-row: 3;
        align-self: start;
        margin: clamp(105px, 13vh, 175px) 0 0 41%;
        font-size: clamp(18px, 1.65vw, 28px);
        font-weight: 800;
        letter-spacing: .2px;
        text-transform: uppercase;
        text-shadow: 0 4px 18px rgba(0,0,0,.34);
    }

/* Responsive homepage */
        @media (max-width: 1180px) {
        .main-header { gap: 18px; }
        .brand-card { min-width: 185px; height: 58px; }
        .brand-wordmark { font-size: 28px; }
        .main-nav { gap: 18px; }
        .main-nav a { font-size: 16px; }
        .btn-login, .btn-register, .btn-logout { font-size: 18px; min-height: 44px; padding-inline: 16px; }
        .header-actions { gap: 12px; }
    }

    @media (max-width: 920px) {
        .home-shell {
            background:
                linear-gradient(180deg, rgba(17, 25, 54, 0.98) 0%, rgba(17, 25, 54, 0.88) 60%, rgba(17, 25, 54, 0.96) 100%),
                var(--home-hero-background,
                    radial-gradient(circle at 75% 40%, rgba(255, 212, 0, 0.18), transparent 42%)
                );
            background-size: cover;
            background-position: center;
        }

        .main-header {
            align-items: flex-start;
            flex-wrap: wrap;
            padding: 12px 16px;
        }

        .main-nav {
            order: 3;
            width: 100%;
            overflow-x: auto;
            padding: 8px 0 2px;
        }

        .header-actions { margin-left: auto; }
        .lang-pill, .icon-link { display: none; }
        .hero-content {
            min-height: calc(100vh - 124px);
            padding: 70px 24px 90px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
        }
        .hero-title { font-size: clamp(38px, 10vw, 58px); }
        .hero-kicker { margin: 58px 0 0; }
        .dot-orbits { right: -240px; top: 190px; width: 650px; height: 650px; opacity: .45; }
        .login-card { min-height: auto; padding: 28px 30px 22px; }
    }

    @media (max-width: 560px) {
        .brand-card { min-width: 158px; height: 52px; padding-inline: 9px; }
        .brand-shield { width: 34px; height: 38px; }
        .brand-wordmark { font-size: 24px; }
        .btn-login, .btn-register, .btn-logout { font-size: 15px; min-height: 40px; padding-inline: 12px; }
        .header-actions { gap: 8px; }
        .main-nav a { white-space: nowrap; font-size: 15px; }
        .hero-title { letter-spacing: -1px; }
        .login-modal { padding: 12px; align-items: center; overflow-y: auto; }
        .login-card { border-radius: 20px; width: min(420px, calc(100vw - 24px)); padding: 26px 22px 20px; }
        .login-title { font-size: 24px; }
        .login-field label { font-size: 14px; }
        .login-field input[type="email"],
        .login-field input[type="password"],
        .login-field input[type="text"],
        .toggle-password { height: 42px; }
        .login-submit { height: 43px; min-width: 124px; font-size: 17px; }
        .login-links { font-size: 14px; }
        .login-footer { margin-top: 16px; font-size: 14px; }
    }

/* PATCH VeryESG - logo ufficiale proporzionato, altezza massima 58px */
.brand-card {
    width: auto !important;
    min-width: 214px !important;
    height: 58px !important;
    max-height: 58px !important;
    padding: 0 !important;
    overflow: visible !important;
}

.brand-card .veryesg-official-logo {
    display: block;
    height: 58px;
    max-height: 58px;
    width: auto;
    max-width: 214px;
    object-fit: contain;
    flex: 0 0 auto;
}

.welcome-title .mini-logo {
    width: auto !important;
    min-width: 188px !important;
    height: 51px !important;
    padding: 0 !important;
    overflow: visible !important;
}

.welcome-title .mini-logo .veryesg-official-logo,
.welcome-title .mini-logo .veryesg-official-logo.mini {
    height: 51px;
    max-height: 51px;
    width: auto;
    max-width: 188px;
    object-fit: contain;
}

.veryesg-app-logo {
    display: block;
    height: 58px !important;
    max-height: 58px !important;
    width: auto !important;
    max-width: 214px !important;
    object-fit: contain;
}

@media (max-width: 640px) {
    .brand-card {
        min-width: 192px !important;
        height: 52px !important;
        max-height: 52px !important;
    }

    .brand-card .veryesg-official-logo {
        height: 52px;
        max-height: 52px;
        max-width: 192px;
    }

    .veryesg-app-logo {
        height: 52px !important;
        max-height: 52px !important;
        max-width: 192px !important;
    }
}
/* FINE PATCH VeryESG - logo ufficiale proporzionato */

/* PATCH VeryESG 2026-06 - homepage pubblica refresh */
:root {
    --home-topbar-bg: #ffffff;
    --home-topbar-text: #083b77;
    --home-primary-blue: #0060a5;
    --home-primary-green: #54b948;
    --home-ink: #ffffff;
}

.home-shell {
    background:
        linear-gradient(90deg,
            rgba(5, 31, 79, 0.62) 0%,
            rgba(6, 65, 133, 0.38) 45%,
            rgba(255, 255, 255, 0.16) 100%
        ),
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.10) 0%,
            rgba(255, 255, 255, 0.02) 45%,
            rgba(0, 96, 165, 0.22) 100%
        ),
        var(--home-hero-background);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.main-header {
    background: var(--home-topbar-bg);
    color: var(--home-topbar-text);
    min-height: 84px;
    padding: 12px clamp(18px, 2.6vw, 42px);
    gap: clamp(26px, 4vw, 70px);
    box-shadow: 0 10px 30px rgba(5, 31, 79, 0.14);
}

.brand-card {
    box-shadow: none !important;
    background: transparent !important;
}

.main-nav {
    flex: 1;
    justify-content: flex-start;
}

.main-nav a {
    color: var(--home-topbar-text);
    font-size: 18px;
    font-weight: 800;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--home-primary-green);
}

.header-actions {
    gap: 14px;
}

.btn-login,
.btn-register,
.btn-logout {
    min-height: 48px;
    border-radius: 12px;
    font-size: 20px;
    padding: 0 24px;
    box-shadow: none;
}

.btn-login {
    color: var(--home-primary-blue);
    border: 2px solid rgba(0, 96, 165, 0.28);
    background: #ffffff;
}

.btn-login:hover {
    border-color: var(--home-primary-blue);
    background: #f2f8fc;
}

.btn-register {
    color: #ffffff;
    background: var(--home-primary-green);
    border: 2px solid var(--home-primary-green);
}

.btn-register:hover {
    background: #3fa43a;
    border-color: #3fa43a;
}

.btn-logout {
    color: #ffffff;
    background: var(--home-primary-blue);
    border: 2px solid var(--home-primary-blue);
}

.hero-content {
    min-height: calc(100vh - 84px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(56px, 7vw, 120px) clamp(28px, 8vw, 150px) clamp(72px, 8vw, 130px);
}

.hero-copy {
    max-width: 1080px;
}

.hero-title {
    margin: 0;
    max-width: 1080px;
    color: var(--home-ink);
    font-size: clamp(42px, 5.15vw, 78px);
    line-height: 1.03;
    font-weight: 850;
    letter-spacing: -2.2px;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.36);
}

.hero-subtitle {
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(22px, 2vw, 34px);
    line-height: 1.22;
    font-weight: 700;
    text-shadow: 0 5px 18px rgba(0, 0, 0, 0.30);
}

.hero-kicker {
    display: none !important;
}

@media (max-width: 920px) {
    .home-shell {
        background:
            linear-gradient(180deg,
                rgba(5, 31, 79, 0.70) 0%,
                rgba(6, 65, 133, 0.50) 58%,
                rgba(0, 96, 165, 0.42) 100%
            ),
            var(--home-hero-background);
        background-size: cover;
        background-position: center;
    }

    .main-header {
        align-items: center;
        gap: 14px;
        padding: 12px 16px;
    }

    .main-nav {
        order: 3;
        width: 100%;
        padding: 6px 0 0;
    }

    .header-actions {
        margin-left: auto;
    }

    .hero-content {
        min-height: calc(100vh - 128px);
        padding: 64px 24px 92px;
        align-items: center;
    }

    .hero-title {
        font-size: clamp(38px, 10vw, 58px);
        letter-spacing: -1.4px;
    }

    .hero-subtitle {
        font-size: clamp(20px, 5vw, 28px);
    }
}

@media (max-width: 560px) {
    .main-header {
        gap: 10px;
    }

    .main-nav a {
        font-size: 15px;
    }

    .btn-login,
    .btn-register,
    .btn-logout {
        min-height: 40px;
        border-radius: 10px;
        font-size: 15px;
        padding-inline: 12px;
    }

    .hero-title {
        font-size: clamp(34px, 11vw, 48px);
        letter-spacing: -1px;
    }
}

/* PATCH VeryESG 2026-06 - homepage hero center + lighten */
.home-shell {
    background:
        linear-gradient(90deg,
            rgba(5, 31, 79, 0.48) 0%,
            rgba(6, 65, 133, 0.26) 45%,
            rgba(255, 255, 255, 0.28) 100%
        ),
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.20) 0%,
            rgba(255, 255, 255, 0.08) 45%,
            rgba(0, 96, 165, 0.14) 100%
        ),
        var(--home-hero-background);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.hero-content {
    justify-content: center;
    text-align: center;
}

.hero-copy {
    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title {
    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title-break {
    display: block;
}

.hero-subtitle {
    text-align: center;
}

@media (max-width: 920px) {
    .home-shell {
        background:
            linear-gradient(180deg,
                rgba(5, 31, 79, 0.58) 0%,
                rgba(6, 65, 133, 0.38) 58%,
                rgba(0, 96, 165, 0.30) 100%
            ),
            linear-gradient(180deg,
                rgba(255, 255, 255, 0.14) 0%,
                rgba(255, 255, 255, 0.05) 100%
            ),
            var(--home-hero-background);
        background-size: cover;
        background-position: center;
    }
}

/* PATCH VeryESG 2026-06 - homepage footer EuroMCC */
.home-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-content {
    flex: 1 0 auto;
    min-height: calc(100vh - 84px - 42px);
}

.home-footer {
    flex-shrink: 0;
    width: 100%;
    background: #0060a5;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
    padding: 12px 18px;
    font-weight: 500;
    letter-spacing: 0.01em;
    box-shadow: 0 -8px 22px rgba(0, 38, 75, 0.16);
}

@media (max-width: 920px) {
    .hero-content {
        min-height: calc(100vh - 84px - 42px);
    }

    .home-footer {
        padding: 10px 14px;
        font-size: 11.5px;
    }
}

