:root{
  --blue:#005cae; --blue2:#008ae6; --deep:#00335d; --nav:#002d55;
  --yellow:#ffc82e; --ink:#09213d; --muted:#61748b; --card:#ffffff;
  --soft:#eef6ff; --line:#dce8f5; --green:#20a45a; --red:#ee4f4f;
  --shadow:0 18px 38px rgba(0,42,92,.16); --radius:24px;
}
*{box-sizing:border-box} html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:linear-gradient(180deg,#eaf7ff 0,#f7fbff 38%,#fff 100%);padding-bottom:86px}
a{color:inherit;text-decoration:none} img{max-width:100%;display:block}
.hero{min-height:540px;color:#fff;position:relative;overflow:hidden;background:linear-gradient(110deg,rgba(0,79,152,.98),rgba(0,138,230,.72)),url('../img/hero-baleares.svg') center bottom/cover no-repeat}
.hero:after{content:"";position:absolute;inset:auto 0 0;height:190px;background:linear-gradient(180deg,transparent,rgba(234,247,255,.95));z-index:1}.hero:before{content:"";position:absolute;right:-12%;top:-20%;width:58%;height:65%;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.35),transparent 65%);z-index:1}
.topbar{position:relative;z-index:3;display:flex;justify-content:space-between;align-items:flex-start;gap:22px;max-width:1120px;margin:0 auto;padding:30px 24px 0}.brand{display:flex;gap:16px;align-items:flex-start;color:#fff}.brand-icon{font-size:58px;line-height:.95;filter:drop-shadow(0 10px 22px rgba(0,0,0,.18))}.brand b,.brand strong{display:block;line-height:.9}.brand b{font-size:30px}.brand strong{font-size:36px}.brand small{display:block;margin-top:10px;font-size:14px;font-weight:700;color:rgba(255,255,255,.86)}
.hamb{display:none;border:0;background:transparent;gap:6px;flex-direction:column;padding:8px;cursor:pointer}.hamb span{display:block;width:40px;height:5px;border-radius:10px;background:#fff}.menu{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.menu a{padding:10px 13px;border-radius:999px;background:rgba(255,255,255,.13);font-weight:800;font-size:14px;backdrop-filter:blur(10px)}.menu a:hover{background:rgba(255,255,255,.24)}
.hero-copy{position:relative;z-index:2;max-width:1120px;margin:52px auto 0;padding:0 24px}.hero-copy h1{font-size:clamp(48px,8vw,82px);line-height:.88;margin:0 0 20px;font-weight:400;letter-spacing:-.055em;text-shadow:0 14px 28px rgba(0,0,0,.14)}.hero-copy h1 span{display:block;font-weight:900}.hero-copy p{max-width:610px;font-size:25px;line-height:1.26;margin:0 0 26px}.eyebrow{font-size:15px!important;text-transform:uppercase;letter-spacing:.12em;font-weight:900;color:#fff1a8}.selected-pill{display:inline-flex;align-items:center;gap:12px;padding:16px 28px;border-radius:999px;background:var(--yellow);color:#051d34;font-size:18px;box-shadow:0 16px 28px rgba(0,0,0,.18)}.selected-pill b{display:block;font-size:23px}.starter-badge{display:inline-flex;align-items:center;gap:9px;margin-left:10px;padding:10px 16px;border-radius:999px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.26);font-weight:900;vertical-align:middle}
.page-shell{position:relative;z-index:4;max-width:1120px;margin:-88px auto 0;padding:0 24px}.weather-card{display:grid;grid-template-columns:1fr 1fr;gap:26px;background:linear-gradient(140deg,#0068c4 0%,#003f8c 100%);border-radius:var(--radius);color:#fff;padding:36px 40px;box-shadow:var(--shadow);position:relative;overflow:hidden}.weather-card:before{content:"";position:absolute;inset:-120px auto auto -80px;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.08)}.main-weather{display:flex;align-items:center;gap:30px;position:relative}.big-icon{font-size:110px;line-height:1;filter:drop-shadow(0 18px 20px rgba(0,0,0,.12))}.temp{font-size:92px;font-weight:900;line-height:.9;letter-spacing:-.07em}.temp sup{font-size:42px;margin-left:8px;letter-spacing:0}.main-weather h2{font-size:28px;margin:14px 0 3px}.main-weather p{font-size:22px;margin:0;color:rgba(255,255,255,.86)}.weather-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px 28px;padding-left:26px;border-left:1px solid rgba(255,255,255,.15)}.metric{display:grid;grid-template-columns:40px 1fr;column-gap:14px;align-items:start}.metric span{grid-row:span 2;font-size:36px}.metric b{font-size:20px;line-height:1.12}.metric em{font-style:normal}.metric p{margin:4px 0 0;font-size:22px;font-weight:800;color:#fff}.card-footer{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:4px}.card-footer span{color:rgba(255,255,255,.9);font-size:16px}.ghost-btn{border:1px solid rgba(255,255,255,.28);padding:13px 24px;border-radius:999px;font-weight:900;background:rgba(255,255,255,.08)}.api-error{grid-column:1/-1;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.24);border-radius:18px;padding:16px;line-height:1.5}.api-error code{background:rgba(0,0,0,.2);padding:2px 6px;border-radius:6px}.loading{animation:pulse 1.8s ease-in-out infinite}@keyframes pulse{50%{filter:saturate(.85);opacity:.94}}
.forecast-panel,.hourly-panel,.data-panel{margin-top:20px;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 12px 30px rgba(0,42,92,.1);padding:24px 28px}.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:18px;margin-bottom:14px}.section-head h2{margin:0;font-size:27px}.plan-note,.section-head span{font-weight:800;color:var(--muted);font-size:13px}.forecast-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:0}.forecast-day{text-align:center;min-height:128px;border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:center;justify-content:center}.forecast-day:last-child{border-right:0}.forecast-day b{font-size:16px}.forecast-day span{font-size:34px;margin:8px 0}.forecast-day strong{font-size:23px}.forecast-day small{font-size:15px;color:#172943;font-weight:800;line-height:1.3}.center-link{display:block;text-align:center;margin:16px 0 0;color:#005da8;font-weight:900}.hourly-scroll{display:flex;gap:12px;overflow:auto;padding-bottom:8px;scroll-snap-type:x mandatory}.hour-card{min-width:126px;scroll-snap-align:start;background:linear-gradient(180deg,#f4fbff,#fff);border:1px solid var(--line);border-radius:18px;text-align:center;padding:15px 10px}.hour-card span{display:block;font-size:32px;margin:8px 0}.hour-card strong{display:block;font-size:26px}.hour-card small{display:block;margin-top:5px;color:var(--muted);font-weight:800}.island-picker{margin-top:24px}.island-picker h2{margin:0 0 13px;font-size:26px}.islands-row{display:grid;grid-template-columns:repeat(7,1fr);gap:16px}.island-item{display:flex;flex-direction:column;gap:8px;font-weight:900;font-size:14px;text-align:center;align-items:center}.island-item img{width:100%;height:74px;border-radius:16px;object-fit:cover;border:3px solid transparent;box-shadow:0 10px 20px rgba(0,42,92,.14);background:#cceeff}.island-item.active img{border-color:var(--yellow)}
.feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px}.feature-card{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 10px 28px rgba(0,42,92,.1);display:grid;grid-template-columns:92px 1fr 24px;gap:10px;align-items:center;padding:20px;min-height:126px}.feature-icon{font-size:55px;text-align:center}.feature-icon.warn{color:var(--red)}.feature-card h3{margin:0 0 5px;font-size:25px}.feature-card p{margin:0;color:#213854;font-weight:600;line-height:1.3}.feature-card>b{font-size:38px;color:#005da8}.mini-data{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:20px}.mini-box{background:#fff;border:1px solid var(--line);border-radius:18px;padding:17px;box-shadow:0 8px 24px rgba(0,42,92,.08)}.mini-box b{display:block;font-size:26px}.mini-box span{display:block;color:var(--muted);font-weight:800;margin-top:5px}.promo-banner{margin-top:24px;min-height:170px;border-radius:24px;overflow:hidden;box-shadow:var(--shadow);padding:32px 40px;color:#fff;background:linear-gradient(100deg,rgba(0,43,92,.96),rgba(0,91,174,.74)),url('../img/banner.svg') center/cover no-repeat}.promo-banner h2{margin:0;font-size:39px}.promo-banner em{font-family:Georgia,serif;color:var(--yellow);font-weight:400}.promo-banner p{font-size:19px;margin:8px 0 18px}.promo-banner a{display:inline-flex;background:var(--yellow);color:#071b31;border-radius:999px;padding:12px 20px;font-weight:900}.site-footer{margin:30px 0 10px;text-align:center;color:var(--muted);font-weight:700}.site-footer a{color:#005da8}.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:20;background:#002d55;color:#fff;display:grid;grid-template-columns:repeat(5,1fr);padding:8px 8px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -12px 28px rgba(0,0,0,.18)}.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:24px;font-weight:900;color:#fff}.bottom-nav a span{font-size:12px}.bottom-nav a.on{color:var(--yellow)}
.mini-hero{background:linear-gradient(120deg,#004f98,#00a0df);color:#fff;padding:26px 24px;border-radius:0 0 28px 28px}.mini-hero .topbar{padding-top:0}.mini-shell{max-width:960px;margin:0 auto;padding:0 22px 90px}.content-card{background:#fff;border-radius:24px;box-shadow:var(--shadow);border:1px solid var(--line);padding:30px;margin:20px 0}.content-card h1{margin-top:0;font-size:38px}.content-card h2{font-size:26px}.content-card p,.content-card li{font-size:18px;line-height:1.65;color:#263b55}.notice{background:#fff9db;border:1px solid #ffe49c;border-radius:18px;padding:16px;margin:18px 0;color:#5b4300;font-weight:800}.oknotice{background:#ecfff5;border-color:#aee7c8;color:#0d5f32}.simple-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.simple-box{background:#f7fbff;border:1px solid var(--line);border-radius:18px;padding:18px}.simple-box b{display:block;font-size:30px;margin-bottom:6px}.simple-box p{margin:0!important;font-size:15px!important}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:18px}.data-table{width:100%;border-collapse:collapse;background:#fff}.data-table th,.data-table td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:left}.data-table th{background:#f3f9ff;color:#173a5b}.data-table tr:last-child td{border-bottom:0}.bar{height:10px;background:#e7f0f8;border-radius:999px;overflow:hidden}.bar span{display:block;height:100%;background:linear-gradient(90deg,#2fb56b,#ffc82e,#ee4f4f);border-radius:999px;max-width:100%}
@media(max-width:860px){.hero{min-height:540px;background-position:center bottom}.topbar{padding:24px 20px 0}.brand-icon{font-size:48px}.brand b{font-size:28px}.brand strong{font-size:33px}.brand small{font-size:13px}.hamb{display:flex}.menu{position:absolute;right:18px;top:90px;display:none;flex-direction:column;align-items:stretch;background:rgba(0,45,85,.94);border:1px solid rgba(255,255,255,.14);padding:12px;border-radius:18px;backdrop-filter:blur(14px)}.menu.open{display:flex}.menu a{background:transparent}.hero-copy{margin-top:42px}.hero-copy h1{font-size:58px}.hero-copy p{font-size:22px}.page-shell{margin-top:-72px;padding:0 14px}.weather-card{grid-template-columns:1fr;padding:28px 24px;gap:20px}.weather-grid{border-left:0;border-top:1px solid rgba(255,255,255,.15);padding-left:0;padding-top:20px}.big-icon{font-size:92px}.temp{font-size:76px}.card-footer{align-items:flex-start;flex-direction:column}.forecast-panel,.hourly-panel,.data-panel{padding:20px 16px}.forecast-strip{grid-template-columns:repeat(3,1fr);gap:10px}.forecast-day{border:1px solid var(--line);border-radius:16px}.islands-row{display:flex;overflow:auto;padding-bottom:8px}.island-item{min-width:92px}.island-item img{height:74px}.feature-grid{grid-template-columns:1fr}.mini-data{grid-template-columns:1fr 1fr}.promo-banner{padding:26px 24px}.promo-banner h2{font-size:31px}.simple-grid{grid-template-columns:1fr}.content-card{padding:24px}.content-card h1{font-size:32px}}
@media(max-width:480px){.hero{min-height:500px}.hero-copy h1{font-size:51px}.hero-copy p{font-size:19px}.selected-pill{padding:13px 18px;font-size:15px}.selected-pill b{font-size:19px}.starter-badge{display:flex;margin:12px 0 0;width:max-content}.weather-card{border-radius:20px}.main-weather{gap:18px}.big-icon{font-size:78px}.temp{font-size:62px}.main-weather h2{font-size:23px}.main-weather p{font-size:18px}.weather-grid{grid-template-columns:1fr 1fr;gap:18px 12px}.metric{grid-template-columns:30px 1fr}.metric span{font-size:28px}.metric b{font-size:16px}.metric p{font-size:17px}.section-head{display:block}.forecast-strip{grid-template-columns:repeat(2,1fr)}.feature-card{grid-template-columns:70px 1fr 20px;padding:16px}.feature-icon{font-size:42px}.feature-card h3{font-size:22px}.feature-card p{font-size:15px}.brand small{display:none}.mini-data{grid-template-columns:1fr}}

/* V3 app-style homepage and mobile refinements */
.home-body{background:linear-gradient(180deg,#e9f8ff 0,#f8fcff 38%,#ffffff 100%)}
.home-hero{min-height:430px}
.home-copy{margin-top:44px}
.home-copy h1{max-width:720px}
.home-copy p:not(.eyebrow){max-width:640px}
.home-shell{margin-top:-92px}
.home-status-card{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:18px 20px;margin-bottom:18px}
.home-status-card b{display:block;font-size:20px}.home-status-card span{display:block;color:var(--muted);font-weight:800;margin-top:3px}.home-status-card a{background:var(--yellow);color:#08223d;border-radius:999px;padding:11px 16px;font-weight:950;white-space:nowrap}
.island-summary{background:rgba(255,255,255,.84);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:28px;padding:22px;margin-bottom:22px;backdrop-filter:blur(12px)}
.app-section-head{margin-bottom:16px}.app-section-head h2{font-size:28px}.summary-error{background:#fff2f2;border:1px solid #ffd1d1;color:#732525;border-radius:18px;padding:14px 16px;margin:12px 0 18px;font-weight:800}.summary-error small{font-weight:700}.summary-error code{background:#fff;border:1px solid #ffd1d1;border-radius:8px;padding:2px 6px}
.island-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.island-weather-banner{position:relative;display:grid;grid-template-columns:118px 1fr auto;gap:16px;align-items:center;min-height:146px;background:linear-gradient(135deg,#ffffff 0%,#f5fbff 100%);border:1px solid var(--line);border-radius:24px;padding:14px;box-shadow:0 12px 28px rgba(0,42,92,.10);overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.island-weather-banner:hover{transform:translateY(-2px);border-color:#b8dcff;box-shadow:0 18px 34px rgba(0,42,92,.16)}.island-weather-banner:active{transform:scale(.99)}.island-weather-banner.loading{opacity:.92}.island-weather-banner img{width:118px;height:118px;border-radius:20px;object-fit:cover;background:#dff2ff}.island-banner-main small{display:block;font-weight:900;color:var(--blue);font-size:12px;text-transform:uppercase;letter-spacing:.08em}.island-banner-main h3{font-size:25px;margin:3px 0 5px;letter-spacing:-.03em}.island-banner-main p{margin:0;color:#526982;font-weight:750;line-height:1.25;font-size:14px}.updated-mini{display:block;margin-top:10px;color:#7990a6;font-size:12px;font-weight:900}.island-banner-weather{display:flex;flex-direction:column;align-items:flex-end;text-align:right;min-width:120px}.banner-icon{font-size:38px;line-height:1}.island-banner-weather strong{font-size:42px;line-height:.95;letter-spacing:-.06em;color:#062441}.island-banner-weather span{font-weight:900;color:#17324e}.banner-metrics{display:grid;gap:3px;margin-top:8px}.banner-metrics em{font-style:normal;color:#5d7187;font-size:13px;font-weight:850}.banner-arrow{font-size:38px;color:var(--blue);align-self:center}.island-weather-banner:after{content:attr(data-maxmin);position:absolute;right:16px;bottom:10px;color:#8ba0b4;font-size:11px;font-weight:950}.island-weather-banner:before{content:attr(data-uv);position:absolute;left:14px;top:14px;background:rgba(255,200,46,.95);color:#132840;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:950;z-index:2}.island-card-error{background:#fff8f8}.home-feature-grid{margin-top:0}
.site-footer{padding-bottom:12px}

@media(max-width:860px){
  .home-hero{min-height:430px}.home-copy{margin-top:34px}.home-copy h1{font-size:54px}.home-copy p:not(.eyebrow){font-size:20px}.home-shell{margin-top:-74px;padding:0 12px}.home-status-card{border-radius:22px;margin-bottom:14px}.island-summary{padding:16px;border-radius:24px}.island-summary-grid{grid-template-columns:1fr}.island-weather-banner{grid-template-columns:92px 1fr auto;gap:12px;min-height:124px;border-radius:22px;padding:12px}.island-weather-banner img{width:92px;height:92px;border-radius:18px}.island-banner-main h3{font-size:22px}.island-banner-main p{font-size:13px}.island-banner-weather{min-width:92px}.banner-icon{font-size:32px}.island-banner-weather strong{font-size:35px}.banner-metrics em{font-size:12px}.banner-arrow{font-size:32px}.app-section-head h2{font-size:24px}
}
@media(max-width:520px){
  body{padding-bottom:78px}.home-hero{min-height:386px}.topbar{padding-left:16px;padding-right:16px}.home-copy{padding:0 16px;margin-top:28px}.home-copy h1{font-size:46px;line-height:.9}.home-copy p:not(.eyebrow){font-size:18px}.home-status-card{align-items:flex-start;flex-direction:column;padding:16px}.home-status-card a{width:100%;text-align:center}.island-summary{padding:12px}.section-head span{font-size:13px}.island-weather-banner{grid-template-columns:78px 1fr;grid-template-areas:"img main" "weather weather";padding:11px 12px 14px;gap:10px}.island-weather-banner img{grid-area:img;width:78px;height:78px}.island-banner-main{grid-area:main;padding-right:20px}.island-banner-main h3{font-size:21px;margin-top:1px}.updated-mini{margin-top:7px}.island-banner-weather{grid-area:weather;align-items:center;text-align:left;display:grid;grid-template-columns:42px auto 1fr;gap:10px;min-width:0;width:100%;padding-top:8px;border-top:1px solid var(--line)}.banner-icon{font-size:31px}.island-banner-weather strong{font-size:36px}.island-banner-weather span{font-size:14px}.banner-metrics{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:0}.banner-metrics em{background:#eef7ff;border:1px solid #d9ebfb;border-radius:999px;padding:5px 8px}.banner-arrow{position:absolute;right:13px;top:40px}.island-weather-banner:after{right:12px;bottom:5px}.island-weather-banner:before{left:8px;top:8px;font-size:10px;padding:4px 8px}.brand-icon{font-size:42px}.brand b{font-size:23px}.brand strong{font-size:28px}.bottom-nav{padding-bottom:max(8px,env(safe-area-inset-bottom))}.bottom-nav a{font-size:21px}.bottom-nav a span{font-size:11px}
}


/* V4 social preview + PWA */
.home-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.secondary-app-btn{border:1px solid var(--line);background:#fff;color:#07345c;border-radius:999px;padding:11px 16px;font-weight:950;cursor:pointer;box-shadow:0 8px 20px rgba(0,42,92,.08)}
.secondary-app-btn:hover,.install-app-btn:hover{transform:translateY(-1px)}
.install-app-btn{position:fixed;right:14px;bottom:92px;z-index:25;border:0;background:linear-gradient(135deg,#ffc82e,#ffd859);color:#08223d;border-radius:999px;padding:14px 18px;font-weight:950;box-shadow:0 14px 28px rgba(0,0,0,.2);cursor:pointer}
.ios-install-tip{position:fixed;inset:auto 12px 92px 12px;z-index:30}.ios-install-tip>div{background:#ffffff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);padding:18px}.ios-install-tip b{display:block;font-size:18px;margin-bottom:8px}.ios-install-tip p{margin:0 0 14px;color:#233b55;font-weight:700;line-height:1.45}.ios-install-tip button{border:0;background:#005cae;color:#fff;border-radius:999px;padding:10px 14px;font-weight:900;cursor:pointer}
@media(max-width:520px){.home-actions{width:100%;justify-content:stretch}.home-actions a,.home-actions .secondary-app-btn{flex:1 1 auto;text-align:center}.install-app-btn{left:12px;right:12px;bottom:84px;text-align:center}}


/* V5 GDPR / Cookie CMP / Advertising */
.brand-logo{width:58px;height:58px;display:block;object-fit:contain;filter:drop-shadow(0 10px 22px rgba(0,0,0,.18));border-radius:14px;flex:0 0 auto}
.legal-links{display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap}.legal-links button{border:0;background:transparent;color:#005da8;font:inherit;font-weight:900;cursor:pointer;padding:0}.legal-links button:hover{text-decoration:underline}
.ad-slot{margin:22px 0;border:1px dashed #bfd3e8;background:linear-gradient(180deg,#f7fbff,#fff);border-radius:22px;min-height:112px;display:flex;align-items:center;justify-content:center;text-align:center;color:#2b455f;box-shadow:0 8px 22px rgba(0,42,92,.06);overflow:hidden}.ad-slot.ad-square{min-height:280px}.ad-slot.ad-horizontal{min-height:118px}.ad-inner{padding:18px}.ad-inner span{display:block;text-transform:uppercase;letter-spacing:.14em;color:#7890a8;font-weight:950;font-size:11px;margin-bottom:7px}.ad-inner p{margin:0 auto 10px!important;max-width:560px;color:#47627d!important;font-weight:700!important;font-size:14px!important;line-height:1.45!important}.ad-inner button{border:0;border-radius:999px;background:#005cae;color:#fff;font-weight:900;padding:9px 13px;cursor:pointer}.ad-inner code{background:#e9f3ff;border-radius:6px;padding:2px 5px}.ad-loaded{border-style:solid;background:#fff}.ad-blocked{background:#f7fbff}.ad-ready{background:#fffdf4;border-color:#ffe19a}
.cmp-banner{position:fixed;left:14px;right:14px;bottom:90px;z-index:80;display:flex;justify-content:center;pointer-events:none}.cmp-card{max-width:980px;width:100%;background:#fff;border:1px solid #dce8f5;border-radius:24px;box-shadow:0 22px 55px rgba(0,20,50,.24);padding:18px;display:grid;grid-template-columns:1fr auto;gap:18px;pointer-events:auto}.cmp-text b{display:block;font-size:20px;margin-bottom:5px}.cmp-text p{margin:0;color:#263b55;line-height:1.45;font-weight:700}.cmp-text small{display:block;margin-top:8px}.cmp-text a{color:#005cae;font-weight:900}.cmp-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.cmp-btn{border:0;border-radius:999px;padding:12px 16px;font-weight:950;cursor:pointer;white-space:nowrap}.cmp-primary{background:#ffc82e;color:#071b31}.cmp-secondary{background:#eaf2fb;color:#09213d}.cmp-light{background:#005cae;color:#fff}.cmp-panel{position:fixed;inset:0;z-index:90;background:rgba(0,20,40,.54);display:flex;align-items:center;justify-content:center;padding:18px}.cmp-modal{background:#fff;width:min(720px,100%);max-height:min(760px,90vh);overflow:auto;border-radius:26px;box-shadow:0 30px 75px rgba(0,0,0,.3);padding:22px}.cmp-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;border-bottom:1px solid #dce8f5;padding-bottom:15px;margin-bottom:14px}.cmp-modal-head b{font-size:25px}.cmp-modal-head p{margin:4px 0 0;color:#61748b;font-weight:700}.cmp-close{border:0;background:#eef6ff;color:#09213d;border-radius:50%;width:42px;height:42px;font-size:28px;line-height:1;cursor:pointer}.cmp-category{display:grid;grid-template-columns:1fr auto auto;gap:15px;align-items:center;border:1px solid #dce8f5;border-radius:18px;padding:16px;margin:12px 0;background:#fbfdff}.cmp-category b{font-size:18px}.cmp-category p{margin:4px 0 0!important;color:#45627e!important;font-size:14px!important;line-height:1.45!important;font-weight:700!important}.cmp-category.always span{font-weight:950;color:#147a40;background:#e9fff2;border-radius:999px;padding:8px 12px}.cmp-category input{position:absolute;opacity:0}.cmp-switch{width:58px;height:32px;border-radius:999px;background:#cbd8e6;position:relative;transition:.2s}.cmp-switch:after{content:"";position:absolute;left:4px;top:4px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.2);transition:.2s}.cmp-category input:checked + .cmp-switch{background:#005cae}.cmp-category input:checked + .cmp-switch:after{left:30px}.cmp-modal-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}.cmp-footnote{font-size:13px!important;color:#61748b!important;margin:15px 0 0!important}.legal-table{width:100%;border-collapse:collapse}.legal-table th,.legal-table td{padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}.legal-table th{background:#f3f9ff;color:#173a5b;width:32%}
@media(max-width:860px){.brand-logo{width:48px;height:48px}.cmp-card{grid-template-columns:1fr}.cmp-actions{justify-content:stretch}.cmp-btn{flex:1 1 auto}.cmp-banner{bottom:82px}.ad-slot{margin:18px 0}.cmp-modal{padding:18px}.cmp-category{grid-template-columns:1fr auto}.cmp-category.always span{grid-column:1/-1;width:max-content}.legal-table th,.legal-table td{display:block;width:100%}}
@media(max-width:520px){.brand-logo{width:42px;height:42px}.cmp-banner{left:8px;right:8px;bottom:78px}.cmp-card{border-radius:20px;padding:14px}.cmp-text b{font-size:18px}.cmp-text p{font-size:13px}.cmp-actions{gap:7px}.cmp-btn{padding:11px 12px}.cmp-panel{padding:10px}.cmp-modal{border-radius:20px}.cmp-modal-head b{font-size:21px}.cmp-category{padding:13px}.ad-slot.ad-square{min-height:220px}}

/* V5.2 privacy helper */
.cookie-settings-link{cursor:pointer}


/* V5.3 - Mobile app layout, readability, and social/app logo only */
body{background:linear-gradient(180deg,#dff3ff 0,#f6fbff 52%,#ffffff 100%);}

@media(max-width:860px){
  body{padding-bottom:92px;}
  .topbar{align-items:center;padding:22px 18px 0}
  .brand{gap:11px;align-items:center}
  .brand-icon{font-size:38px;line-height:1;filter:drop-shadow(0 8px 14px rgba(0,0,0,.16))}
  .brand b{font-size:28px;letter-spacing:-.02em}
  .brand strong{font-size:34px;letter-spacing:-.02em}
  .hamb span{width:38px;height:5px}
  .home-hero{min-height:430px;border-radius:0 0 34px 34px;background-position:center bottom}
  .home-copy{margin-top:36px;padding:0 22px}
  .home-copy h1{font-size:54px;line-height:.88;letter-spacing:-.055em;margin-bottom:18px}
  .home-copy p:not(.eyebrow){font-size:21px;line-height:1.32}
  .home-shell{margin-top:-64px;padding:0 16px}
  .home-status-card{border-radius:26px;padding:22px;box-shadow:0 14px 34px rgba(0,42,92,.14)}
  .home-status-card b{font-size:25px}
  .home-status-card span{font-size:18px}
  .home-status-card a{font-size:18px;padding:15px 18px}
  .island-summary{border-radius:28px;padding:22px;margin-top:22px}
  .app-section-head{display:block}
  .app-section-head h2{font-size:32px;line-height:1.05;margin-bottom:8px}
  .app-section-head span{font-size:16px}
  .island-weather-banner{
    grid-template-columns:106px 1fr;
    grid-template-areas:"img main" "weather weather";
    gap:14px;
    padding:18px;
    min-height:auto;
    border-radius:26px;
    box-shadow:0 13px 30px rgba(0,42,92,.12);
  }
  .island-weather-banner img{grid-area:img;width:106px;height:106px;border-radius:23px}
  .island-banner-main{grid-area:main;padding-right:26px}
  .island-banner-main small{font-size:14px;line-height:1.15}
  .island-banner-main h3{font-size:31px;line-height:1.02;margin:7px 0}
  .island-banner-main p{font-size:17px;line-height:1.25}
  .updated-mini{font-size:15px;margin-top:10px}
  .banner-arrow{position:absolute;right:18px;top:58px;font-size:48px}
  .island-banner-weather{
    grid-area:weather;
    width:100%;
    min-width:0;
    display:grid;
    grid-template-columns:72px 70px 1fr;
    align-items:center;
    gap:12px;
    text-align:left;
    padding-top:16px;
    border-top:1px solid var(--line);
  }
  .banner-icon{font-size:54px;line-height:1}
  .island-banner-weather strong{font-size:42px;letter-spacing:-.04em;color:#09213d}
  .island-banner-weather > span[data-condition]{font-size:22px;font-weight:950;color:#112c48;line-height:1.14}
  .banner-metrics{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:9px;
    width:100%;
    margin-top:4px;
  }
  .banner-metrics em{
    display:flex;
    min-height:54px;
    align-items:center;
    justify-content:center;
    text-align:center;
    background:#eef7ff;
    border:1px solid #d7e8f7;
    border-radius:18px;
    padding:9px 7px;
    font-size:17px;
    line-height:1.05;
    color:#254660;
  }
  .banner-metrics em b{font-size:20px}
  .island-weather-banner:before{font-size:16px;padding:8px 11px;left:12px;top:12px}
  .island-weather-banner:after{right:20px;bottom:16px;font-size:17px}
  .bottom-nav{height:82px;align-items:center;padding:8px 8px calc(8px + env(safe-area-inset-bottom))}
  .bottom-nav a{font-size:30px;gap:5px}
  .bottom-nav a span{font-size:15px}
}

@media(max-width:520px){
  .topbar{padding:20px 18px 0}
  .brand-icon{font-size:32px}
  .brand b{font-size:24px}
  .brand strong{font-size:31px}
  .hero-copy .eyebrow{font-size:14px!important}
  .home-hero{min-height:418px}
  .home-copy h1{font-size:52px}
  .home-copy p:not(.eyebrow){font-size:20px}
  .home-status-card{padding:20px;border-radius:25px}
  .home-status-card b{font-size:24px}
  .home-status-card span{font-size:17px}
  .island-summary{padding:17px;border-radius:28px}
  .app-section-head h2{font-size:30px}
  .island-weather-banner{padding:15px;grid-template-columns:94px 1fr;border-radius:25px}
  .island-weather-banner img{width:94px;height:94px;border-radius:21px}
  .island-banner-main small{font-size:13px}
  .island-banner-main h3{font-size:27px}
  .island-banner-main p{font-size:16px}
  .updated-mini{font-size:14px}
  .banner-arrow{right:15px;top:52px;font-size:44px}
  .island-banner-weather{grid-template-columns:63px 62px 1fr;gap:10px}
  .banner-icon{font-size:48px}
  .island-banner-weather strong{font-size:38px}
  .island-banner-weather > span[data-condition]{font-size:21px}
  .banner-metrics em{font-size:15px;min-height:50px}
  .banner-metrics em b{font-size:18px}
  .bottom-nav{height:78px}
  .bottom-nav a{font-size:27px}
  .bottom-nav a span{font-size:14px}
}

@media(max-width:380px){
  .home-copy h1{font-size:45px}
  .island-weather-banner{grid-template-columns:82px 1fr}
  .island-weather-banner img{width:82px;height:82px}
  .island-banner-main h3{font-size:24px}
  .island-banner-main p{font-size:14px}
  .island-banner-weather{grid-template-columns:54px 54px 1fr}
  .banner-icon{font-size:42px}
  .island-weather-banner strong{font-size:34px}
  .banner-metrics{grid-template-columns:1fr 1fr 1fr}
  .banner-metrics em{font-size:13px}
}


/* Master Ads */
.master-ad-slot .master-ad-output{width:100%}
.master-ad-slot .master-ad-output img{max-width:100%;height:auto}
.master-ad-slot iframe{max-width:100%}
.master-ad-slot.ad-loaded{background:transparent}


/* Master Ads V6.4 - caricamento e centratura banner */
.ad-slot.master-ad-slot{
  width:100%;
  max-width:100%;
  margin-left:auto;
  margin-right:auto;
  display:flex;
  justify-content:center;
  align-items:center;
  overflow:hidden;
}

.ad-slot.master-ad-slot .master-ad-output{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
}

.ad-slot.master-ad-slot .master-ad-output > *{
  margin-left:auto;
  margin-right:auto;
}

.ad-slot.master-ad-slot img,
.ad-slot.master-ad-slot iframe{
  max-width:100%;
  height:auto;
  display:block;
  margin-left:auto;
  margin-right:auto;
}

.ad-slot.master-ad-slot script{
  display:none!important;
}

/* Desktop: i banner larghi restano centrati dentro la card */
@media (min-width: 900px){
  .ad-slot.master-ad-slot.ad-horizontal{
    min-height:180px;
  }
  .ad-slot.master-ad-slot .master-ad-output{
    min-height:120px;
  }
}

/* Mobile: evita tagli orizzontali e carica in modo visibile */
@media (max-width: 899px){
  .ad-slot.master-ad-slot{
    min-height:120px;
  }
  .ad-slot.master-ad-slot .master-ad-output{
    min-height:90px;
  }
}


/* Master Ads V6.5 - slot pagina specifici + fallback */
.ad-slot.master-ad-slot[data-master-fallback="1"]::before{
  content:"";
  display:none;
}
.ad-slot.master-ad-slot .master-ad-output{
  width:100%;
  justify-content:center;
}
.ad-slot.master-ad-slot .master-ad-output a{
  display:inline-flex;
  justify-content:center;
  align-items:center;
}


/* Multilingual floating selector */
.lang-switcher{
  position:fixed;
  top:calc(10px + env(safe-area-inset-top));
  right:10px;
  z-index:9999;
  display:flex;
  gap:4px;
  padding:5px;
  border-radius:999px;
  background:rgba(255,255,255,.84);
  border:1px solid rgba(0,92,174,.18);
  box-shadow:0 10px 28px rgba(5,40,75,.14);
  backdrop-filter:blur(10px);
}
.lang-switcher a{
  min-width:32px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  color:#075985;
  text-decoration:none;
}
.lang-switcher a.active{
  background:#005cae;
  color:#fff;
}
@media (max-width:520px){
  .lang-switcher{top:auto; right:12px; bottom:calc(76px + env(safe-area-inset-bottom));}
  .lang-switcher a{min-width:30px;height:28px;font-size:11px;}
}


/* Multilingual UI V6.6 - menu lingue elegante, senza sovrapposizioni mobile */
.menu-languages{
  display:none;
}
.menu-languages span{
  display:block;
  color:rgba(255,255,255,.72);
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin:4px 8px 8px;
}
.menu-language-links{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.menu-language-links a{
  min-width:38px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  font-size:13px!important;
  font-weight:950!important;
  text-decoration:none;
}
.menu-language-links a.active{
  background:#ffc82e!important;
  color:#08223d!important;
}
@media (max-width:520px){
  .lang-switcher-floating{
    display:none!important;
  }
  .menu-languages{
    display:block;
    margin-top:8px;
    padding-top:10px;
    border-top:1px solid rgba(255,255,255,.16);
  }
  .menu-language-links a{
    background:rgba(255,255,255,.12)!important;
    color:#fff!important;
    padding:0 10px!important;
  }
  .menu-language-links a.active{
    background:#ffc82e!important;
    color:#08223d!important;
  }
  .install-app-btn{
    bottom:calc(84px + env(safe-area-inset-bottom));
    z-index:24;
  }
}
@media (min-width:521px){
  .menu-languages{
    display:none!important;
  }
  .lang-switcher-floating{
    display:flex!important;
  }
}
